1#PREFIX=/Users/agcrooks 2PREFIX=/usr 3 4#LIBDIR=/usr/lib 5 6LIB=luabozohttpd 7SRCS=glue.c 8MKMAN=no 9CPPFLAGS+=-g -I${PREFIX}/pkg/include 10LDADD+= -lbozohttpd 11WARNS=4 12CLEANFILES+= a a.sig 13 14.include <bsd.lib.mk> 15.include <bsd.own.mk> 16 17LUABOZOOBJDIR != cd ${.CURDIR} && ${PRINTOBJDIR} 18 19OPSYS!= uname -s 20 21.if ${OPSYS} == "Darwin" 22.sinclude <bsd.warns.mk> 23 24lib${LIB}.dylib: 25 libtool -dynamic -o ${.TARGET} ${OBJS} ${PREFIX}/pkg/lib/liblua.dylib /usr/lib/libc.dylib ${PREFIX}/pkg/lib/libbozohttpd.dylib 26 27t: lib${LIB}.dylib 28 cp Makefile a 29 ./bozo.lua --sign --detached a 30 ./bozo.lua --verify a.sig 31 32.else 33t: 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 40