# GQuickDraw - quick&dirty graphic library for X11 # Copyright (C) 2002 Ingo Ruhnke # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA SWIG = swig LDFLAGS = -L/usr/X11R6/lib -lX11 -lpthread PYTHON_INCLUDES = -I/usr/include/python2.2 all : libgquickdraw.a gdtest python : python/gquickdraw.so guile : guile/libguile-gquickdraw.so libgquickdraw.a : gquickdraw.c gquickdraw.h $(CC) -Wall -O2 -c gquickdraw.c -o gquickdraw.o ar cru libgquickdraw.a gquickdraw.o ranlib $@ gdtest : gdtest.c libgquickdraw.a $(CC) -Wall -O2 $< -o $@ libgquickdraw.a $(LDFLAGS) python/gquickdraw.so : gquickdraw.c gquickdraw.h Makefile gquickdraw.i mkdir -p python/ $(SWIG) -python -o python/gquickdraw_wrap.c gquickdraw.i $(CC) -shared -fPIC $(PYTHON_INCLUDES) gquickdraw.c python/gquickdraw_wrap.c -o $@ $(LDFLAGS) guile/libguile-gquickdraw.so : gdraw.c main.c gdraw.h Makefile gquickdraw.i mkdir -p guile/ $(SWIG) gdraw.i -o guile/gquickdraw_wrap.c dist: mkdir -p gquickdraw-0.0.0/ mkdir -p gquickdraw-0.0.0/examples/ cp -v README COPYING INSTALL Makefile gquickdraw.c gquickdraw.h gquickdraw.i gdtest.c \ gquickdraw-0.0.0/ cp -v examples/*.scm examples/*.py gquickdraw-0.0.0/examples/ tar czf gquickdraw-0.0.0.tar.gz gquickdraw-0.0.0/ rm -rf gquickdraw-0.0.0/ # EOF #