31b808b8fa
Known limitations: - comment for now testisofs, as iso9660fs is known to be broken. Benefits: - near 3x speed improvement on C++ code compilation, bringing down make build to from 44min down to 21min. - Allows for X applications to work properly, which should be available in near-term future through pkgsrc for 3.3.0. Change-Id: I8f4179a7ea925ed381642add32cfd8c5822217e4
74 lines
1.9 KiB
Makefile
74 lines
1.9 KiB
Makefile
# $NetBSD: Makefile.inc,v 1.16 2013/09/19 21:18:17 christos Exp $
|
|
# @(#)Makefile 8.2 (Berkeley) 2/3/94
|
|
#
|
|
# All library objects contain sccsid strings by default; they may be
|
|
# excluded as a space-saving measure. To produce a library that does
|
|
# not contain these strings, delete -DLIBC_SCCS and -DSYSLIBC_SCCS
|
|
# from CPPFLAGS below. To remove these strings from just the system call
|
|
# stubs, remove just -DSYSLIBC_SCCS from CPPFLAGS.
|
|
#
|
|
# The NLS (message catalog) functions are always in libc. To choose that
|
|
# strerror(), perror(), strsignal(), psignal(), etc. actually call the NLS
|
|
# functions, put -DNLS on the CPPFLAGS line below.
|
|
#
|
|
# The YP functions are always in libc. To choose that getpwent() and friends
|
|
# actually call the YP functions, put -DYP on the CPPFLAGS line below.
|
|
#
|
|
# The Hesiod functions are always in libc. To choose that getpwent() and friends
|
|
# actually call the Hesiod functions, put -DHESIOD on the CPPFLAGS line below.
|
|
.if defined(__MINIX)
|
|
USE_INET6=no
|
|
MKYP=no #requires RPC
|
|
USE_JEMALLOC=no
|
|
USE_FORT=no
|
|
USE_LIBTRE=no
|
|
|
|
# BJG too many warnings
|
|
NOGCCERROR?= yes
|
|
NOCLANGERROR?= yes
|
|
.endif # defined(__MINIX)
|
|
|
|
USE_FORT?= yes
|
|
|
|
USE_SHLIBDIR= yes
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
WARNS=5
|
|
.if defined(__MINIX)
|
|
CPPFLAGS+= -D_LIBC
|
|
CPPFLAGS+= -DMLIBDIR=\"${MLIBDIR}\"
|
|
.else
|
|
CPPFLAGS+= -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
|
|
CPPFLAGS+= -D_DIAGNOSTIC -DMLIBDIR=\"${MLIBDIR}\"
|
|
.endif
|
|
|
|
.if (${USE_HESIOD} != "no")
|
|
CPPFLAGS+= -DHESIOD
|
|
.endif
|
|
|
|
.if (${USE_INET6} != "no")
|
|
CPPFLAGS+= -DINET6
|
|
.endif
|
|
|
|
CPPFLAGS+= -DNLS
|
|
|
|
.if (${USE_YP} != "no")
|
|
CPPFLAGS+= -DYP
|
|
.endif
|
|
|
|
# Set lint to exit on warnings
|
|
#LINTFLAGS+= -w
|
|
# ignore 'empty translation unit' warnings.
|
|
LINTFLAGS+= -X 272
|
|
|
|
.include "libcincludes.mk"
|
|
|
|
ARCHDIR= ${.CURDIR}/arch/${ARCHSUBDIR}
|
|
AFLAGS+= -I${ARCHDIR}
|
|
CLEANFILES+= tags
|
|
|
|
# Don't try to lint the C library against itself when creating llib-lc.ln
|
|
LLIBS=
|
|
|
|
INCSDIR= /usr/include
|