#*****************************************************
#  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 = \
	asserts.o array.o graph.o infograph.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 = CC
CCOPTS = -g -I/usr/dcs/csil/include/stl
LINK = CC
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

purify: $(OBJS)
	purify $(LINK) $(LINKOPTS) $(OBJS)

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

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

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

infograph.o : infograph.h infograph.C graph.h array.h
	$(CC) -c $(CCOPTS) infograph.C

main.o : main.C graph.h infograph.h
	$(CC) -c $(CCOPTS) main.C
