1 # $NetBSD: Makefile,v 1.16 2023/05/25 16:05:28 riastradh 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 # OpenSSL extensively uses string literals as char *, which clang 28 # (reasonably if not exactly rightly) objects to. 29 CWARNFLAGS.clang+=-Wno-error=incompatible-pointer-types-discards-qualifiers 30 31 LIB= ssl 32 CPPFLAGS+= -Dlib${LIB} -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto 33 CPPFLAGS+= -I${OPENSSLSRC}/include 34 35 CRYPTODIST= ${NETBSDSRCDIR}/crypto 36 37 .include "${NETBSDSRCDIR}/crypto/Makefile.openssl" 38 .PATH: ${OPENSSLSRC} ${OPENSSLSRC}/crypto/pqueue ${OPENSSLSRC}/include/openssl 39 40 .include "srcs.inc" 41 .PATH: ${OPENSSLSRC}/crypto 42 SRCS+= packet.c 43 44 LIBDPLIBS+=crypto ${.CURDIR}/../libcrypto 45 46 AFLAGS+=-DELF 47 48 # This is from the include/openssl directory; see ../libcrypto/Makefile 49 INCS= dtls1.h ssl.h ssl2.h ssl3.h tls1.h srtp.h async.h 50 INCSDIR=/usr/include/openssl 51 52 LDFLAGS+=-Wl,--version-script=${.CURDIR}/ssl.map 53 54 PKGCONFIG=libssl openssl 55 .include "${.CURDIR}/../../pkgconfig.mk" 56 57 58 59 GENH = \ 60 ssl.h 61 62 .for i in ${GENH} 63 $i: $i.in 64 ${_MKTARGET_CREATE} 65 ${.CURDIR}/../libcrypto/gen ${.ALLSRC} > ${.TARGET} 66 .endfor 67 68 .include <bsd.lib.mk> 69