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