Mike Stump | 46ae64f | 2010-01-07 18:58:28 +0000 | [diff] [blame^] | 1 | GXX := g++ |
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 | ||||
12 | test-gcc >test-gcc.sum | ||||
13 | |||||
14 | test-clang.sum: test.cc | ||||
15 | time $(CLANGXX) test.cc -o test-clang | ||||
16 | test-clang >test-clang.sum | ||||
17 | |||||
18 | one: test-gcc.sum test-clang.sum | ||||
19 | cmp test-gcc.sum test-clang.sum |