radare2/libr/io/p/zip.mk
2014-01-18 02:52:49 +01:00

20 lines
430 B
Makefile

OBJ_ZIP=io_zip.o
STATIC_OBJ+=${OBJ_ZIP}
TARGET_ZIP=io_zip.${EXT_SO}
ALL_TARGETS+=${TARGET_ZIP}
CFLAGS+=-I../../shlr/zip/include
ifeq (${WITHPIC},0)
LINKFLAGS+=../../util/libr_util.a
LINKFLAGS+=../../io/libr_io.a
else
LINKFLAGS+=-L../../util -lr_util
LINKFLAGS+=-L.. -lr_io
endif
#LINKFLAGS+=../../../shlr/zip/librz.a
${TARGET_ZIP}: ${OBJ_ZIP}
${CC_LIB} $(call libname,io_zip) ${CFLAGS} -o ${TARGET_ZIP} ${OBJS} ${LINKFLAGS}