2001-11-21 20:33:26 +03:00
|
|
|
# $NetBSD: Makefile,v 1.4 2001/11/21 17:33:26 wiz Exp $
|
2000-06-16 08:54:48 +04:00
|
|
|
|
|
|
|
# RCSid:
|
|
|
|
# Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
|
|
|
|
#
|
|
|
|
# @(#) Copyright (c) 1994 Simon J. Gerraty
|
|
|
|
#
|
|
|
|
# This file is provided in the hope that it will
|
|
|
|
# be of use. There is absolutely NO WARRANTY.
|
|
|
|
# Permission to copy, redistribute or otherwise
|
|
|
|
# use this file is hereby granted provided that
|
|
|
|
# the above copyright notice and this notice are
|
|
|
|
# left intact.
|
|
|
|
#
|
|
|
|
# Please send copies of changes and bug-fixes to:
|
|
|
|
# sjg@quick.com.au
|
|
|
|
#
|
|
|
|
|
2000-06-16 10:16:37 +04:00
|
|
|
# XXX There's a bit of work to do before we can enable warnings.
|
|
|
|
WARNS=0
|
|
|
|
|
2000-06-16 08:54:48 +04:00
|
|
|
LIB= ssl
|
|
|
|
CFLAGS+= -Dlib${LIB}
|
|
|
|
|
2000-06-16 10:16:37 +04:00
|
|
|
CRYPTODIST= ${.CURDIR}/../../crypto/dist
|
|
|
|
|
|
|
|
.include "../../crypto/Makefile.openssl"
|
2000-06-16 08:54:48 +04:00
|
|
|
.PATH: ${OPENSSLSRC}
|
|
|
|
|
|
|
|
.include "srcs.inc"
|
|
|
|
|
|
|
|
# XXX
|
|
|
|
.if ${OBJECT_FMT} == "ELF"
|
|
|
|
AFLAGS+=-DELF
|
|
|
|
.else
|
|
|
|
AFLAGS+=-DOUT
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# This is from the include/openssl directory; see ../libcrypto/Makefile
|
2001-04-12 11:48:03 +04:00
|
|
|
INCS= ssl.h ssl2.h ssl23.h ssl3.h tls1.h
|
2000-06-16 08:54:48 +04:00
|
|
|
INCSDIR=/usr/include/openssl
|
|
|
|
|
|
|
|
# this rebuilds the `srcs.inc' and the .inc files it reads.
|
|
|
|
# note that we have no idea, rc5 or rsa here so we include
|
2001-11-21 20:33:26 +03:00
|
|
|
# them explicitly above if we are using these ciphers.
|
2000-06-16 08:54:48 +04:00
|
|
|
# XXX
|
|
|
|
# we patch `ssl.inc' as we need to be able to turn off SSLv2.
|
|
|
|
update_inc:
|
|
|
|
(cd ${.CURDIR}; \
|
2000-06-16 10:16:37 +04:00
|
|
|
find ${OPENSSLSRC}/ssl -name Makefile.ssl | \
|
|
|
|
perl ${OPENSSLSRC}/extsrcs.pl 2> srcs.inc; \
|
2000-06-16 08:54:48 +04:00
|
|
|
patch -s ssl.inc < ssl.diff )
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|