makefile 241 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 $^ -o $@ stack.o: stack.cpp stack.h g++ -g -c -Wall -pedantic $< -o $@ teststack.o: teststack.cpp stack.h g++ -g -c -Wall -pedantic $< -o $@ .PHONY: clean clean: -rm stack.o teststack.o teststack