Sync usage with man page.
[netbsd-mini2440.git] / crypto / external / bsd / openssl / lib / libssl / Makefile
blob88c03403c7eb482c876a3d5e75fc2a9a7ea877ee
1 # $NetBSD: Makefile,v 1.16 2007/12/09 21:57:35 adrianp 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
26 LIB= ssl
27 CPPFLAGS+= -Dlib${LIB} -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto
29 CRYPTODIST= ${NETBSDSRCDIR}/crypto
31 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
32 .PATH: ${OPENSSLSRC} ${OPENSSLSRC}/crypto/pqueue
34 .include "srcs.inc"
36 LIBDPLIBS+=crypto ${.CURDIR}/../libcrypto
38 # XXX
39 .if ${OBJECT_FMT} == "ELF"
40 AFLAGS+=-DELF
41 .else
42 AFLAGS+=-DOUT
43 .endif
45 # This is from the include/openssl directory; see ../libcrypto/Makefile
46 INCS= dtls1.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h kssl.h
47 INCSDIR=/usr/include/openssl
49 # this rebuilds the `srcs.inc' and the .inc files it reads.
50 # note that we have no idea, rc5 or rsa here so we include
51 # them explicitly above if we are using these ciphers.
52 # XXX
53 # we patch `ssl.inc' as we need to be able to turn off SSLv2.
54 update_inc:
55 (cd ${.CURDIR}; \
56 find ${OPENSSLSRC}/ssl -name Makefile | \
57 perl ${OPENSSLSRC}/extsrcs.pl 2> srcs.inc; \
58 patch -s ssl.inc < ssl.diff )
60 .include <bsd.lib.mk>