]> Dogcows Code - chaz/vimcoder/blob - src/com/dogcows/resources/C++Makefile
make the C++ driver depend on the solution source code
[chaz/vimcoder] / src / com / dogcows / resources / C++Makefile
1
2 # Set the command for your C++ compiler, and specify any compiler flags you
3 # want to use (e.g. -g -Werror).
4 CXX = g++
5 CXXFLAGS = -ggdb -Wall
6
7 # The driver outputs TAP (Test Anything Protocol), so it can also be used with
8 # any TAP test harness (e.g. prove). Set the path to your test harness here,
9 # then use the `prove' target to run the tests with that harness.
10 PROVE = prove
11 PROVEFLAGS = -e ""
12
13
14 ifeq ($(OS),Windows_NT)
15 EXEEXT = .exe
16 endif
17
18
19 all: driver$(EXEEXT)
20
21 clean:
22 rm -f driver$(EXEEXT)
23
24 distclean: clean
25 rm -f $CLASSNAME$
26
27 run: all
28 ./driver$(EXEEXT)
29
30 test: all
31 ./driver$(EXEEXT) --abort-on-fail
32
33 prove: all
34 $(PROVE) $(PROVEFLAGS) ./driver$(EXEEXT)
35
36
37 %$(EXEEXT): %.cc
38 $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@
39
40 driver$(EXEEXT): $CLASSNAME$.cc
41
42 .PHONY: all clean distclean run test prove
43
44 # vim:ft=make:noet:ts=8
This page took 0.048473 seconds and 5 git commands to generate.