1 # $NetBSD: Makefile.inc,v 1.6 2010/05/30 08:28:53 tnozaki Exp $
2 # @(#)Makefile 8.2 (Berkeley) 2/3/94
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.
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.
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.
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.
32 CPPFLAGS+= -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
35 .if (${USE_HESIOD} != "no")
39 .if (${USE_INET6} != "no")
45 .if (${USE_YP} != "no")
49 .if ${MACHINE_ARCH} == "i386"
50 # Set lint to exit on warnings
53 # ignore 'empty translation unit' warnings.
56 .include "libcincludes.mk"
58 ARCHDIR= ${.CURDIR}/arch/${ARCHSUBDIR}
61 AFLAGS+= -nostdinc -isystem ${DESTDIR}/usr/include
65 # Don't try to lint the C library against itself when creating llib-lc.ln