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