summaryrefslogtreecommitdiff
path: root/utils/VtableTest/Makefile
blob: 0e060267903ae5c0e0cbae10e21ea34103da2f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
GXX := llvm-g++-4.2
CLANGXX := clang++

all: one

test.cc: gen.cc
	g++ gen.cc -o gen
	gen >test.cc

test-gcc.sum: test.cc
	time $(GXX) test.cc -o test-gcc.s -S
	$(GXX) test-gcc.s -o test-gcc
	test-gcc >test-gcc.sum

test-clang.sum: test.cc
	time $(CLANGXX) test.cc -o test-clang.s -S
	$(CLANGXX) test-clang.s -o test-clang
	test-clang >test-clang.sum

one: test-gcc.sum test-clang.sum
	cmp test-gcc.sum test-clang.sum