aboutsummaryrefslogtreecommitdiff
path: root/test/cxxtest/sample/mock/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/cxxtest/sample/mock/Makefile')
-rw-r--r--test/cxxtest/sample/mock/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/cxxtest/sample/mock/Makefile b/test/cxxtest/sample/mock/Makefile
new file mode 100644
index 0000000000..709b7cbe95
--- /dev/null
+++ b/test/cxxtest/sample/mock/Makefile
@@ -0,0 +1,22 @@
+all: roll run
+
+clean:
+ rm -f *~ *.o roll test test.cpp
+
+CXXTEST = ../..
+CCFLAGS = -I. -I$(CXXTEST)
+
+roll: roll.o Dice.o real_stdlib.o
+ g++ -o $@ $^
+
+run: test
+ ./test
+
+test: test.o Dice.o mock_stdlib.o
+ g++ -o $@ $^
+
+.cpp.o:
+ g++ -c -o $@ $(CCFLAGS) $<
+
+test.cpp: TestDice.h
+ $(CXXTEST)/cxxtestgen.pl -o $@ --error-printer $<