1 CXXFLAGS
+= $(QT_CFLAGS
)
2 LDFLAGS
+= $(QT_LIBS
) -lcppu
4 TEST_SUITES
= text.
cpp snippet.
cpp hunk.
cpp diff.
cpp levenshtein.
cpp
5 OBJS_LIST
= snippet.o settings.o text.o hunk.o diff.o file.o levenshtein.o
6 OBJS
= $(foreach file
, $(OBJS_LIST
), ..
/src
/objs
/$(file
))
10 -cppu-aggregate .
/test
12 @echo
-ne
"Press key to start valgrind "
14 -valgrind
--leak-check
=full
--show-reachable
=yes .
/test
16 test: main.
cpp $(TEST_SUITES
)
17 pwd
&& $(CC
) $(CXXFLAGS
) -o
$@
$< $(OBJS
) $(LDFLAGS
)