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