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