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