# file: lectures/lecture_37Makefile # # define a target for the application # all: example.exe # define a target to link the application # example.exe: example.o car_00.o g++ -lm example.o car_00.o -o example.exe # define targets to compile the source code # example.o: example.cc car.h Makefile g++ -O2 -c example.cc -o example.o car_00.o: car_00.cc car.h Makefile g++ -O2 -c car_00.cc -o car_00.o # define a target to clean the directory # clean: rm -f *.o *.exe # # end of file