# file: lecture_05/GNUMakefile # # Note that this make file uses "-g" to compile and link "debug". # # define a target for the application # all: p02.exe # define a target to link the application # p02.exe: p02.o gcc -O -lm p02.o -o p02.exe # define targets to compile the source code # p02.o: p02.cc p02.h Makefile gcc -O -c p02.cc -o p02.o # define a debug target # debug: gcc -g -o p02.exe p02.cc # define a target to clean the directory # clean: rm -f p02.o p02.exe # # end of file