radare2/libr/io/Makefile

46 lines
814 B
Makefile
Raw Normal View History

include ../config.mk
NAME=r_io
DEPS=r_lib r_util r_socket
CFLAGS+=-Wall -DCORELIB
# on solaris only
ifeq (${OSTYPE},solaris)
LDFLAGS+=-lsocket
endif
# windows
ifeq (${OSTYPE},windows)
LDFLAGS+=-lws2_32
endif
# copypasted from socket/Makefile
# on solaris only
ifeq (${OSTYPE},solaris)
LDFLAGS+=-lsocket
endif
# windows
ifeq (${OSTYPE},windows)
LDFLAGS=-lwsock32
endif
STATIC_OBJS=
include ../config.mk
2010-01-15 00:56:43 +00:00
foo: pre libr_io.${EXT_SO} libr_io.${EXT_AR} tests plugins
include ${STATIC_IO_PLUGINS}
STATIC_OBJS=$(subst ..,p/..,$(subst io_,p/io_,$(STATIC_OBJ)))
OBJ=${STATIC_OBJS} io.o plugin.o map.o section.o desc.o cache.o undo.o
pre:
@echo STATICOBJS: ${STATIC_OBJS}
2010-01-15 12:02:54 +00:00
@if [ ! -e libr_io.${EXT_SO} ]; then rm -f ${STATIC_OBJS} ; fi
tests:
cd t && ${MAKE} all
plugins:
cd p && ${MAKE} all
include ../rules.mk