xref: /minix3/crypto/external/bsd/openssl/lib/libssl/Makefile (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1*ebfedea0SLionel Sambuc#	$NetBSD: Makefile,v 1.5 2013/01/18 18:09:56 christos Exp $
2*ebfedea0SLionel Sambuc
3*ebfedea0SLionel Sambuc# RCSid:
4*ebfedea0SLionel Sambuc#	Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
5*ebfedea0SLionel Sambuc#
6*ebfedea0SLionel Sambuc#	@(#) Copyright (c) 1994 Simon J. Gerraty
7*ebfedea0SLionel Sambuc#
8*ebfedea0SLionel Sambuc#	This file is provided in the hope that it will
9*ebfedea0SLionel Sambuc#	be of use.  There is absolutely NO WARRANTY.
10*ebfedea0SLionel Sambuc#	Permission to copy, redistribute or otherwise
11*ebfedea0SLionel Sambuc#	use this file is hereby granted provided that
12*ebfedea0SLionel Sambuc#	the above copyright notice and this notice are
13*ebfedea0SLionel Sambuc#	left intact.
14*ebfedea0SLionel Sambuc#
15*ebfedea0SLionel Sambuc#	Please send copies of changes and bug-fixes to:
16*ebfedea0SLionel Sambuc#	sjg@quick.com.au
17*ebfedea0SLionel Sambuc#
18*ebfedea0SLionel Sambuc
19*ebfedea0SLionel Sambuc.include <bsd.own.mk>
20*ebfedea0SLionel Sambuc
21*ebfedea0SLionel SambucUSE_FORT?=yes	# cryptographic software and network library
22*ebfedea0SLionel Sambuc
23*ebfedea0SLionel Sambuc# XXX There's a bit of work to do before we can enable warnings.
24*ebfedea0SLionel SambucWARNS=0
25*ebfedea0SLionel SambucCWARNFLAGS.clang+=	-Wno-unused-value
26*ebfedea0SLionel Sambuc
27*ebfedea0SLionel SambucLIB=	ssl
28*ebfedea0SLionel SambucCPPFLAGS+= -Dlib${LIB} -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto
29*ebfedea0SLionel Sambuc
30*ebfedea0SLionel SambucCRYPTODIST=	${NETBSDSRCDIR}/crypto
31*ebfedea0SLionel Sambuc
32*ebfedea0SLionel Sambuc.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
33*ebfedea0SLionel Sambuc.PATH: ${OPENSSLSRC} ${OPENSSLSRC}/crypto/pqueue
34*ebfedea0SLionel Sambuc
35*ebfedea0SLionel Sambuc.include "srcs.inc"
36*ebfedea0SLionel Sambuc
37*ebfedea0SLionel SambucLIBDPLIBS+=crypto ${.CURDIR}/../libcrypto
38*ebfedea0SLionel Sambuc
39*ebfedea0SLionel SambucAFLAGS+=-DELF
40*ebfedea0SLionel Sambuc
41*ebfedea0SLionel Sambuc# This is from the include/openssl directory; see ../libcrypto/Makefile
42*ebfedea0SLionel SambucINCS=	dtls1.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h kssl.h srtp.h
43*ebfedea0SLionel SambucINCSDIR=/usr/include/openssl
44*ebfedea0SLionel Sambuc
45*ebfedea0SLionel Sambuc# this rebuilds the `srcs.inc' and the .inc files it reads.
46*ebfedea0SLionel Sambuc# note that we have no idea, rc5 or rsa here so we include
47*ebfedea0SLionel Sambuc# them explicitly above if we are using these ciphers.
48*ebfedea0SLionel Sambuc# XXX
49*ebfedea0SLionel Sambuc# we patch `ssl.inc' as we need to be able to turn off SSLv2.
50*ebfedea0SLionel Sambucupdate_inc:
51*ebfedea0SLionel Sambuc	(cd ${.CURDIR}; \
52*ebfedea0SLionel Sambuc	find ${OPENSSLSRC}/ssl -name Makefile | \
53*ebfedea0SLionel Sambuc		perl ${OPENSSLSRC}/extsrcs.pl 2> srcs.inc; \
54*ebfedea0SLionel Sambuc	patch -s ssl.inc < ssl.diff )
55*ebfedea0SLionel Sambuc
56*ebfedea0SLionel SambucPKGCONFIG=libssl openssl
57*ebfedea0SLionel Sambuc.include "${.CURDIR}/../../pkgconfig.mk"
58*ebfedea0SLionel Sambuc
59*ebfedea0SLionel Sambuc.include <bsd.lib.mk>
60