xref: /netbsd-src/crypto/external/bsd/openssl/lib/libcommon/Makefile (revision f4748aaa01faf324805f9747191535eb6600f82c)
1#	$NetBSD: Makefile,v 1.1 2023/05/06 17:07:22 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@quick.com.au
17#
18LIBISPRIVATE=	yes
19LIB=	common
20USE_FORT?= yes	# cryptographic software
21USE_SHLIBDIR=	no
22USE_FIPS=	no
23#DBG=-g
24
25.include <bsd.own.mk>
26.include <bsd.shlib.mk>
27
28# XXX: There's a bit of work to do before we can enable warnings.
29WARNS=0
30CWARNFLAGS.clang+=	-Wno-empty-body -Wno-unused-value -Wno-parentheses -Wno-implicit-int-float-conversion
31# XXX: This warning seems to trigger incorrectly
32CWARNFLAGS.clang+=	-Wno-atomic-alignment
33
34LINTFLAGS+=	-X 161	# constant in conditional context
35LINTFLAGS+=	-X 129	# expression has null effect
36LINTFLAGS+=	-X 117	# bitwise '>>' on signed value possibly nonportable
37LINTFLAGS+=	-X 231	# argument '%s' unused in function '%s'
38LINTFLAGS+=	-X 220	# fallthrough on case statement
39LINTFLAGS+=	-X 118	# semantics of '%s' change in ANSI C; use explicit cast
40
41CPPFLAGS+= -Dlib${LIB} -I. -I${OPENSSLSRC}/crypto -I${OPENSSLSRC} -I${.CURDIR}
42CPPFLAGS+= -I${OPENSSLSRC}/include -I${OPENSSLSRC}/crypto/include
43CPPFLAGS+= -I${OPENSSLSRC}/crypto/asn1 -I${OPENSSLSRC}/crypto/evp
44CPPFLAGS+= -I${OPENSSLSRC}/crypto/modes
45CPPFLAGS+= -I${OPENSSLSRC}/../include
46CPPFLAGS+= -I${OPENSSLSRC}/providers/common/include
47CPPFLAGS+= -I${OPENSSLSRC}/providers/implementations/include
48CPPFLAGS+= -I${.CURDIR}/../libdefault
49
50
51CRYPTODIST=	${NETBSDSRCDIR}/crypto
52OPENSSLINC=	${OPENSSLSRC}/include/openssl
53
54.include "${NETBSDSRCDIR}/crypto/Makefile.openssl"
55.PATH: ${OPENSSLSRC} ${OPENSSLINC}
56.PATH: ${OPENSSLSRC}/../include/openssl
57.PATH: ${OPENSSLSRC}/providers/implementations/digests
58.PATH: ${OPENSSLSRC}/providers/implementations/macs
59
60.include "srcs.inc"
61
62AFLAGS+=-DELF
63
64OS_VERSION!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh
65
66.include <bsd.lib.mk>
67
68