2013-12-06 12:04:52 +01:00
|
|
|
# $NetBSD: Makefile.inc,v 1.16 2013/09/19 21:18:17 christos Exp $
|
2012-02-11 19:31:25 +01:00
|
|
|
# @(#)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.
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
.if defined(__MINIX)
|
2012-12-05 13:23:36 +01:00
|
|
|
USE_INET6=no
|
|
|
|
MKYP=no #requires RPC
|
|
|
|
USE_JEMALLOC=no
|
|
|
|
USE_FORT=no
|
|
|
|
USE_LIBTRE=no
|
2013-08-14 14:27:39 +02:00
|
|
|
|
|
|
|
# BJG too many warnings
|
|
|
|
NOGCCERROR?= yes
|
|
|
|
NOCLANGERROR?= yes
|
2012-12-05 13:23:36 +01:00
|
|
|
.endif # defined(__MINIX)
|
2012-02-11 19:31:25 +01:00
|
|
|
|
|
|
|
USE_FORT?= yes
|
|
|
|
|
|
|
|
USE_SHLIBDIR= yes
|
|
|
|
|
2010-06-25 20:29:09 +02:00
|
|
|
.include <bsd.own.mk>
|
2012-02-11 19:31:25 +01:00
|
|
|
|
Upgrading build system to new NetBSD revision
The tested targets are the followgin ones:
* tools
* distribution
* sets
* release
The remaining NetBSD targets have not been disabled nor tested
*at all*. Try them at your own risk, they may reboot the earth.
For all compliant Makefiles, objects and generated files are put in
MAKEOBJDIR, which means you can now keep objects between two branch
switching. Same for DESTDIR, please refer to build.sh options.
Regarding new or modifications of Makefiles a few things:
* Read share/mk/bsd.README
* If you add a subdirectory, add a Makefile in it, and have it called
by the parent through the SUBDIR variable.
* Do not add arbitrary inclusion which crosses to another branch of
the hierarchy; If you can't do without it, put a comment on why.
If possible, do not use inclusion at all.
* Use as much as possible the infrastructure, it is here to make
life easier, do not fight it.
Sets and package are now used to track files.
We have one set called "minix", composed of one package called "minix-sys"
2012-09-12 09:37:05 +02:00
|
|
|
WARNS=5
|
2012-02-11 19:31:25 +01:00
|
|
|
.if defined(__MINIX)
|
|
|
|
CPPFLAGS+= -D_LIBC
|
2013-12-06 12:04:52 +01:00
|
|
|
CPPFLAGS+= -DMLIBDIR=\"${MLIBDIR}\"
|
2012-02-11 19:31:25 +01:00
|
|
|
.else
|
|
|
|
CPPFLAGS+= -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
|
2013-12-06 12:04:52 +01:00
|
|
|
CPPFLAGS+= -D_DIAGNOSTIC -DMLIBDIR=\"${MLIBDIR}\"
|
2012-02-11 19:31:25 +01:00
|
|
|
.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
|
2013-12-06 12:04:52 +01:00
|
|
|
#LINTFLAGS+= -w
|
2012-02-11 19:31:25 +01:00
|
|
|
# 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
|