Improved Makefiles.
[qshowdiff.git] / Makefile
blob2a6d9844499e2d70ce099ae0931b387cce532c2f
1 CC = g++
2 MOC = moc
4 DEBUGFLAGS = -g
5 CXXFLAGS_OPTIM = -march=k8 -mtune=k8 -msse2 -O2 -pipe
6 CXXFLAGS = -Wall -Wno-long-long -pedantic $(DEBUGFLAGS) $(CXXFLAGS_OPTIM)
8 QT_CFLAGS = $(shell pkg-config QtCore QtGui --cflags)
9 QT_LIBS = $(shell pkg-config QtCore QtGui --libs)
11 # export variables for sub-makes
12 export CC
13 export MOC
14 export CXXFLAGS
15 export QT_CFLAGS
16 export QT_LIBS
18 all:
19 cd src && $(MAKE) all
20 cd tests && $(MAKE) all
22 clean:
23 rm -f *.o
24 cd src && $(MAKE) clean
25 cd tests && $(MAKE) clean
27 check:
28 cd tests && $(MAKE)
30 .PHONY: all check clean