INCDIRS = 	-I/usr/imports/include 
LIBDIRS = 	-L/usr/imports/lib/X11 -L/usr/imports/lib
CCSWITCHES = 	$(INCDIRS) 

.c.o:	
	$(CC) -c $(CCSWITCHES) $<

tkRaster.o: tkRaster.h tkRasterBuiltIn.h

tkRasterBuiltIn.o: tkRaster.h tkRasterBuiltIn.h

tkAppInit.o: tkRaster.h 

tkImageAppInit.o: tkRaster.h tkRasterImage.h

tkRasterImage.o: tkRaster.h tkRasterImage.h ppm.h

ppm.o: ppm.h

raster.a: tkRaster.o tkRasterBuiltIn.o tkRasterImage.o ppm.o
	ar r raster.a tkRaster.o tkRasterBuiltIn.o tkRasterImage.o ppm.o
	ranlib raster.a

image_wish: tkImageAppInit.o raster.a
	$(CC) $(CCSWITCHES) tkImageAppInit.o raster.a \
	        -o image_wish $(LIBDIRS)  -ltk -ltcl -lX11 -lm

raster_wish: tkAppInit.o raster.a
	$(CC) $(CCSWITCHES) tkAppInit.o raster.a \
		-o raster_wish $(LIBDIRS) -lX11 -ltk -ltcl -lm

