Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/sommerfeld_i386mp_1]: src/sys/arch/i386/stand/lib Repeat James Chacon's ...
details: https://anonhg.NetBSD.org/src/rev/32f1afcee9f5
branches: sommerfeld_i386mp_1
changeset: 482448:32f1afcee9f5
user: dillo <dillo%NetBSD.org@localhost>
date: Thu Nov 22 00:04:56 2001 +0000
description:
Repeat James Chacon's fix from sys/lib/lib{kern,sa,z}:
Don't make clean and cleandir depend on the lib subdir.
Just check for it's existance before running the submake.
This makes it possible to run a make build (which runs
cleandir before make obj) in a r/o source tree.
diffstat:
sys/arch/i386/stand/lib/Makefile.inc | 53 ++++++++++++++++++++++++++++++++++++
1 files changed, 53 insertions(+), 0 deletions(-)
diffs (57 lines):
diff -r 290b0dd34976 -r 32f1afcee9f5 sys/arch/i386/stand/lib/Makefile.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/i386/stand/lib/Makefile.inc Thu Nov 22 00:04:56 2001 +0000
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile.inc,v 1.11.2.2 2001/11/22 00:04:56 dillo 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
+
+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}
+
+${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
+
+depend: .NOTMAIN dependi386lib
+dependi386lib: .NOTMAIN __always_make_i386lib
+ @echo depending the i386 library objects
+ @${I386MAKE} depend
+
+__always_make_i386lib: .NOTMAIN
+ @mkdir -p ${I386DST}
Home |
Main Index |
Thread Index |
Old Index