Add the dependent libs to the openpgpsdk library itself, rather than making

any program that uses the library specifically add them.

Install header files in the appropriate place
This commit is contained in:
agc 2009-01-20 19:48:23 +00:00
parent f6ab492fbf
commit 4442e07493
2 changed files with 20 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.2 2009/01/20 16:58:09 agc Exp $ # $NetBSD: Makefile,v 1.3 2009/01/20 19:48:23 agc Exp $
PROG=openpgp PROG=openpgp
LDADD+=-lopenpgpsdk -lcrypto -lz -lbz2 LDADD+=-lopenpgpsdk
CPPFLAGS+=-I${.CURDIR}/../dist/include CPPFLAGS+=-I${.CURDIR}/../dist/include
WARNS=0 WARNS=0
NOMAN= # defined NOMAN= # defined

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2009/01/20 07:12:16 agc Exp $ # $NetBSD: Makefile,v 1.2 2009/01/20 19:48:23 agc Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
@ -18,7 +18,22 @@ CPPFLAGS+= -I${EXTDIST}/include
NOMAN= # defined NOMAN= # defined
WARNS=1 WARNS=1
EXTDIST= ${NETBSDSRCDIR}/crypto/external/bsd/openpgpsdk/dist EXTDIST=${NETBSDSRCDIR}/crypto/external/bsd/openpgpsdk/dist
.PATH: ${EXTDIST}/src/lib
.PATH: ${EXTDIST}/include/openpgpsdk ${EXTDIST}/src/lib
INCS+= accumulate.h armour.h callback.h compress.h configure.h
INCS+= create.h crypto.h defs.h errors.h
INCS+= final.h hash.h keyring.h lists.h memory.h
INCS+= packet-parse.h packet-show-cast.h packet-show.h packet.h
INCS+= random.h readerwriter.h signature.h std_print.h
INCS+= streamwriter.h types.h util.h
INCS+= validate.h version.h writer.h writer_armoured.h
INCSDIR=/usr/include/openpgpsdk
LDADD+= -lcrypto -lz -lbz2
LIBDPLIBS+= crypto ${NETBSDSRCDIR}/lib/libcrypto
LIBDPLIBS+= z ${NETBSDSRCDIR}/lib/libz
LIBDPLIBS+= bz2 ${NETBSDSRCDIR}/lib/libbz2
.include <bsd.lib.mk> .include <bsd.lib.mk>