| 1 |
EXE := testit |
| 2 |
|
| 3 |
include Makefile.rules |
| 4 |
|
| 5 |
all: testit |
| 6 |
|
| 7 |
testit: testit.x86_64h testit.x86_64 |
| 8 |
lipo -create -o testit $^ |
| 9 |
|
| 10 |
testit.x86_64h: testit.x86_64h.o |
| 11 |
$(CC) -isysroot $(SDKROOT) -target x86_64h-apple-macosx10.9 -o testit.x86_64h $< |
| 12 |
|
| 13 |
testit.x86_64: testit.x86_64.o |
| 14 |
$(CC) -isysroot $(SDKROOT) -target x86_64-apple-macosx10.9 -o testit.x86_64 $< |
| 15 |
|
| 16 |
testit.x86_64h.o: main.c |
| 17 |
$(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64h-apple-macosx10.9 -c -o testit.x86_64h.o $< |
| 18 |
|
| 19 |
testit.x86_64.o: main.c |
| 20 |
$(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64-apple-macosx10.9 -c -o testit.x86_64.o $< |