28 lines · plain
1DYLIB_NAME := InternalDefiner2DYLIB_OBJC_SOURCES := InternalDefiner.m3OBJC_SOURCES := main.m4 5LD_EXTRAS = -framework Foundation6 7all: a.out libInternalDefiner.dylib stripped8 9include Makefile.rules10 11ifeq "$(MAKE_DSYM)" "YES"12stripped: a.out.dSYM13endif14 15stripped: a.out libInternalDefiner.dylib16 mkdir stripped17 $(STRIP) -Sx a.out -o stripped/a.out18 $(STRIP) -Sx libInternalDefiner.dylib -o stripped/libInternalDefiner.dylib19ifneq "$(CODESIGN)" ""20 $(CODESIGN) -fs - stripped/a.out21endif22ifneq "$(CODESIGN)" ""23 $(CODESIGN) -fs - stripped/libInternalDefiner.dylib24endif25ifeq "$(MAKE_DSYM)" "YES"26 cp -r a.out.dSYM stripped/a.out.dSYM27endif28