1 all: roll run
3 clean:
4 rm -f *~ *.o roll test test.cpp
6 CXXTEST = ../..
7 CCFLAGS = -I. -I$(CXXTEST)
9 roll: roll.o Dice.o real_stdlib.o
10 g++ -o $@ $^
12 run: test
13 ./test
15 test: test.o Dice.o mock_stdlib.o
16 g++ -o $@ $^
18 .cpp.o:
19 g++ -c -o $@ $(CCFLAGS) $<
21 test.cpp: TestDice.h
22 $(CXXTEST)/cxxtestgen.pl -o $@ --error-printer $<