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

OBJS = \
	asserts.o string.o infograph.o graph.o main.o\


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

EXENAME = a.out


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

# The -I/usr/dcs/csil/include/stl line is needed to properly compile STL
#  code using our CC compiler
CC = CC 
CCOPTS = -g -I/usr/dcs/csil/include/stl

LINK = CC 
LINKOPTS = -L/opt/SUNWspro/SC4.2/lib -g


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

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

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

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

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

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

string.o : string.h string.C asserts.h
	$(CC) -c $(CCOPTS) string.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 string.h
	$(CC) -c $(CCOPTS) main.C
