2000-01-29 05:51:46 +00:00
|
|
|
# If you link against Tcl like so "-ltcl", leave this blank.
|
|
|
|
TCL_VERSION?=8.2
|
|
|
|
TCL_NDVER?=${TCL_VERSION:S/.//} # same, but without the dot
|
|
|
|
|
|
|
|
PREFIX?= /usr/local
|
|
|
|
|
|
|
|
INCLUDES=-I${PREFIX}/include/apache -I${PREFIX}/include/tcl${TCL_VERSION}
|
|
|
|
|
|
|
|
CC!= ${PREFIX}/sbin/apxs -q CC
|
|
|
|
CFLAGS!= ${PREFIX}/sbin/apxs -q CFLAGS CFLAGS_SHLIB
|
|
|
|
CFLAGS+= -Wall -DSTATUS -DNO_DBM_REWRITEMAP ${INCLUDES}
|
2000-02-22 22:34:07 +00:00
|
|
|
CFLAGS+= -DDEBUG_SCRIPT_DIR="\"${PREFIX}/share/mod_dtcl/\""
|
2000-01-29 05:51:46 +00:00
|
|
|
|
|
|
|
LIB= mod_dtcl
|
|
|
|
SHLIB_MAJOR=1
|
|
|
|
SHLIB_MINOR=0
|
|
|
|
|
2000-02-22 21:31:57 +00:00
|
|
|
LDADD= -L${PREFIX}/lib -ltcl${TCL_NDVER} -lm
|
|
|
|
LDFLAGS=${LDADD}
|
2000-01-29 05:51:46 +00:00
|
|
|
|
|
|
|
NOPROFILE= True # to avoid building profiled library
|
|
|
|
INTERNALLIB= True # to avoid building a static version
|
|
|
|
|
|
|
|
SRCS= mod_dtcl.c
|
|
|
|
NOMAN= True # don't bother with the man-page here, let the port handle it
|
|
|
|
|
|
|
|
all: ${SHLIB_NAME} testdtcl
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|