This preview shows page 1. Sign up to view the full content.
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
- Spring '08
- Data Structures