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