summaryrefslogtreecommitdiff
path: root/libexec/httpd/lua/Makefile
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2010-05-10 03:30:04 +0000
committermrg <mrg@NetBSD.org>2010-05-10 03:30:04 +0000
commit390458fa546a7c8cf4c2ef38e584c9bbbc2cd638 (patch)
tree3938648e1845c1cba939af177317c91561ef9ee4 /libexec/httpd/lua/Makefile
parent10e151e52e2a8ed4f8f81ec5c34250e73569797b (diff)
import bozohttpd 20100509. it has these changes:
o major rework and clean up of internal interfaces. move the main program into main.c, the remaining parts are useable as library. add bindings for lua. by Alistair G. Crooks <agc@netbsd.org> o fix http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566325 special thanks to al for the majority of these changes.
Diffstat (limited to 'libexec/httpd/lua/Makefile')
-rw-r--r--libexec/httpd/lua/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/libexec/httpd/lua/Makefile b/libexec/httpd/lua/Makefile
new file mode 100644
index 00000000000..448fa71946c
--- /dev/null
+++ b/libexec/httpd/lua/Makefile
@@ -0,0 +1,39 @@
+#PREFIX=/Users/agcrooks
+PREFIX=/usr
+
+#LIBDIR=/usr/lib
+
+LIB=luabozohttpd
+SRCS=glue.c
+MKMAN=no
+CPPFLAGS+=-g -I${PREFIX}/pkg/include
+LDADD+= -lbozohttpd
+WARNS=4
+CLEANFILES+= a a.sig
+
+.include <bsd.lib.mk>
+.include <bsd.own.mk>
+
+LUABOZOOBJDIR != cd ${.CURDIR} && ${PRINTOBJDIR}
+
+OPSYS!= uname -s
+
+.if ${OPSYS} == "Darwin"
+.sinclude <bsd.warns.mk>
+
+lib${LIB}.dylib:
+ libtool -dynamic -o ${.TARGET} ${OBJS} ${PREFIX}/pkg/lib/liblua.dylib /usr/lib/libc.dylib ${PREFIX}/pkg/lib/libbozohttpd.dylib
+
+t: lib${LIB}.dylib
+ cp Makefile a
+ ./bozo.lua --sign --detached a
+ ./bozo.lua --verify a.sig
+
+.else
+t:
+ cp Makefile a
+ env LD_LIBRARY_PATH=${LUABOZOOBJDIR}:/lib:/usr/lib:${PREFIX}/lib \
+ ./bozo.lua --sign --detached a
+ env LD_LIBRARY_PATH=${LUABOZOOBJDIR}:/lib:/usr/lib:${PREFIX}/lib \
+ ./bozo.lua --verify a.sig
+.endif