Blob


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