custom message type for VM_QUERY_EXIT
[minix3.git] / lib / libc / Makefile.inc
blob7de0e35227f48e6ee0d418ac346388bf31bd17c7
1 #       $NetBSD: Makefile.inc,v 1.16 2013/09/19 21:18:17 christos 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.
19 .if defined(__MINIX)
20 USE_INET6=no
21 MKYP=no #requires RPC
22 USE_JEMALLOC=no
23 USE_MINIXMALLOC=yes
24 USE_FORT=no
25 USE_LIBTRE=no
27 # BJG too many warnings
28 NOGCCERROR?=    yes
29 NOCLANGERROR?=  yes
30 .endif # defined(__MINIX)
32 USE_FORT?=      yes
34 USE_SHLIBDIR=   yes
36 .include <bsd.own.mk>
38 WARNS=5
39 .if defined(__MINIX)
40 CPPFLAGS+=      -D_LIBC
41 CPPFLAGS+=      -DMLIBDIR=\"${MLIBDIR}\"
42 .else
43 CPPFLAGS+=      -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
44 CPPFLAGS+=      -D_DIAGNOSTIC -DMLIBDIR=\"${MLIBDIR}\"
45 .endif
47 .if (${USE_HESIOD} != "no")
48 CPPFLAGS+=      -DHESIOD
49 .endif
51 .if (${USE_INET6} != "no")
52 CPPFLAGS+=      -DINET6
53 .endif
55 CPPFLAGS+=      -DNLS
57 .if (${USE_YP} != "no")
58 CPPFLAGS+=      -DYP
59 .endif
61 # Set lint to exit on warnings
62 #LINTFLAGS+=    -w
63 # ignore 'empty translation unit' warnings.
64 LINTFLAGS+=     -X 272
66 .include "libcincludes.mk"
68 ARCHDIR=        ${.CURDIR}/arch/${ARCHSUBDIR}
69 AFLAGS+=        -I${ARCHDIR}
70 CLEANFILES+=    tags
72 # Don't try to lint the C library against itself when creating llib-lc.ln
73 LLIBS=
75 INCSDIR=        /usr/include