| 1 |
EXE := fat.out |
| 2 |
|
| 3 |
ifdef FAT64_DSYM |
| 4 |
DSFLAGS_EXTRAS=-fat64 |
| 5 |
endif |
| 6 |
|
| 7 |
include Makefile.rules |
| 8 |
|
| 9 |
all: fat.out |
| 10 |
|
| 11 |
fat.out: fat.x86_64h.out fat.x86_64.out |
| 12 |
lipo -fat64 -create -o $@ $^ |
| 13 |
|
| 14 |
fat.x86_64.out: fat.x86_64.o |
| 15 |
$(CC) -isysroot $(SDKROOT) -target x86_64-apple-macosx10.9 -o $@ $< |
| 16 |
|
| 17 |
fat.x86_64h.out: fat.x86_64h.o |
| 18 |
$(CC) -isysroot $(SDKROOT) -target x86_64h-apple-macosx10.9 -o $@ $< |
| 19 |
|
| 20 |
fat.x86_64.o: main.c |
| 21 |
$(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64-apple-macosx10.9 -c -o $@ $< |
| 22 |
|
| 23 |
fat.x86_64h.o: main.c |
| 24 |
$(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64h-apple-macosx10.9 -c -o $@ $< |