# file: $(Lab No. 05)/GNUMakefile # # define a target for the application # all: mread.exe # define a target to link the application # mread.exe: mread.o mfuncts.o Matrix.h Makefile g++-8 -lm mread.o mfuncts.o -o mread.exe # define targets to compile source code # mread.o: mread.cc Matrix.h Makefile g++-8 -O2 -c mread.cc -o mread.o mfuncts.o: mfuncts.cc Matrix.h Makefile g++-8 -O2 -c mfuncts.cc -o mfuncts.o # define a target to clean the directory # clean: rm -f *.o *.exe # # end of file