2 CXXFLAGS
= -Wall
-Wno-long-long
-pedantic
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
)
13 # export variables for sub-makes
19 $(foreach dir, $(SUBDIRS
), cd
$(dir) && $(MAKE
) $(MFLAGS
) all)
23 $(foreach dir, $(SUBDIRS
), cd
$(dir) && $(MAKE
) $(MFLAGS
) clean)
26 cd tests
&& $(MAKE
) $(MFLAGS
)
28 .PHONY
: all test clean