# file: $(ECE_1111)/labs/01/l01_03/Makefile # # define a target for the application # all: myprog.exe # define a target to link the application # myprog.exe: myprog.o g++ -lm myprog.o -o myprog.exe # g++ -lm -L. -ldsp myprog.o -o myprog.exe # define a debug target to compile with -ggdb3 # debug: g++ -lm -ggdb3 myprog.cc -o myprog.gdb # define targets to compile the source code # myprog.o: myprog.cc myprog.h Makefile g++ -O2 -c myprog.cc -o myprog.o # define a target to clean the directory # clean: rm -f myprog.o myfuncts.exe # # end of file