#this is a comment #all target, lists all the programs this makefile builds all: validTest #a program target validTest: validTest.o valid.o g++ validTest.o valid.o -o validTest # a .o target validTest.o: validTest.cpp g++ -c validTest.cpp #another .o target valid.o: valid.cpp valid.h g++ -c valid.cpp #customary clean target, which cleans the directory clean: rm -f *.o a.out validTest