Makefile.inc revision 1.4.4.2 1 1.4.4.2 mrg # $NetBSD: Makefile.inc,v 1.4.4.2 2008/10/26 07:42:10 mrg Exp $
2 1.4.4.2 mrg # @(#)Makefile 8.2 (Berkeley) 2/3/94
3 1.4.4.2 mrg #
4 1.4.4.2 mrg # All library objects contain sccsid strings by default; they may be
5 1.4.4.2 mrg # excluded as a space-saving measure. To produce a library that does
6 1.4.4.2 mrg # not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
7 1.4.4.2 mrg # from CPPFLAGS below. To remove these strings from just the system call
8 1.4.4.2 mrg # stubs, remove just -DSYSLIBC_SCCS from CPPFLAGS.
9 1.4.4.2 mrg #
10 1.4.4.2 mrg # The NLS (message catalog) functions are always in libc. To choose that
11 1.4.4.2 mrg # strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS
12 1.4.4.2 mrg # functions, put -DNLS on the CPPFLAGS line below.
13 1.4.4.2 mrg #
14 1.4.4.2 mrg # The YP functions are always in libc. To choose that getpwent() and friends
15 1.4.4.2 mrg # actually call the YP functions, put -DYP on the CPPFLAGS line below.
16 1.4.4.2 mrg #
17 1.4.4.2 mrg # The Hesiod functions are always in libc. To choose that getpwent() and friends
18 1.4.4.2 mrg # actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below.
19 1.4.4.2 mrg
20 1.4.4.2 mrg USE_FORT?= yes
21 1.4.4.2 mrg
22 1.4.4.2 mrg USE_SHLIBDIR= yes
23 1.4.4.2 mrg
24 1.4.4.2 mrg .include <bsd.own.mk>
25 1.4.4.2 mrg
26 1.4.4.2 mrg WARNS=4
27 1.4.4.2 mrg CPPFLAGS+= -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
28 1.4.4.2 mrg
29 1.4.4.2 mrg .if (${USE_HESIOD} != "no")
30 1.4.4.2 mrg CPPFLAGS+= -DHESIOD
31 1.4.4.2 mrg .endif
32 1.4.4.2 mrg
33 1.4.4.2 mrg .if (${USE_INET6} != "no")
34 1.4.4.2 mrg CPPFLAGS+= -DINET6
35 1.4.4.2 mrg .endif
36 1.4.4.2 mrg
37 1.4.4.2 mrg CPPFLAGS+= -DNLS
38 1.4.4.2 mrg
39 1.4.4.2 mrg .if (${USE_YP} != "no")
40 1.4.4.2 mrg CPPFLAGS+= -DYP
41 1.4.4.2 mrg .endif
42 1.4.4.2 mrg
43 1.4.4.2 mrg .if ${MACHINE_ARCH} == "i386"
44 1.4.4.2 mrg # Set lint to exit on warnings
45 1.4.4.2 mrg LINTFLAGS+= -w
46 1.4.4.2 mrg .endif
47 1.4.4.2 mrg # ignore 'empty translation unit' warnings.
48 1.4.4.2 mrg LINTFLAGS+= -X 272
49 1.4.4.2 mrg
50 1.4.4.2 mrg .include "libcincludes.mk"
51 1.4.4.2 mrg
52 1.4.4.2 mrg ARCHDIR= ${.CURDIR}/arch/${ARCHSUBDIR}
53 1.4.4.2 mrg AFLAGS+= -I${ARCHDIR}
54 1.4.4.2 mrg .if defined(DESTDIR)
55 1.4.4.2 mrg AFLAGS+= -nostdinc -idirafter ${DESTDIR}/usr/include
56 1.4.4.2 mrg .endif
57 1.4.4.2 mrg CLEANFILES+= tags
58 1.4.4.2 mrg
59 1.4.4.2 mrg # Don't try to lint the C library against itself when creating llib-lc.ln
60 1.4.4.2 mrg LLIBS=
61 1.4.4.2 mrg
62 1.4.4.2 mrg INCSDIR= /usr/include
63