# Makefile for DAPPLE library 
#
# David Kotz 1995
#
# $Id: Makefile,v 2.15 95/12/17 00:08:05 dfk release Locker: dfk $

CC=g++	# should be a C++ compiler; in AIX, use xlC

# ok to use -g and -O together
# don't use "-Wall -DUSING_GNU_CPP" except with g++
IFLAGS=-I../lib
CFLAGS = $(IFLAGS) -g -Wall -DUSING_GNU_CPP

############################################
OBJS = 	int.o char.o float.o double.o boolean.o ActiveSet.o 
LIBS = dapple.a

HSRC =	dapple.h macros.h errors.h BigSmall.h Shape.h \
	ActiveSet.h Slice.h Collection.h Vector.h Matrix.h
CCSRC =	ActiveSet.cc Slice.cc Collection.cc Vector.cc Matrix.cc \
    	int.cc char.cc float.cc double.cc boolean.cc
SRC = $(HSRC) $(CCSRC)
FILES = Makefile $(HSRC) $(CCSRC)

############################################
.SUFFIXES : .C .cc

.C.o:
	$(CC) -c $(CFLAGS) $<
				   
.cc.o:
	$(CC) -c $(CFLAGS) $<

############################################
all: dapple.a TAGS

dapple.a: $(OBJS)
	ar -crv dapple.a $(OBJS)
	ranlib dapple.a

TAGS:  $(SRC)
	etags  $(SRC)

depend:
	makedepend $(IFLAGS) $(SRC)

sharlist: Makefile
	echo " "$(FILES) > sharlist

clean:
	rm -f *.o *~ core Makefile.bak

spotless: clean
	rm -f $(LIBS) TAGS dapple.a

############################################
# DO NOT DELETE THIS LINE -- make depend depends on it.

dapple.o: /usr/include/stdlib.h /usr/include/ansi_compat.h macros.h errors.h
dapple.o: /usr/include/stdio.h Shape.h BigSmall.h /usr/include/math.h
dapple.o: Collection.h Vector.h Slice.h Matrix.h ActiveSet.h
errors.o: /usr/include/stdlib.h /usr/include/ansi_compat.h
errors.o: /usr/include/stdio.h
BigSmall.o: /usr/include/math.h /usr/include/ansi_compat.h macros.h
Shape.o: /usr/include/stdlib.h /usr/include/ansi_compat.h
Shape.o: /usr/include/stdio.h macros.h
ActiveSet.o: /usr/include/stdlib.h /usr/include/ansi_compat.h macros.h
ActiveSet.o: dapple.h /usr/include/stdlib.h /usr/include/ansi_compat.h
ActiveSet.o: macros.h errors.h /usr/include/stdio.h Shape.h BigSmall.h
ActiveSet.o: /usr/include/math.h Collection.h Vector.h Slice.h Matrix.h
ActiveSet.o: ActiveSet.h
int.o: dapple.h /usr/include/stdlib.h /usr/include/ansi_compat.h macros.h
int.o: errors.h /usr/include/stdio.h Shape.h BigSmall.h /usr/include/math.h
int.o: Collection.h Vector.h Slice.h Matrix.h ActiveSet.h Collection.cc
int.o: Vector.cc Slice.cc Matrix.cc
char.o: dapple.h /usr/include/stdlib.h /usr/include/ansi_compat.h macros.h
char.o: errors.h /usr/include/stdio.h Shape.h BigSmall.h /usr/include/math.h
char.o: Collection.h Vector.h Slice.h Matrix.h ActiveSet.h Collection.cc
char.o: Vector.cc Slice.cc Matrix.cc
float.o: dapple.h /usr/include/stdlib.h /usr/include/ansi_compat.h macros.h
float.o: errors.h /usr/include/stdio.h Shape.h BigSmall.h /usr/include/math.h
float.o: Collection.h Vector.h Slice.h Matrix.h ActiveSet.h Collection.cc
float.o: Vector.cc Slice.cc Matrix.cc
double.o: dapple.h /usr/include/stdlib.h /usr/include/ansi_compat.h macros.h
double.o: errors.h /usr/include/stdio.h Shape.h BigSmall.h
double.o: /usr/include/math.h Collection.h Vector.h Slice.h Matrix.h
double.o: ActiveSet.h Collection.cc Vector.cc Slice.cc Matrix.cc
boolean.o: dapple.h /usr/include/stdlib.h /usr/include/ansi_compat.h macros.h
boolean.o: errors.h /usr/include/stdio.h Shape.h BigSmall.h
boolean.o: /usr/include/math.h Collection.h Vector.h Slice.h Matrix.h
boolean.o: ActiveSet.h Collection.cc Vector.cc Slice.cc Matrix.cc
