Home | History | Annotate | Line # | Download | only in libssl
Makefile revision 1.4
      1 #	$NetBSD: Makefile,v 1.4 2025/07/21 22:21:21 christos 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 CWARNFLAGS.clang+=	-Wno-unused-value
     24 # XXX: This warning seems to trigger incorrectly
     25 CWARNFLAGS.clang+=	-Wno-atomic-alignment
     26 
     27 LIB=	ssl
     28 CPPFLAGS+= -Dlib${LIB} -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto
     29 CPPFLAGS+= -I${OPENSSLSRC}/include
     30 
     31 CRYPTODIST=	${NETBSDSRCDIR}/crypto
     32 
     33 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
     34 .PATH: ${OPENSSLSRC} ${OPENSSLSRC}/crypto/pqueue ${OPENSSLSRC}/include/openssl
     35 
     36 .include "srcs.inc"
     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 tls1.h srtp.h async.h
     42 INCSDIR=/usr/include/openssl
     43 
     44 VERSION_MAP=	ssl.map
     45 
     46 PKGCONFIG=libssl openssl
     47 .include "${.CURDIR}/../../pkgconfig.mk"
     48 
     49 GENH = \
     50 ssl.h
     51 
     52 .for i in ${GENH}
     53 $i: $i.in
     54 	${_MKTARGET_CREATE}
     55 	${HOST_SH} ${.CURDIR}/../libcrypto/gen ${.ALLSRC} > ${.TARGET}
     56 .endfor
     57 
     58 .include <bsd.lib.mk>
     59