Advertisement
RIck687

Makefile

Apr 27th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. # Define the list of files
  2. OBJECTS = driver.o insert.o print.o chain.o plan.o
  3. INCLUDES = cs2123p6.h
  4.  
  5. # Rules for building each .o file
  6. %.o: %.c ${INCLUDES}
  7. gcc -g -c $<
  8.  
  9. #Rule for building executable file
  10. p6: ${OBJECTS}
  11. gcc -g -o p6 ${OBJECTS}
  12.  
  13. clean:
  14. rm -f ${OBJECTS}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement