makefile 229 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 testlist: testlist.o list.o g++ -g $^ -o $@ list.o: list.cpp list.h g++ -g -c -Wall -pedantic $< -o $@ testlist.o: testlist.cpp list.h g++ -g -c -Wall -pedantic $< -o $@ .PHONY: clean clean: -rm list.o testlist.o testlist