# file: lecture_29/Makefile # # define a target for the application # all: example.exe # define a target to link the application # example.exe: example.o t_00.o g++ -lm example.o t_00.o -o example.exe # define targets to compile the source code # example.o: example.cc t.h Makefile g++ -O2 -c example.cc -o example.o t_00.o: t_00.cc t.h Makefile g++ -O2 -c t_00.cc -o t_00.o # define a target to clean the directory # clean: rm -f *.o *.exe # define a target to do nothing # joe: echo "hello joe" # # end of file