-# Makefile\r
-#\r
-\r
-CC=gcc -Wall\r
-INSTALL=install\r
-WGET=wget\r
-BINDIR=/usr/local/bin\r
-SHAREDIR=/usr/local/share/kagecgi\r
-DBURL=http://fonts.jp/kagedb/kagedb\r
-\r
-#for cygwin with glib\r
-#CFLAGS= -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/include/glib-2.0/glib -I/usr/local/lib/glib-2.0/include\r
-#LIBS= -L/usr/local/lib -lpng -ldb -lglib-2.0\r
-\r
-#for linux\r
-CFLAGS= -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include\r
-LIBS= -L/usr/local/lib -lpng -ldb -lglib-2.0\r
-\r
-#for MacOSX with fink\r
-#CFLAGS= -I/sw/include -I/sw/include/db3 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include/ -I/sw/include/libpng/ -I/usr/include\r
-#LIBS= -L/sw/lib -lpng -lglib-2.0 -L/usr/lib -ldb\r
-\r
-all: kage.cgi\r
-\r
-kage.cgi: kagecgi.o kagepng.o kagedf.o kagecd.o kageic.o kagepoly.o kagedb.o kageeg.o kagecomb.o kagechar.o kagetool.o\r
- $(CC) $(CFLAGS) -o kage.cgi kagecgi.o kagepng.o kagedf.o kagecd.o kageic.o kagepoly.o kagedb.o kageeg.o kagecomb.o kagechar.o kagetool.o $(LIBS)\r
-\r
-kagecgi.o: kagecgi.c\r
-kagedf.o: kagedf.c\r
-kagecd.o: kagecd.c\r
-kageic.o: kageic.c\r
-kagepoly.o: kagepoly.c\r
-kagedb.o: kagedb.c\r
-kageeg.o: kageeg.c\r
-kagechar.o: kagechar.c\r
-kagecomb.o: kagecomb.c\r
-kagetool.o: kagetool.c\r
-kagepng.o: kagepng.c\r
-\r
-clean:\r
- \rm -r -f *.o *~ *.exe *.cgi *.stackdump kagedb\r
-\r
-install: kage.cgi\r
+# Makefile
+#
+
+CC=gcc -Wall
+INSTALL=install
+WGET=wget
+BINDIR=/usr/local/bin
+SHAREDIR=/usr/local/share/kagecgi
+DBURL=http://fonts.jp/kagedb/kagedb
+
+CFLAGS=
+LIBS= -lpng -ldb -lm
+
+#for MacOSX with fink
+#CFLAGS= -I/sw/include -I/sw/include/db3 -I/sw/include/libpng/
+#LIBS= -L/sw/lib -lpng -ldb
+
+all: kage.cgi
+
+kage.cgi: kagecgi.o kagepng.o kagedf.o kagecd.o kageic.o kagepoly.o kagedb.o kageeg.o kagecomb.o kagechar.o kagetool.o kagestr.o
+ $(CC) $(CFLAGS) -o kage.cgi kagecgi.o kagepng.o kagedf.o kagecd.o kageic.o kagepoly.o kagedb.o kageeg.o kagecomb.o kagechar.o kagetool.o kagestr.o $(LIBS)
+
+kagecgi.o: kagecgi.c
+kagedf.o: kagedf.c
+kagecd.o: kagecd.c
+kageic.o: kageic.c
+kagepoly.o: kagepoly.c
+kagedb.o: kagedb.c
+kageeg.o: kageeg.c
+kagechar.o: kagechar.c
+kagecomb.o: kagecomb.c
+kagetool.o: kagetool.c
+kagepng.o: kagepng.c
+kagestr.o: kagestr.c
+
+clean:
+ \rm -r -f *.o *~ *.exe *.cgi *.stackdump kagedb
+
+install: kage.cgi