xref: /minix/lib/libc/Makefile.inc (revision 90b80121)
1#	$NetBSD: Makefile.inc,v 1.18 2015/08/28 11:45:02 joerg 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.if defined(__MINIX)
20MKYP=no #requires RPC
21USE_JEMALLOC=no
22USE_FORT=no
23USE_LIBTRE=no
24
25# BJG too many warnings
26NOGCCERROR?=    yes
27NOCLANGERROR?=  yes
28.endif # defined(__MINIX)
29
30USE_FORT?=	yes
31
32USE_SHLIBDIR=	yes
33
34.include <bsd.own.mk>
35
36# build libc suitable for rumprun software stack, i.e. are system calls
37# rump kernel function calls instead of kernel traps?
38RUMPRUN?=	no
39
40WARNS=5
41.if !defined(__MINIX)
42CPPFLAGS+=	-D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
43CPPFLAGS+=	-D_DIAGNOSTIC
44.else
45CPPFLAGS+=	-D_LIBC
46.if defined(MLIBDIR)
47CPPFLAGS+=	-DMLIBDIR=\"${MLIBDIR}\"
48.endif
49.endif # !defined(__minix)
50
51.if (${USE_HESIOD} != "no")
52CPPFLAGS+=	-DHESIOD
53.endif
54
55.if (${USE_INET6} != "no")
56CPPFLAGS+=	-DINET6
57.endif
58
59CPPFLAGS+=	-DNLS
60
61.if (${USE_YP} != "no")
62CPPFLAGS+=	-DYP
63.endif
64
65# Set lint to exit on warnings
66#LINTFLAGS+=	-w
67# ignore 'empty translation unit' warnings.
68LINTFLAGS+=	-X 272
69
70.include "libcincludes.mk"
71
72ARCHDIR=	${.CURDIR}/arch/${ARCHSUBDIR}
73AFLAGS+=	-I${ARCHDIR}
74CLEANFILES+=	tags
75
76# Don't try to lint the C library against itself when creating llib-lc.ln
77LLIBS=
78
79INCSDIR=	/usr/include
80