radare2/libr/io/p/qnx.mk

30 lines
650 B
Makefile
Raw Normal View History

OBJ_QNX=io_qnx.o
STATIC_OBJ+=${OBJ_QNX}
TARGET_QNX=io_qnx.${EXT_SO}
ALL_TARGETS+=${TARGET_QNX}
LIB_PATH=$(SHLR)/qnx/
CFLAGS+=-I$(SHLR)/qnx/include/
2017-05-09 12:25:57 +00:00
LDFLAGS+=$(SHLR)/qnx/lib/libqnxr.$(EXT_AR)
include $(LIBR)/socket/deps.mk
ifeq (${WITHPIC},0)
LINKFLAGS=../../socket/libr_socket.a
LINKFLAGS+=../../util/libr_util.a
LINKFLAGS+=../../io/libr_io.a
else
LINKFLAGS=-L../../socket -lr_socket
LINKFLAGS+=-L../../util -lr_util
LINKFLAGS+=-L.. -lr_io
endif
ifeq (${HAVE_LIB_SSL},1)
CFLAGS+=${SSL_CFLAGS}
LINKFLAGS+=${SSL_LDFLAGS}
endif
${TARGET_QNX}: ${OBJ_QNX}
${CC} $(call libname,io_qnx) ${OBJ_QNX} ${CFLAGS} \
${LINKFLAGS} ${LDFLAGS_LIB} $(LDFLAGS)