# This is a comment line OBJECTS = pa4.soln.o screen.o string.o //Defines a macro CC = /ncsu/centerline211/bin/CC //Another macro .C.o: //How to make .o from .C $(CC) -c $< //$ - use macro, < - predefined pa4.soln: pa4.soln.C $(OBJECTS) //How to make pa4.soln $(CC) -o $@ $(OBJECTS) //@ means use current, pa4.soln screen.o: screen.H screen.C //Dont need command, uses .C.o //Remember tab before command line!! clean: //used to delete files rm -f *.o pa4.soln //Unix command ^^^^^^^^ - That's a tab! Remember: The make file must be named Makefile or makefile