# file: lecture_29/Makefile # # revision history: # 20240329 (JP): initial version # # define a target for the application # all: example.exe # define a target to link the application # example.exe: example.o g++ -lm example.o -o example.exe # define a debug target to compile with -ggdb3 # debug: g++ -g example.cc -o example.gdb # define targets to compile the source code # example.o: example.cc example.h Makefile g++ -g -c example.cc -o example.o # define a target to clean the directory # clean: rm -f example.o example.exe # # end of file