1*f4a2713aSLionel SambucGXX := llvm-g++-4.2 2*f4a2713aSLionel SambucCLANGXX := clang++ 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambucall: one 5*f4a2713aSLionel Sambuc 6*f4a2713aSLionel Sambuctest.cc: gen.cc 7*f4a2713aSLionel Sambuc g++ gen.cc -o gen 8*f4a2713aSLionel Sambuc ./gen >test.cc 9*f4a2713aSLionel Sambuc 10*f4a2713aSLionel Sambuctest-gcc.sum: test.cc 11*f4a2713aSLionel Sambuc time $(GXX) test.cc -o test-gcc.s -S 12*f4a2713aSLionel Sambuc $(GXX) test-gcc.s -o test-gcc 13*f4a2713aSLionel Sambuc ./test-gcc >test-gcc.sum 14*f4a2713aSLionel Sambuc 15*f4a2713aSLionel Sambuctest-clang.sum: test.cc 16*f4a2713aSLionel Sambuc time $(CLANGXX) test.cc -o test-clang.s -S 17*f4a2713aSLionel Sambuc $(CLANGXX) test-clang.s -o test-clang 18*f4a2713aSLionel Sambuc ./test-clang >test-clang.sum 19*f4a2713aSLionel Sambuc 20*f4a2713aSLionel Sambucone: test-gcc.sum test-clang.sum 21*f4a2713aSLionel Sambuc cmp test-gcc.sum test-clang.sum 22*f4a2713aSLionel Sambuc 23*f4a2713aSLionel Sambucclean: 24*f4a2713aSLionel Sambuc rm -f gen test-gcc test-clang test.cc test-gcc.sum test-clang.sum test-gcc.s test-clang.s 25