Files
cpp-thirdparty/noarch/lib/py/cxxtest/sample/mock/Makefile
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

23 lines
327 B
Makefile

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)/bin/cxxtestgen -o $@ --error-printer $<