1*ebfedea0SLionel Sambuc#PREFIX=/Users/agcrooks 2*ebfedea0SLionel SambucPREFIX=/usr 3*ebfedea0SLionel Sambuc 4*ebfedea0SLionel Sambuc#LIBDIR=/usr/lib 5*ebfedea0SLionel Sambuc 6*ebfedea0SLionel SambucLIB=luanetpgp 7*ebfedea0SLionel SambucSRCS=glue.c 8*ebfedea0SLionel SambucMKMAN=no 9*ebfedea0SLionel SambucCPPFLAGS+=-g -I${PREFIX}/pkg/include 10*ebfedea0SLionel SambucLDADD+= -lnetpgp 11*ebfedea0SLionel SambucWARNS=4 12*ebfedea0SLionel SambucCLEANFILES+= a a.sig 13*ebfedea0SLionel Sambuc 14*ebfedea0SLionel Sambuc.include <bsd.lib.mk> 15*ebfedea0SLionel Sambuc.include <bsd.own.mk> 16*ebfedea0SLionel Sambuc 17*ebfedea0SLionel SambucLUANETPGPOBJDIR != cd ${.CURDIR} && ${PRINTOBJDIR} 18*ebfedea0SLionel Sambuc 19*ebfedea0SLionel SambucOPSYS!= uname -s 20*ebfedea0SLionel Sambuc 21*ebfedea0SLionel Sambuc.if ${OPSYS} == "Darwin" 22*ebfedea0SLionel Sambuc.sinclude <bsd.warns.mk> 23*ebfedea0SLionel Sambuc 24*ebfedea0SLionel Sambuclib${LIB}.dylib: 25*ebfedea0SLionel Sambuc libtool -dynamic -o ${.TARGET} ${OBJS} ${PREFIX}/pkg/lib/liblua.dylib /usr/lib/libc.dylib ${PREFIX}/pkg/lib/libnetpgp.dylib 26*ebfedea0SLionel Sambuc 27*ebfedea0SLionel Sambuct: lib${LIB}.dylib 28*ebfedea0SLionel Sambuc cp Makefile a 29*ebfedea0SLionel Sambuc ./netpgp.lua --sign --detached a 30*ebfedea0SLionel Sambuc ./netpgp.lua --verify a.sig 31*ebfedea0SLionel Sambuc 32*ebfedea0SLionel Sambuc.else 33*ebfedea0SLionel Sambuct: 34*ebfedea0SLionel Sambuc cp Makefile a 35*ebfedea0SLionel Sambuc env LD_LIBRARY_PATH=${LUANETPGPOBJDIR}:/lib:/usr/lib:${PREFIX}/lib \ 36*ebfedea0SLionel Sambuc ./netpgp.lua --sign --detached a 37*ebfedea0SLionel Sambuc env LD_LIBRARY_PATH=${LUANETPGPOBJDIR}:/lib:/usr/lib:${PREFIX}/lib \ 38*ebfedea0SLionel Sambuc ./netpgp.lua --verify a.sig 39*ebfedea0SLionel Sambuc.endif 40