Reordered files and directories.
[qshowdiff.git] / Makefile
blob836d4293935d84aab9c186f5e6a2c0247ee08d2c
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_FLAGS = $(CXXFLAGS) $(DEBUGFLAGS) $(QT_INCLUDE)
9 ALL_LD_FLAGS = $(QT_LIBS)
11 SUBDIRS = src
13 # export variables for sub-makes
14 export CC
15 export ALL_FLAGS
16 export ALL_LD_FLAGS
18 all:
19 $(foreach dir, $(SUBDIRS), cd $(dir) && $(MAKE) $(MFLAGS) all)
21 clean:
22 rm -f *.o
23 $(foreach dir, $(SUBDIRS), cd $(dir) && $(MAKE) $(MFLAGS) clean)
25 test:
26 cd tests && $(MAKE) $(MFLAGS)
28 .PHONY: all test clean