25 lines · plain
1EXE := fat.out2 3ifdef FAT64_DSYM4 DSFLAGS_EXTRAS=-fat645endif6 7include Makefile.rules8 9all: fat.out10 11fat.out: fat.x86_64h.out fat.x86_64.out12 lipo -fat64 -create -o $@ $^13 14fat.x86_64.out: fat.x86_64.o15 $(CC) -isysroot $(SDKROOT) -target x86_64-apple-macosx10.9 -o $@ $<16 17fat.x86_64h.out: fat.x86_64h.o18 $(CC) -isysroot $(SDKROOT) -target x86_64h-apple-macosx10.9 -o $@ $<19 20fat.x86_64.o: main.c21 $(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64-apple-macosx10.9 -c -o $@ $<22 23fat.x86_64h.o: main.c24 $(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64h-apple-macosx10.9 -c -o $@ $<25