1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
CPPFLAGS += -DGOT_LIBEXECDIR=${LIBEXECDIR} -DGOT_VERSION=${GOT_VERSION}
CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
#CFLAGS += -DGOT_PACK_NO_MMAP
#CFLAGS += -DGOT_NO_OBJ_CACHE
#CFLAGS += -DGOT_OBJ_CACHE_DEBUG
.if "${GOT_RELEASE}" == "Yes"
PREFIX ?= /usr/local
BINDIR ?= ${PREFIX}/bin
LIBEXECDIR ?= ${PREFIX}/libexec
MANDIR ?= ${PREFIX}/man/man
.else
PREFIX ?= ${HOME}
BINDIR ?= ${PREFIX}/bin
LIBEXECDIR ?= ${BINDIR}
BINOWN ?= ${USER}
.if !defined(BINGRP)
BINGRP != id -g -n
.endif
.if defined(PROFILE)
CPPFLAGS += -DPROFILE
DEBUG = -O0 -pg -g -static
.else
DEBUG = -O0 -g
.endif
.endif
.if "${MAKEWEB}" == "Yes"
LDADD = -L${PREFIX}/lib -static -lkcgihtml -lkcgi -lz -lutil
PREFIX = /usr/local
CHROOT_DIR = /var/www
GOTWEB_DIR = /cgi-bin/gotweb
LIBEXECDIR = ${GOTWEB_DIR}/libexec
LIBEXEC_DIR = ${CHROOT_DIR}${LIBEXECDIR}
ETC_DIR = ${CHROOT_DIR}/etc
EXPL_DIR = ${ETC_DIR}/examples
HTTPD_DIR = ${CHROOT_DIR}/htdocs
TMP_DIR = ${CHROOT_DIR}/tmp
PROG_DIR = ${HTTPD_DIR}/${PROG}
CGI_DIR = ${CHROOT_DIR}${GOTWEB_DIR}
TMPL_DIR = ${CGI_DIR}/gw_tmpl
WWWUSR ?= www
WWWGRP ?= www
.endif