MODULE_PREFIX := $(PREFIX)/lib/mandshurica
WEBROOT_PREFIX := $(PREFIX)/lib/mandshurica/webroot
PROJECTS_PREFIX := $(PREFIX)/lib/mandshurica/projects
+TOOL_PREFIX := $(PREFIX)/lib/mandshurica/tool
CC := gcc
-CFLAGS := -g -std=c99 -DPREFIX=\\\"$(PREFIX)\\\" -DWEBROOT_PREFIX=\\\"$(WEBROOT_PREFIX)\\\" -DMODULE_PREFIX=\\\"$(MODULE_PREFIX)\\\" -DPROJECTS_PREFIX=\\\"$(PROJECTS_PREFIX)\\\" -D_DEFAULT_SOURCE
+CFLAGS := -g -std=c99 -DPREFIX=\\\"$(PREFIX)\\\" -DWEBROOT_PREFIX=\\\"$(WEBROOT_PREFIX)\\\" -DMODULE_PREFIX=\\\"$(MODULE_PREFIX)\\\" -DPROJECTS_PREFIX=\\\"$(PROJECTS_PREFIX)\\\" -DTOOL_PREFIX=\\\"$(TOOL_PREFIX)\\\" -D_DEFAULT_SOURCE
LDFLAGS :=
LIBS :=
fprintf(f, "Set CookieDB %s/passwd.db\n", PREFIX);
fprintf(f, "Set HTTPPort 1024\n");
fprintf(f, "Set HTTPRoot %s\n", WEBROOT_PREFIX);
+ fprintf(f, "Set HTMLManage %s/html-manage\n", TOOL_PREFIX);
fprintf(f, "Set ProjectRoot %s\n", WEBROOT_PREFIX);
fprintf(f, "Set InstanceName Sumire\n");
fprintf(f, "\n");
#!/bin/sh
+# $Id$
which gmake 2>/dev/null
if [ "$?" = "0" ]; then
MAKE=gmake
MAKE=make
fi
if [ "`uname -s`" = "NetBSD" ]; then
- $MAKE PREFIX=`pwd` MODULE_PREFIX=`pwd`/Module WEBROOT_PREFIX=`pwd`/Webroot PROJECTS_PREFIX=`pwd`/Projects -j`cat /proc/cpuinfo | grep proc | wc -l`
+ $MAKE PREFIX=`pwd` MODULE_PREFIX=`pwd`/Module WEBROOT_PREFIX=`pwd`/Webroot PROJECTS_PREFIX=`pwd`/Projects TOOL_PREFIX=`pwd`/Tool -j`cat /proc/cpuinfo | grep proc | wc -l`
else
- $MAKE PREFIX=`pwd` MODULE_PREFIX=`pwd`/Module WEBROOT_PREFIX=`pwd`/Webroot PROJECTS_PREFIX=`pwd`/Projects -j`nproc`
+ $MAKE PREFIX=`pwd` MODULE_PREFIX=`pwd`/Module WEBROOT_PREFIX=`pwd`/Webroot PROJECTS_PREFIX=`pwd`/Projects TOOL_PREFIX=`pwd`/Tool -j`nproc`
fi
exit $?