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