Home | History | Annotate | Line # | Download | only in libc
      1 #	$NetBSD: Makefile.inc,v 1.22 2024/01/23 17:24:38 christos Exp $
      2 #	@(#)Makefile	8.2 (Berkeley) 2/3/94
      3 #
      4 # All library objects contain sccsid strings by default; they may be
      5 # excluded as a space-saving measure.  To produce a library that does
      6 # not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
      7 # from CPPFLAGS below.  To remove these strings from just the system call
      8 # stubs, remove just -DSYSLIBC_SCCS from CPPFLAGS.
      9 #
     10 # The NLS (message catalog) functions are always in libc.  To choose that
     11 # strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS
     12 # functions, put -DNLS on the CPPFLAGS line below.
     13 #
     14 # The YP functions are always in libc. To choose that getpwent() and friends
     15 # actually call the YP functions, put -DYP on the CPPFLAGS line below.
     16 #
     17 # The Hesiod functions are always in libc. To choose that getpwent() and friends
     18 # actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below.
     19 
     20 NOSANITIZER=	# defined
     21 USE_FORT?=	yes
     22 
     23 USE_SHLIBDIR=	yes
     24 
     25 .include <bsd.own.mk>
     26 
     27 # build libc suitable for rumprun software stack, i.e. are system calls
     28 # rump kernel function calls instead of kernel traps?
     29 RUMPRUN?=	no
     30 
     31 WARNS=5
     32 CPPFLAGS+=	-D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
     33 CPPFLAGS+=	-D_DIAGNOSTIC -D_LIBC_INTERNAL
     34 .if defined(MLIBDIR)
     35 CPPFLAGS+=	-DMLIBDIR=\"${MLIBDIR}\"
     36 .endif
     37 # needed for csu_common.h
     38 CPPFLAGS+=	-I${NETBSDSRCDIR}/lib/csu/common
     39 
     40 .if (${USE_HESIOD} != "no")
     41 CPPFLAGS+=	-DHESIOD
     42 .endif
     43 
     44 .if (${USE_INET6} != "no")
     45 CPPFLAGS+=	-DINET6
     46 .endif
     47 
     48 CPPFLAGS+=	-DNLS
     49 
     50 .if (${USE_YP} != "no")
     51 CPPFLAGS+=	-DYP
     52 .endif
     53 
     54 # Set lint to exit on warnings
     55 LINTFLAGS+=	-w
     56 # ignore 'empty translation unit' warnings.
     57 LINTFLAGS+=	-X 272
     58 # XXX: ignore 'missing header declaration' warnings (for now).
     59 LINTFLAGS+=	-X 351
     60 
     61 .include "libcincludes.mk"
     62 
     63 ARCHDIR=	${.CURDIR}/arch/${ARCHSUBDIR}
     64 AFLAGS+=	-I${ARCHDIR}
     65 CLEANFILES+=	tags
     66 
     67 # Don't try to lint the C library against itself when creating llib-lc.ln
     68 LLIBS=
     69 
     70 INCSDIR=	/usr/include
     71