Remove building with NOCRYPTO option
[minix.git] / crypto / external / bsd / openssl / lib / libssl / Makefile
blob8481aec3abf2e903ae8f8b80ab7125c202e9ccb6
1 # $NetBSD: Makefile,v 1.5 2013/01/18 18:09:56 christos Exp $
3 # RCSid:
4 # Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
6 # @(#) Copyright (c) 1994 Simon J. Gerraty
8 # This file is provided in the hope that it will
9 # be of use. There is absolutely NO WARRANTY.
10 # Permission to copy, redistribute or otherwise
11 # use this file is hereby granted provided that
12 # the above copyright notice and this notice are
13 # left intact.
15 # Please send copies of changes and bug-fixes to:
16 # sjg@quick.com.au
19 .include <bsd.own.mk>
21 USE_FORT?=yes # cryptographic software and network library
23 # XXX There's a bit of work to do before we can enable warnings.
24 WARNS=0
25 CWARNFLAGS.clang+= -Wno-unused-value
27 LIB= ssl
28 CPPFLAGS+= -Dlib${LIB} -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto
30 CRYPTODIST= ${NETBSDSRCDIR}/crypto
32 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
33 .PATH: ${OPENSSLSRC} ${OPENSSLSRC}/crypto/pqueue
35 .include "srcs.inc"
37 LIBDPLIBS+=crypto ${.CURDIR}/../libcrypto
39 AFLAGS+=-DELF
41 # This is from the include/openssl directory; see ../libcrypto/Makefile
42 INCS= dtls1.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h kssl.h srtp.h
43 INCSDIR=/usr/include/openssl
45 # this rebuilds the `srcs.inc' and the .inc files it reads.
46 # note that we have no idea, rc5 or rsa here so we include
47 # them explicitly above if we are using these ciphers.
48 # XXX
49 # we patch `ssl.inc' as we need to be able to turn off SSLv2.
50 update_inc:
51 (cd ${.CURDIR}; \
52 find ${OPENSSLSRC}/ssl -name Makefile | \
53 perl ${OPENSSLSRC}/extsrcs.pl 2> srcs.inc; \
54 patch -s ssl.inc < ssl.diff )
56 PKGCONFIG=libssl openssl
57 .include "${.CURDIR}/../../pkgconfig.mk"
59 .include <bsd.lib.mk>