5751303 [rkeene@sledge /home/rkeene/personal/school/comp-sci-ii/lab5]$ cat -n Makefile
 1 CXX = g++
 2 CC = gcc
 3 CXXFLAGS =  -Wall
 4 LDFLAGS =
 5 LD = $(CXX)
 6 OBJ = poly.o
 7 
 8 all: lab5 test
 9 
10 lab5: lab5.o $(OBJ)
11     $(LD) $(LDFLAGS) -o $@ lab5.o $(OBJ)
12 
13 test: test.o $(OBJ)
14     $(LD) -o $@ test.o $(OBJ)
15     
16 test.o: test.cpp poly.h
17     $(CXX) $(CXXFLAGS) -o $@ -c test.cpp
18 
19 lab5.o: lab5.cpp poly.h
20     $(CXX) $(CXXFLAGS) -o $@ -c lab5.cpp
21 
22 poly.o: poly.cpp poly.h
23     $(CXX) $(CXXFLAGS) -o $@ -c poly.cpp
24 
25 clean:
26     rm -f lab5 test $(OBJ) lab5.o test.o
5751304 [rkeene@sledge /home/rkeene/personal/school/comp-sci-ii/lab5]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2002-10-01 23:45:11