1DYLIB_NAME := InternalDefiner 2DYLIB_OBJC_SOURCES := InternalDefiner.m 3OBJC_SOURCES := main.m 4 5LD_EXTRAS = -framework Foundation 6 7all: a.out libInternalDefiner.dylib stripped 8 9include Makefile.rules 10 11ifeq "$(MAKE_DSYM)" "YES" 12stripped: a.out.dSYM 13endif 14 15stripped: a.out libInternalDefiner.dylib 16 mkdir stripped 17 strip -Sx a.out -o stripped/a.out 18 strip -Sx libInternalDefiner.dylib -o stripped/libInternalDefiner.dylib 19ifneq "$(CODESIGN)" "" 20 $(CODESIGN) -fs - stripped/a.out 21endif 22ifneq "$(CODESIGN)" "" 23 $(CODESIGN) -fs - stripped/libInternalDefiner.dylib 24endif 25ifeq "$(MAKE_DSYM)" "YES" 26 cp -r a.out.dSYM stripped/a.out.dSYM 27endif 28