Class File + fixes in _free methods.
[qshowdiff.git] / tests / Makefile
blobaf28dd8446d83a757b32db2ee8c15275725373e4
1 CC = g++
2 CXXFLAGS = -Wall -Wno-long-long -pedantic
3 DEBUGFLAGS = -g
4 QT_FLAGS = -DQT_SHARED -I/opt/qt4/include -I/opt/qt4/include/QtCore
5 QT_LIBS = -lQtCore -L/opt/qt4/lib/ -lz -lm -pthread -lgthread-2.0 -lrt \
6 -lglib-2.0 -lpthread -ldl
8 ALLFLAGS = $(CXXFLAGS) $(DEBUGFLAGS) $(QT_FLAGS)
9 ALLLIBS = -lcppu $(QT_LIBS)
11 TEST_SUITES = text.cpp snippet.cpp hunk.cpp
12 TEST_DEPS = ../text.cpp ../text.h ../snippet.cpp ../snippet.h ../hunk.cpp \
13 ../hunk.h
14 OBJS = ../text.o ../snippet.o ../hunk.o
18 all: run_tests
19 run_tests: test
20 -cppu-aggregate ./test
21 @echo
22 @echo -ne "Press key to start valgrind "
23 @read key
24 -valgrind --leak-check=full --show-reachable=yes ./test
26 test: main.cpp $(TEST_SUITES) $(TEST_DEPS) $(OBJS)
27 $(CC) $(ALLFLAGS) -o $@ $< $(OBJS) $(ALLLIBS)
29 clean:
30 rm -f test
31 rm -f *.o
33 .PHONY: all run_tests