Created parser and interfaces for creating specific parsers for specific
[qshowdiff.git] / Makefile
blob214c53ac2cda0c4e5eeaed04637c2c36acc7541e
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 -I/opt/qt4/include/QtGui
6 QT_LIBS = -lQtCore -lQtGui -L/opt/qt4/lib/ -lz -lm -pthread -lgthread-2.0 \
7 -lrt -lglib-2.0 -lpthread -ldl
9 ALL_FLAGS = $(CXXFLAGS) $(DEBUGFLAGS) $(QT_INCLUDE)
10 ALL_LD_FLAGS = $(QT_LIBS)
12 SUBDIRS = src
14 # export variables for sub-makes
15 export CC
16 export ALL_FLAGS
17 export ALL_LD_FLAGS
19 all:
20 $(foreach dir, $(SUBDIRS), cd $(dir) && $(MAKE) $(MFLAGS) all)
22 clean:
23 rm -f *.o
24 $(foreach dir, $(SUBDIRS), cd $(dir) && $(MAKE) $(MFLAGS) clean)
25 cd tests && $(MAKE) $(MFLAGS) clean
27 test:
28 cd tests && $(MAKE) $(MFLAGS)
30 .PHONY: all test clean