minix/sys/arch/i386/stand/lib/Makefile.inc
Lionel Sambuc 9152e1c5a7 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-11-15 16:07:29 +01:00

58 lines
1.8 KiB
Makefile

# $NetBSD: Makefile.inc,v 1.14 2011/05/26 12:56:30 joerg Exp $
#
# Configuration variables (default values are below):
#
# S must be set to the top of the 'sys' tree.
# I386DST may be set to the location of the directory where library
# objects are to be built. Defaults to ${.OBJDIR}/lib/i386.
# I386MISCCPPFLAGS
# Miscellaneous cpp flags to be passed to the library's Makefile
# when building.
# I386MISCMAKEFLAGS
# Miscellaneous flags to be passed to the library's Makefile when
# building. See library's Makefile for more details about
# supported flags and their default values.
# Default values:
I386DST?= ${.OBJDIR}/lib/i386
#I386DIR= $S/arch/i386/stand/lib
I386LIB= ${I386DST}/libi386.a
CWARNFLAGS.clang+= -Wno-tautological-compare
I386MAKE= \
cd ${I386DIR} && MAKEOBJDIRPREFIX= && unset MAKEOBJDIRPREFIX && \
MAKEOBJDIR=${I386DST} ${MAKE} \
CC=${CC:Q} CFLAGS=${CFLAGS:Q} \
AS=${AS:Q} AFLAGS=${AFLAGS:Q} \
LD=${LD:Q} STRIP=${STRIP:Q} \
MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \
I386CPPFLAGS=${CPPFLAGS:S@^-I.@-I../../.@g:Q} \
I386MISCCPPFLAGS=${I386MISCCPPFLAGS:Q} \
${I386MISCMAKEFLAGS}
# LSC Fro now
NOGCCERROR:= yes
${I386LIB}: .NOTMAIN __always_make_i386lib
@echo making sure the i386 library is up to date...
@${I386MAKE} libi386.a
clean: .NOTMAIN cleani386lib
cleani386lib: .NOTMAIN
@echo cleaning the i386 library objects
@if [ -d "${I386DST}" ]; then ${I386MAKE} clean; fi
cleandir distclean: .NOTMAIN cleandiri386lib
cleandiri386lib: .NOTMAIN
@echo cleandiring the i386 library objects
@if [ -d "${I386DST}" ]; then ${I386MAKE} cleandir; fi
dependall depend: .NOTMAIN dependi386lib
dependi386lib: .NOTMAIN __always_make_i386lib
@echo depending the i386 library objects
@${I386MAKE} depend
__always_make_i386lib: .NOTMAIN
@mkdir -p ${I386DST}