The architecture doesn't really matter for the test, at least not until the dynamic loader can load these fat64 binaries. Use Hawell instead of arm64 to support older bots that don't know about Apple Silicon triples.
25 lines
576 B
Makefile
25 lines
576 B
Makefile
EXE := fat.out
|
|
|
|
ifdef FAT64_DSYM
|
|
DSFLAGS_EXTRAS=-fat64
|
|
endif
|
|
|
|
include Makefile.rules
|
|
|
|
all: fat.out
|
|
|
|
fat.out: fat.x86_64h.out fat.x86_64.out
|
|
lipo -fat64 -create -o $@ $^
|
|
|
|
fat.x86_64.out: fat.x86_64.o
|
|
$(CC) -isysroot $(SDKROOT) -target x86_64-apple-macosx10.9 -o $@ $<
|
|
|
|
fat.x86_64h.out: fat.x86_64h.o
|
|
$(CC) -isysroot $(SDKROOT) -target x86_64h-apple-macosx10.9 -o $@ $<
|
|
|
|
fat.x86_64.o: main.c
|
|
$(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64-apple-macosx10.9 -c -o $@ $<
|
|
|
|
fat.x86_64h.o: main.c
|
|
$(CC) -isysroot $(SDKROOT) -g -O0 -target x86_64h-apple-macosx10.9 -c -o $@ $<
|