Drop main() prototype. Syncs with NetBSD-8
[minix.git] / libexec / httpd / lua / Makefile
blob448fa71946c7cb349d5f6b942e9a690f4758f603
1 #PREFIX=/Users/agcrooks
2 PREFIX=/usr
4 #LIBDIR=/usr/lib
6 LIB=luabozohttpd
7 SRCS=glue.c
8 MKMAN=no
9 CPPFLAGS+=-g -I${PREFIX}/pkg/include
10 LDADD+= -lbozohttpd
11 WARNS=4
12 CLEANFILES+= a a.sig
14 .include <bsd.lib.mk>
15 .include <bsd.own.mk>
17 LUABOZOOBJDIR != cd ${.CURDIR} && ${PRINTOBJDIR}
19 OPSYS!= uname -s
21 .if ${OPSYS} == "Darwin"
22 .sinclude <bsd.warns.mk>
24 lib${LIB}.dylib:
25 libtool -dynamic -o ${.TARGET} ${OBJS} ${PREFIX}/pkg/lib/liblua.dylib /usr/lib/libc.dylib ${PREFIX}/pkg/lib/libbozohttpd.dylib
27 t: lib${LIB}.dylib
28 cp Makefile a
29 ./bozo.lua --sign --detached a
30 ./bozo.lua --verify a.sig
32 .else
34 cp Makefile a
35 env LD_LIBRARY_PATH=${LUABOZOOBJDIR}:/lib:/usr/lib:${PREFIX}/lib \
36 ./bozo.lua --sign --detached a
37 env LD_LIBRARY_PATH=${LUABOZOOBJDIR}:/lib:/usr/lib:${PREFIX}/lib \
38 ./bozo.lua --verify a.sig
39 .endif