mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-07 13:51:16 +00:00
c816dc7e66
Specifically, avoid building all plugins as non-static objects, as well as some supplementary libraries. In fact, a large amount of plugins was already gated to build as shared objects only with WITHPIC=1, but this was not done consistently. This gating has been moved to */p/Makefile. Building these shared objects is a waste of time and breaks the --without-pic build unless CFLAGS is forced in the make invocation.
29 lines
605 B
Makefile
29 lines
605 B
Makefile
include ../../config.mk
|
|
include ../../../mk/platform.mk
|
|
|
|
CFLAGS+=-I$(LIBR)/include -Wall -shared ${PIC_CFLAGS} ${LDFLAGS_LIB} ${LDFLAGS_LINKPATH}..
|
|
GRUB=$(LIBR)../shlr/grub/libgrub.a
|
|
#CFLAGS+=-I../../include
|
|
LDFLAGS+=${LINK}
|
|
|
|
ifeq ($(WITHPIC),1)
|
|
all:
|
|
|
|
#FILESYSTEMS=hfs.mk iso9660.mk jfs.mk
|
|
#FILESYSTEMS=hfsplus.mk
|
|
FILESYSTEMS=ext2.mk fat.mk ntfs.mk reiserfs.mk tar.mk udf.mk ufs2.mk ufs.mk xfs.mk hfs.mk
|
|
include $(FILESYSTEMS)
|
|
|
|
clean:
|
|
-rm -f *.${EXT_SO} *.o ${STATIC_OBJ}
|
|
|
|
mrproper: clean
|
|
-rm -f *.d ../arch/*/*/*.d
|
|
|
|
.PHONY: all clean mrproper
|
|
else
|
|
all clean mrproper:
|
|
|
|
.PHONY: all clean mrproper
|
|
endif
|