Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / crypto / external / bsd / netpgp / dist / bindings / lua / Makefile
blobe1d917c3f8c216ceda53f028f9d3c36dccbadeb7
1 #PREFIX=/Users/agcrooks
2 PREFIX=/usr
4 #LIBDIR=/usr/lib
6 LIB=luanetpgp
7 SRCS=glue.c
8 MKMAN=no
9 CPPFLAGS+=-g -I${PREFIX}/pkg/include
10 LDADD+= -lnetpgp
11 WARNS=4
12 CLEANFILES+= a a.sig
14 .include <bsd.lib.mk>
15 .include <bsd.own.mk>
17 LUANETPGPOBJDIR != 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/libnetpgp.dylib
27 t: lib${LIB}.dylib
28 cp Makefile a
29 ./netpgp.lua --sign --detached a
30 ./netpgp.lua --verify a.sig
32 .else
34 cp Makefile a
35 env LD_LIBRARY_PATH=${LUANETPGPOBJDIR}:/lib:/usr/lib:${PREFIX}/lib \
36 ./netpgp.lua --sign --detached a
37 env LD_LIBRARY_PATH=${LUANETPGPOBJDIR}:/lib:/usr/lib:${PREFIX}/lib \
38 ./netpgp.lua --verify a.sig
39 .endif