# GDT/Makefile ############################################################################ # use same configuration parameters as in parent directory include ../Config.common include ../Config.site # the directory where the pools library is kept (only pools.h is needed) POOLSDIR = ../POOLS # specific compile flags for this library GDTFLAGS = ############################################################################ # No need to change anything below here ############################################################################ # the source files in this directory SOURCES = List.c DList.c Bintree.c Octree.c Array.c error.c CXXSOURCES = CSList.C OBJECTS = ${SOURCES:.c=.o} ${CXXSOURCES:.C=.o} CFLAGS = $(_CFLAGS) -I$(POOLSDIR) $(GDTFLAGS) LDFLAGS = $(_LDFLAGS) LIBS = $(_LIBS) #default target: compile all: libgdt.a # generate source file dependencies depend: $(MAKEDEPEND) $(CFLAGS) $(SOURCES) > deps # compile and link libgdt.a: ${OBJECTS} $(AR) libgdt.a $(OBJECTS) $(RANLIB) libgdt.a install: uninstall: # make a clean source tree again clean: cleangen -${RM} libgdt.a *.o *~ core deps ${TOUCH} deps distclean: clean ############################################################################### # dependencies --- automatically generated with make depend !! ############################################################################### include deps