KAGE/cgi needs following librarys:
- - Berkely DB 2 (3 is not supported yet)
+ - Berkely DB 1or2 (3 is not supported yet)
- libpng
- - glib
+ - glib2.0
- xlib
Please edit `Makefile' fit with your environment.
+
RUNNING MAKE
============
//kage.h\r
//\r
-#include <X11/Xlib.h>\r
-#include <X11/Xutil.h>\r
-#include <math.h>\r
+\r
+#include "sysdep.h"\r
\r
#ifndef _KAGE_H_\r
#define _KAGE_H_\r
//kagecgi.c\r
//\r
\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <png.h>\r
-#include <glib.h>\r
#include "kage.h"\r
#include "kagecgi.h"\r
+#include "sysdep.h"\r
\r
int main(int argc, char *argv[]){\r
GString *tmp1, *tmp2, *test1, *test2, *filename;\r
//kagecgi.h\r
//\r
\r
-#include <db1/db.h>\r
-//#include <db2/db_185.h>\r
-\r
-#include <png.h>\r
-#include <glib.h>\r
#include "kage.h"\r
+#include "sysdep.h"\r
\r
#ifndef _KAGECGI_H_\r
#define _KAGECGI_H_\r
//kagechar.c\r
//\r
\r
-#include <glib.h>\r
-#include <stdlib.h>\r
-#include "kagecgi.h"\r
#include "kage.h"\r
+#include "kagecgi.h"\r
+#include "sysdep.h"\r
\r
int isIDS(const GString *in){\r
//check IDC "u2ff*"\r
//kagecomb.c\r
//\r
-#include <glib.h>\r
-#include <math.h>\r
-#include <stdlib.h>\r
-#include "kagecgi.h"\r
+\r
#include "kage.h"\r
+#include "kagecgi.h"\r
+#include "sysdep.h"\r
\r
void combineYoko2(const GString *parts1, const GString *parts3, int *result){\r
int f, g, h, i, j, k, l;\r
//kagedb.c\r
//\r
\r
-#include <db1/db.h>\r
-//#include <db2/db_185.h>\r
-\r
-#include <sys/fcntl.h>\r
-#include <glib.h>\r
-#include "kagecgi.h"\r
#include "kage.h"\r
+#include "kagecgi.h"\r
+#include "sysdep.h"\r
\r
int initDB(){\r
kDatabase = dbopen(databaseFileName, O_RDWR|O_CREAT, 0666, DB_HASH, NULL);\r
//kageeg.c\r
//\r
\r
-#include <db1/db.h>\r
-//#include <db2/db_185.h>\r
-\r
-#include <glib.h>\r
-#include <stdlib.h>\r
-#include "kagecgi.h"\r
#include "kage.h"\r
+#include "kagecgi.h"\r
+#include "sysdep.h"\r
\r
void generateGlyphByIDS(const GString *in, GString *out, int flag){\r
GString *tmp1, *tmp2, *tmp3, *tmp4;\r
//kagepng.c
//
-#include <stdio.h>
-#include <stdlib.h>
-#include <png.h>
+#include "sysdep.h"
png_bytepp initPng(int width, int height){
png_bytepp image;
// kagepoly.c\r
//\r
\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include "kagecgi.h"\r
#include "kage.h"\r
+#include "kagecgi.h"\r
+#include "sysdep.h"\r
\r
void fillPolygon(struct kPoint *p, int number, int col, unsigned char **image){\r
int i, ix, iy;\r
\r
#include "kage.h"\r
#include "kagecgi.h"\r
-#include <stdlib.h>\r
-#include <png.h>\r
+#include "sysdep.h"\r
\r
void DotsWidth(int *dlx, int *drx){\r
int i, j;\r