1CC ?= clang
2
3testit: testit.i386 testit.x86_64
4	lipo -create -o testit testit.i386 testit.x86_64
5
6testit.i386: testit.i386.o
7	$(CC) -arch i386 -o testit.i386 testit.i386.o
8
9testit.x86_64: testit.x86_64.o
10	$(CC) -arch x86_64 -o testit.x86_64 testit.x86_64.o
11
12testit.i386.o: main.c
13	$(CC) -g -O0 -arch i386 -c -o testit.i386.o main.c
14
15testit.x86_64.o: main.c
16	$(CC) -g -O0 -arch x86_64 -c -o testit.x86_64.o main.c
17
18clean:
19	rm -rf testit* *~
20