# SGL/Makefile ############################################################################ # use same configuration parameters as in the 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 SGL_CFLAGS = ############################################################################ # No need to change anything below here ############################################################################ # the source files in this directory SOURCES = sgl.c poly_scan.c poly_scan_flat.c poly_scan_z.c poly_clip.c \ line_scan.c line_clip.c OBJECTS = ${SOURCES:.c=.o} THISDIRFLAGS = -I.. -I$(POOLSDIR) $(SGL_CFLAGS) #default target: compile all: libsgl.a # generate source file dependencies depend: $(MAKEDEPEND) $(MKDEPFLAGS) $(SOURCES) > deps # compile and link libsgl.a: ${OBJECTS} $(AR) libsgl.a $(OBJECTS) $(RANLIB) libsgl.a install: uninstall: # make a clean source tree again clean: cleangen -${RM} libsgl.a *.o *~ core deps ${TOUCH} deps distclean: clean ############################################################################### # dependencies --- automatically generated with make depend !! ############################################################################### include deps