1 CXXFLAGS=-O0 -g 2 3 QT5INC = -I/usr/include/qt5 -fPIC 4 QT5LIB = /usr/lib64/libQt5Core.so 5 6 PROGS = \ 7 anonstruct \ 8 funcnames \ 9 helloworld \ 10 locals \ 11 longdouble \ 12 maths \ 13 multibrkpt \ 14 nestedclass \ 15 qt \ 16 repeats \ 17 std \ 18 templates \ 19 testfile \ 20 tooltips \ 21 widechar 22 23 all: $(PROGS) 24 25 anonstruct: anonstruct.cpp 26 g++ -o $@ $(CXXFLAGS) $^ 27 28 funcnames: funcnames.cpp 29 g++ --std=c++11 -o $@ $(CXXFLAGS) $^ 30 31 helloworld: helloworld.asm 32 nasm -f elf64 -F dwarf -g $^ -o $(^:.asm=.o) 33 ld -g -o $@ $(^:.asm=.o) 34 35 locals: locals.cpp 36 g++ -o $@ $(CXXFLAGS) $^ 37 38 longdouble: longdouble.c 39 gcc -o $@ $(CXXFLAGS) $^ 40 41 maths: maths.cpp 42 g++ -o $@ $(CXXFLAGS) $^ 43 44 multibrkpt: multibrkpt.cpp 45 g++ -o $@ $(CXXFLAGS) $^ 46 47 nestedclass: nestedclass.cpp 48 g++ -o $@ $(CXXFLAGS) $^ 49 50 qt: qt.cpp 51 g++ -o $@ $(CXXFLAGS) $^ $(QT5INC) $(QT5LIB) 52 53 repeats: repeats.cpp 54 g++ -o $@ $(CXXFLAGS) $^ $(QT5INC) $(QT5LIB) 55 56 std: std.cpp 57 g++ -o $@ $(CXXFLAGS) $^ 58 59 templates: templates.cpp 60 g++ -std=c++0x -o $@ $(CXXFLAGS) $^ 61 62 testfile: testfile.cpp 63 g++ -o $@ $(CXXFLAGS) $^ $(QT5INC) $(QT5LIB) 64 65 tooltips: tooltips.cpp 66 g++ -o $@ $(CXXFLAGS) $^ 67 68 widechar: widechar.cpp 69 g++ -o $@ $(CXXFLAGS) $^ 70 71 72 clean: 73 $(RM) $(PROGS)