Unformatted text preview: # The main linking rule $(EXEC): $(OFILES) g++ -o $(EXEC) $(OFILES) # Clean not only cleans up object files, but also recreates the dependency file clean: rm -f *~ rm -f *.o rm -f $(EXEC) g++ $(CCFILES) -MM > $(EXEC).d # Always include the dependency file unless we run the clean command, # which will make it even if it does not exist ifneq ($(MAKECMDGOALS), clean) include $(EXEC).d endif...
View Full Document
This note was uploaded on 04/19/2008 for the course CS 265 taught by Professor Daniele.stevenson during the Spring '08 term at Wisc Eau Claire.
- Spring '08
- Data Structures