mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 09:00:46 +00:00
01fa57d832
* Add 'c' in '?' help message * Import edu's RList-ification of RSearch patch * Deprecate r_search_kw_list() method * Fix build of r_socket_to_string() method on w32
46 lines
814 B
Makefile
46 lines
814 B
Makefile
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
|
|
|
|
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}
|
|
@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
|