Add add a 'make clean' target in the testprogs directory.
[kdbg.git] / kdbg / testprogs / Makefile
blob210b38aef51e61832e69726c07108324eef34873
1 CXXFLAGS=-O0 -g
3 QT3 = /usr/lib64/qt3
4 QT3INC = -I$(QT3)/include
5 QT3LIB = $(QT3)/lib64/libqt-mt.so
7 PROGS = \
8 anonstruct \
9 lambda \
10 locals \
11 longdouble \
12 maths \
13 multibrkpt \
14 nestedclass \
15 qt \
16 repeats \
17 std \
18 templates \
19 testfile \
20 widechar
22 all: $(PROGS)
24 anonstruct: anonstruct.cpp
25 g++ -o $@ $(CXXFLAGS) $^
27 lambda: lambda.cpp
28 g++ --std=c++0x -o $@ $(CXXFLAGS) $^
30 locals: locals.cpp
31 g++ -o $@ $(CXXFLAGS) $^
33 longdouble: longdouble.c
34 gcc -o $@ $(CXXFLAGS) $^
36 maths: maths.cpp
37 g++ -o $@ $(CXXFLAGS) $^
39 multibrkpt: multibrkpt.cpp
40 g++ -o $@ $(CXXFLAGS) $^
42 nestedclass: nestedclass.cpp
43 g++ -o $@ $(CXXFLAGS) $^
45 qt: qt.cpp
46 g++ -o $@ $(CXXFLAGS) $^ $(QT3INC) $(QT3LIB)
48 repeats: repeats.cpp
49 g++ -o $@ $(CXXFLAGS) $^ $(QT3INC) $(QT3LIB)
51 std: std.cpp
52 g++ -o $@ $(CXXFLAGS) $^
54 templates: templates.cpp
55 g++ -o $@ $(CXXFLAGS) $^
57 testfile: testfile.cpp
58 g++ -o $@ $(CXXFLAGS) $^ $(QT3INC) $(QT3LIB)
60 widechar: widechar.cpp
61 g++ -o $@ $(CXXFLAGS) $^
64 clean:
65 $(RM) $(PROGS)