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