SHARE
TWEET

makefile

anonymous_infoholic Apr 18th, 2012 46 Never
  1. CC=g++
  2. CFLAGS=-c -Wall
  3.  
  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
RAW Paste Data
Top