Class File + fixes in _free methods.
[qshowdiff.git] / Makefile
blob4002b7a334d6f0e7219bbbd7be673af461fd0846
1 CC = g++
2 CXXFLAGS = -Wall -Wno-long-long -pedantic
3 DEBUGFLAGS = -g
4 QT_INCLUDE = -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 all: text.o snippet.o hunk.o file.o
10 %.o: %.cpp %.h
11 $(CC) $(CXXFLAGS) $(DEBUGFLAGS) $(QT_INCLUDE) -c -o $@ $<
13 clean:
14 rm -f *.o
15 cd tests && $(MAKE) clean
17 test:
18 cd tests && $(MAKE)
20 .PHONY: all test clean