• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1GXX := llvm-g++-4.2
2CLANGXX := clang++
3
4all: one
5
6test.cc: gen.cc
7	g++ gen.cc -o gen
8	./gen >test.cc
9
10test-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
15test-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
20one: test-gcc.sum test-clang.sum
21	cmp test-gcc.sum test-clang.sum
22
23clean:
24	rm -f gen test-gcc test-clang test.cc test-gcc.sum test-clang.sum test-gcc.s test-clang.s
25