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