2 LD_EXTRAS
:= -L.
-lindirect
-lreexport
4 .PHONY
: build-libindirect build-libreepxoprt
5 all: build-libindirect build-libreepxoprt a.out
9 build-libindirect
: indirect.c
10 $(MAKE
) -f
$(MAKEFILE_RULES
) \
11 DYLIB_C_SOURCES
=indirect.c DYLIB_NAME
=indirect DYLIB_ONLY
=YES \
12 LD_EXTRAS
="-Wl,-image_base,0x200000000"
14 build-libreepxoprt
: reexport.c
15 $(MAKE
) -f
$(MAKEFILE_RULES
) \
16 DYLIB_C_SOURCES
=reexport.c DYLIB_NAME
=reexport DYLIB_ONLY
=YES \
17 LD_EXTRAS
="-L. -lindirect -Wl,-alias_list,$(SRCDIR)/alias.list"