radare2/libr/io/Makefile
pancake 54617455de
Initial refactoring of the rap:// protocol (-75 LOC) ##socket (#16534)
* It's implemented in IO, Socket and Core
* Remove duplicated apis and defines, everything in in RSocket now
* RIO now owns an RCoreBind instead of 3 fcn pointers + 1 void*
* Use proper filenames in libr/socket following public api names
* Use RSocket.block apis in the rap client + server apis
2020-04-12 16:40:55 +02:00

39 lines
761 B
Makefile

include ../config.mk
NAME=r_io
DEPS+=r_util
DEPS+=r_socket
DEPS+=r_cons
STATIC_OBJS=$(subst ..,p/..,$(subst io_,p/io_,$(STATIC_OBJ)))
OBJS=${STATIC_OBJS}
OBJS+=io.o io_plugin.o io_map.o io_desc.o io_cache.o p_cache.o undo.o ioutils.o io_fd.o
CFLAGS+=-Wall -DR2_PLUGIN_INCORE
include ../socket/deps.mk
include $(SHLR)/ar/deps.mk
include $(SHLR)/zip/deps.mk
include $(SHLR)/gdb/deps.mk
include $(SHLR)/qnx/deps.mk
ifeq ($(USE_PTRACE_WRAP),1)
include $(SHLR)/ptrace-wrap/deps.mk
OBJS+=$(PTRACEWRAP_OBJS)
endif
## only for shm_open
#ifeq (${OSTYPE},gnulinux)
# LDFLAGS+=-lrt
#endif
ifeq (${BUILD_OS},dragonfly)
LDFLAGS+=-lkvm
endif
.PHONY: pre
pre: libr_io.${EXT_SO} libr_io.${EXT_AR}
@${MAKE} -C p
include ${STATIC_IO_PLUGINS}
include $(LTOP)/rules.mk