CC = gcc CFLAGS = -O2 INCPATH = -I/uns/include/python2.2 -I/uns/include -I/usr/X11R6/include `freetype-config --cflags` -I/usr/include/tcl8.4 -I/usr/include/python2.3/ LIBPATH = -L/usr/lib -L/uns/lib -L/usr/X11R6/lib LIBS = -lGL -lGLU -ldl -lXext -lX11 -lm -ltcl8.4 -ltk8.4 `freetype-config --libs` TARGETS = dobj.so draw.so diafont.so diaimage.so SOURCES = diafont.c diaimage.c \ dr_bezier.c dr_color.c dr_draw.c dr_grid.c dr_image.c dr_path.c dr_stack.c \ dr_text.c dr_wide.c dr_xform.c dr_mark.c \ ob_opengl.c ob_slsoggy.c CFLAGS = $(INCPATH) -fpic -g -O2 all : $(TARGETS) dobj.so : ob_slsoggy.o ob_opengl.o gcc -shared -o $@ $^ $(LIBPATH) $(LIBS) draw.so : dr_draw.o dr_bezier.o dr_path.o dr_grid.o dr_text.o dr_color.o dr_image.o \ dr_stack.o dr_xform.o dr_wide.o dr_mark.o gcc -shared -o $@ $^ $(LIBPATH) $(LIBS) diafont.so : diafont.o gcc -shared -o $@ $^ $(LIBPATH) $(LIBS) diaimage.so : diaimage.o gcc -shared -o $@ $^ $(LIBPATH) $(LIBS) clean : \rm -rf *.o *.pyc \#*\# *~ $(TARGETS) core depend : makedepend -D_MAKEDEPEND $(INCPATH) $(SOURCES) # DO NOT DELETE diafont.o: diafont.h diaimage.o: diaimage.h dr_bezier.o: dr_draw.h dr_color.o: dr_draw.h dr_draw.o: dr_draw.h dr_grid.o: dr_draw.h dr_image.o: dr_draw.h diaimage.h dr_path.o: dr_draw.h dr_stack.o: dr_draw.h dr_text.o: dr_draw.h diafont.h dr_wide.o: dr_draw.h dr_xform.o: dr_draw.h dr_mark.o: dr_draw.h