Home | History | Annotate | Line # | Download | only in libssl
Makefile revision 1.16
      1  1.16  riastrad #	$NetBSD: Makefile,v 1.16 2023/05/25 16:05:28 riastradh 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.15  riastrad #	use this file is hereby granted provided that
     12   1.1  christos #	the above copyright notice and this notice are
     13  1.15  riastrad #	left intact.
     14  1.15  riastrad #
     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.3     joerg CWARNFLAGS.clang+=	-Wno-unused-value
     24  1.10  christos # XXX: This warning seems to trigger incorrectly
     25  1.10  christos CWARNFLAGS.clang+=	-Wno-atomic-alignment
     26   1.1  christos 
     27  1.16  riastrad # OpenSSL extensively uses string literals as char *, which clang
     28  1.16  riastrad # (reasonably if not exactly rightly) objects to.
     29  1.16  riastrad CWARNFLAGS.clang+=-Wno-error=incompatible-pointer-types-discards-qualifiers
     30  1.16  riastrad 
     31   1.1  christos LIB=	ssl
     32   1.1  christos CPPFLAGS+= -Dlib${LIB} -I${OPENSSLSRC} -I${OPENSSLSRC}/crypto
     33   1.6  christos CPPFLAGS+= -I${OPENSSLSRC}/include
     34   1.1  christos 
     35   1.1  christos CRYPTODIST=	${NETBSDSRCDIR}/crypto
     36   1.1  christos 
     37   1.1  christos .include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
     38   1.6  christos .PATH: ${OPENSSLSRC} ${OPENSSLSRC}/crypto/pqueue ${OPENSSLSRC}/include/openssl
     39   1.1  christos 
     40   1.1  christos .include "srcs.inc"
     41  1.13  christos .PATH: ${OPENSSLSRC}/crypto
     42  1.13  christos SRCS+= packet.c
     43   1.1  christos 
     44   1.1  christos LIBDPLIBS+=crypto ${.CURDIR}/../libcrypto
     45   1.1  christos 
     46   1.1  christos AFLAGS+=-DELF
     47   1.1  christos 
     48   1.1  christos # This is from the include/openssl directory; see ../libcrypto/Makefile
     49   1.6  christos INCS=	dtls1.h ssl.h ssl2.h ssl3.h tls1.h srtp.h async.h
     50   1.1  christos INCSDIR=/usr/include/openssl
     51   1.1  christos 
     52   1.8  christos LDFLAGS+=-Wl,--version-script=${.CURDIR}/ssl.map
     53   1.7  christos 
     54   1.5  christos PKGCONFIG=libssl openssl
     55   1.5  christos .include "${.CURDIR}/../../pkgconfig.mk"
     56   1.5  christos 
     57  1.11  christos 
     58  1.13  christos 
     59  1.11  christos GENH = \
     60  1.11  christos ssl.h
     61  1.11  christos 
     62  1.11  christos .for i in ${GENH}
     63  1.11  christos $i: $i.in
     64  1.11  christos 	${_MKTARGET_CREATE}
     65  1.12  christos 	${.CURDIR}/../libcrypto/gen ${.ALLSRC} > ${.TARGET}
     66  1.11  christos .endfor
     67  1.11  christos 
     68   1.1  christos .include <bsd.lib.mk>
     69