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

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2002-10-01 21:26:50