This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!


By: anonymous_infoholic on Apr 18th, 2012  |  syntax: Make  |  size: 0.23 KB  |  views: 43  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. CC=g++
  2. CFLAGS=-c -Wall
  4. program: A.o List.o prog.o
  5.         $(CC) A.o List.o prog.o -o program
  6. prog.o: prog.cpp List.h A.h
  7.         $(CC) $(CFLAGS) prog.cpp
  8. List.o: List.cpp
  9.         $(CC) $(CFLAGS) List.cpp
  10. A.o: A.cpp List.h
  11.         $(CC) $(CFLAGS) A.cpp
clone this paste RAW Paste Data