2 CXXFLAGS
= -Wall
-Wno-long-long
-pedantic
4 QT_FLAGS
= -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 ALLFLAGS
= $(CXXFLAGS
) $(DEBUGFLAGS
) $(QT_FLAGS
)
9 ALLLIBS
= -lcppu
$(QT_LIBS
)
11 TEST_SUITES
= text.
cpp snippet.
cpp hunk.
cpp
12 TEST_DEPS
= ..
/text.
cpp ..
/text.h ..
/snippet.
cpp ..
/snippet.h ..
/hunk.
cpp \
14 OBJS
= ..
/text.o ..
/snippet.o ..
/hunk.o
20 -cppu-aggregate .
/test
22 @echo
-ne
"Press key to start valgrind "
24 -valgrind
--leak-check
=full
--show-reachable
=yes .
/test
26 test: main.
cpp $(TEST_SUITES
) $(TEST_DEPS
) $(OBJS
)
27 $(CC
) $(ALLFLAGS
) -o
$@
$< $(OBJS
) $(ALLLIBS
)