Home | History | Annotate | Line # | Download | only in libssl
Makefile revision 1.2
      1 #	$NetBSD: Makefile,v 1.2 2010/07/06 05:59:51 mrg Exp $
      2 
      3 # RCSid:
      4 #	Id: Makefile,v 1.33 1998/11/11 11:53:53 sjg Exp
      5 #
      6 #	@(#) Copyright (c) 1994 Simon J. Gerraty
      7 #
      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. 
     14 #      
     15 #	Please send copies of changes and bug-fixes to:
     16 #	sjg (at] quick.com.au
     17 #
     18 
     19 .include <bsd.own.mk>
     20 
     21 USE_FORT?=yes	# cryptographic software and network library
     22 
     23 # XXX There's a bit of work to do before we can enable warnings.
     24 WARNS=0
     25 
     26 LIB=	ssl
     27 CPPFLAGS+= -Dlib${LIB} -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto
     28 
     29 CRYPTODIST=	${NETBSDSRCDIR}/crypto
     30 
     31 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
     32 .PATH: ${OPENSSLSRC} ${OPENSSLSRC}/crypto/pqueue
     33 
     34 .include "srcs.inc"
     35 
     36 LIBDPLIBS+=crypto ${.CURDIR}/../libcrypto
     37 
     38 AFLAGS+=-DELF
     39 
     40 # This is from the include/openssl directory; see ../libcrypto/Makefile
     41 INCS=	dtls1.h ssl.h ssl2.h ssl3.h ssl23.h tls1.h kssl.h
     42 INCSDIR=/usr/include/openssl
     43 
     44 # this rebuilds the `srcs.inc' and the .inc files it reads.
     45 # note that we have no idea, rc5 or rsa here so we include
     46 # them explicitly above if we are using these ciphers.
     47 # XXX
     48 # we patch `ssl.inc' as we need to be able to turn off SSLv2.
     49 update_inc:
     50 	(cd ${.CURDIR}; \
     51 	find ${OPENSSLSRC}/ssl -name Makefile | \
     52 		perl ${OPENSSLSRC}/extsrcs.pl 2> srcs.inc; \
     53 	patch -s ssl.inc < ssl.diff )
     54 
     55 .include <bsd.lib.mk>
     56