Home | History | Annotate | Download | only in VtableTest
      1 GXX := llvm-g++-4.2
      2 CLANGXX := clang++
      3 
      4 all: one
      5 
      6 test.cc: gen.cc
      7 	g++ gen.cc -o gen
      8 	./gen >test.cc
      9 
     10 test-gcc.sum: test.cc
     11 	time $(GXX) test.cc -o test-gcc.s -S
     12 	$(GXX) test-gcc.s -o test-gcc
     13 	./test-gcc >test-gcc.sum
     14 
     15 test-clang.sum: test.cc
     16 	time $(CLANGXX) test.cc -o test-clang.s -S
     17 	$(CLANGXX) test-clang.s -o test-clang
     18 	./test-clang >test-clang.sum
     19 
     20 one: test-gcc.sum test-clang.sum
     21 	cmp test-gcc.sum test-clang.sum
     22 
     23 clean:
     24 	rm -f gen test-gcc test-clang test.cc test-gcc.sum test-clang.sum test-gcc.s test-clang.s
     25