Home | History | Annotate | Line # | Download | only in libssl
      1 #	$NetBSD: Makefile,v 1.1.1.2 2023/04/18 14:19:16 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 # XXX There's a bit of work to do before we can enable warnings.
     24 WARNS=0
     25 CWARNFLAGS.clang+=	-Wno-unused-value
     26 # XXX: This warning seems to trigger incorrectly
     27 CWARNFLAGS.clang+=	-Wno-atomic-alignment
     28 
     29 LIB=	ssl
     30 CPPFLAGS+= -Dlib${LIB} -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto
     31 CPPFLAGS+= -I${OPENSSLSRC}/include
     32 
     33 CRYPTODIST=	${NETBSDSRCDIR}/crypto
     34 
     35 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
     36 .PATH: ${OPENSSLSRC} ${OPENSSLSRC}/crypto/pqueue ${OPENSSLSRC}/include/openssl
     37 
     38 .include "srcs.inc"
     39 
     40 LIBDPLIBS+=crypto ${.CURDIR}/../libcrypto
     41 
     42 AFLAGS+=-DELF
     43 
     44 # This is from the include/openssl directory; see ../libcrypto/Makefile
     45 INCS=	dtls1.h ssl.h ssl2.h ssl3.h tls1.h srtp.h async.h
     46 INCSDIR=/usr/include/openssl
     47 
     48 LDFLAGS+=-Wl,--version-script=${.CURDIR}/ssl.map
     49 
     50 PKGCONFIG=libssl openssl
     51 .include "${.CURDIR}/../../pkgconfig.mk"
     52 
     53 .include <bsd.lib.mk>
     54