minix/lib/libc/Makefile.inc
Ben Gras 2fe8fb192f Full switch to clang/ELF. Drop ack. Simplify.
There is important information about booting non-ack images in
docs/UPDATING. ack/aout-format images can't be built any more, and
booting clang/ELF-format ones is a little different. Updating to the
new boot monitor is recommended.

Changes in this commit:

	. drop boot monitor -> allowing dropping ack support
	. facility to copy ELF boot files to /boot so that old boot monitor
	  can still boot fairly easily, see UPDATING
	. no more ack-format libraries -> single-case libraries
	. some cleanup of OBJECT_FMT, COMPILER_TYPE, etc cases
	. drop several ack toolchain commands, but not all support
	  commands (e.g. aal is gone but acksize is not yet).
	. a few libc files moved to netbsd libc dir
	. new /bin/date as minix date used code in libc/
	. test compile fix
	. harmonize includes
	. /usr/lib is no longer special: without ack, /usr/lib plays no
	  kind of special bootstrapping role any more and bootstrapping
	  is done exclusively through packages, so releases depend even
	  less on the state of the machine making them now.
	. rename nbsd_lib* to lib*
	. reduce mtree
2012-02-14 14:52:02 +01:00

73 lines
1.8 KiB
Makefile

# $NetBSD: Makefile.inc,v 1.6 2010/05/30 08:28:53 tnozaki 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.
USE_FORT?= yes
.if defined(__MINIX)
USE_SHLIBDIR= no
.else
USE_SHLIBDIR= yes
.endif
CITRUS?= yes
.include <bsd.own.mk>
WARNS=4
.if defined(__MINIX)
CPPFLAGS+= -D_LIBC
.else
CPPFLAGS+= -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
.endif
.if (${USE_HESIOD} != "no")
CPPFLAGS+= -DHESIOD
.endif
.if (${USE_INET6} != "no")
CPPFLAGS+= -DINET6
.endif
CPPFLAGS+= -DNLS
.if (${USE_YP} != "no")
CPPFLAGS+= -DYP
.endif
.if ${MACHINE_ARCH} == "i386"
# Set lint to exit on warnings
LINTFLAGS+= -w
.endif
# ignore 'empty translation unit' warnings.
LINTFLAGS+= -X 272
.include "libcincludes.mk"
ARCHDIR= ${.CURDIR}/arch/${ARCHSUBDIR}
AFLAGS+= -I${ARCHDIR}
.if defined(DESTDIR)
AFLAGS+= -nostdinc -isystem ${DESTDIR}/usr/include
.endif
CLEANFILES+= tags
# Don't try to lint the C library against itself when creating llib-lc.ln
LLIBS=
INCSDIR= /usr/include