#*****************************************************
#  CS225 General Makefile
#
#  File originally written by Matt Buchanan in Fall 1995
#
#*****************************************************


#**************************************************************************
# List of .o files that EXENAME depends on.  Edit as appropriate for MP.

OBJS = \
	fill.o cross.o bend.o tee.o straight.o indicator.o print.o main.o


#**************************************************************************
# Change this line if you don't like 'a.out'.

EXENAME = a.out


#**************************************************************************
# Macros defining the C/C++ compiler and linker.

CC = g++
CCOPTS = -g 
LINK = g++
LINKOPTS = -L/opt/SUNWspro/SC4.0/lib


#**************************************************************************
# Rules for building EXENAME from OBJS and OBJS from your source.

$(EXENAME):  $(OBJS)
	$(LINK) $(LINKOPTS) $(OBJS)

clean:
	-rm *.o $(EXENAME)
	-rm -r Templates.DB

fill.o : fill.h fill.C
	$(CC) -c $(CCOPTS) fill.C

cross.o : cross.h cross.C
	$(CC) -c $(CCOPTS) cross.C

bend.o : bend.h bend.C
	$(CC) -c $(CCOPTS) bend.C

tee.o : tee.h tee.C
	$(CC) -c $(CCOPTS) tee.C

straight.o : straight.h straight.C
	$(CC) -c $(CCOPTS) straight.C

indicator.o : indicator.h indicator.C
	$(CC) -c $(CCOPTS) indicator.C

print.o : print.h print.C 
	$(CC) -c $(CCOPTS) print.C

main.o : main.C fill.h cross.h bend.h tee.h straight.h indicator.h print.h
	$(CC) -c $(CCOPTS) main.C

