# file: GNUMakefile # # define a target for the application # all: example.exe # define a target to link the application # example.exe: example.o example_00.o g++ -lm example.o example_00.o -o example.exe # define targets to compile # example.o: example.cc Example.h g++ -O2 -c example.cc -o example.o example_00.o: example_00.cc Example.h g++ -O2 -c example_00.cc -o example_00.o # define a target to clean the directory # clean: rm -f example.o example.exe # # end of file