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