radare2/shlr/zip/Makefile
2017-05-09 14:25:57 +02:00

35 lines
577 B
Makefile

NAME=rz
LIBAR=librz.$(EXT_AR)
include ../../config-user.mk
include ../../libr/config.mk
include ../../mk/platform.mk
include ../../mk/${COMPILER}.mk
ifeq ($(USE_LIB_ZIP),1)
all:
rm -f librz.$(EXT_AR)
else
LIBAR=librz.$(EXT_AR)
RANLIB?=ranlib
all: $(LIBAR)
$(LIBAR): zip/libr_zip.$(EXT_AR)
${CC_AR} zlib/*.o zip/*.o
$(RANLIB) librz.$(EXT_AR)
zip/libr_zip.$(EXT_AR): zlib/libr_z.$(EXT_AR)
$(MAKE) -C zip
zlib/libr_z.$(EXT_AR):
$(MAKE) -C zlib
clean:
$(MAKE) -C zlib clean
$(MAKE) -C zip clean
rm -f *.$(EXT_AR) *.${EXT_SO} zlib/*.$(EXT_AR) zip/*.$(EXT_AR)
endif