Makefile.inc revision 1.4
11.4Stsutsui#	$NetBSD: Makefile.inc,v 1.4 2000/02/01 05:25:33 tsutsui Exp $
21.1Sperry#
31.1Sperry#	Configuration variables (default values are below):
41.1Sperry#
51.1Sperry#	S	must be set to the top of the 'sys' tree.
61.1Sperry#	I386DST	may be set to the location of the directory where library
71.1Sperry#		objects are to be built.  Defaults to ${.OBJDIR}/lib/i386.
81.1Sperry#	I386MISCCPPFLAGS
91.1Sperry#		Miscellaneous cpp flags to be passed to the library's Makefile
101.1Sperry#		when building.
111.1Sperry#	I386MISCMAKEFLAGS
121.1Sperry#		Miscellaneous flags to be passed to the library's Makefile when
131.1Sperry#		building.  See library's Makefile for more details about
141.1Sperry#		supported flags and their default values.
151.1Sperry
161.1Sperry# Default values:
171.1SperryI386DST?=		${.OBJDIR}/lib/i386
181.1Sperry
191.1Sperry#I386DIR=		$S/arch/i386/stand/lib
201.1SperryI386LIB=		${I386DST}/libi386.a
211.1Sperry
221.1SperryI386MAKE= \
231.1Sperry	cd ${I386DIR} && MAKEOBJDIR=${I386DST} ${MAKE} \
241.1Sperry	    CC=${CC:Q} CFLAGS=${CFLAGS:Q} \
251.1Sperry	    AS=${AS:Q} AFLAGS=${AFLAGS:Q} \
261.4Stsutsui	    LD=${LD:Q} STRIP=${STRIP:Q} \
271.1Sperry	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \
281.1Sperry	    I386CPPFLAGS=${CPPFLAGS:S@^-I.@-I../../.@g:Q} \
291.1Sperry	    I386MISCCPPFLAGS=${I386MISCCPPFLAGS:Q} \
301.1Sperry	    ${I386MISCMAKEFLAGS}
311.1Sperry
321.1Sperry${I386LIB}:		.NOTMAIN __always_make_i386lib
331.1Sperry	@echo making sure the i386 library is up to date...
341.1Sperry	@${I386MAKE} libi386.a
351.1Sperry
361.1Sperryclean:			.NOTMAIN cleani386lib
371.1Sperrycleani386lib:		.NOTMAIN __always_make_i386lib
381.1Sperry	@echo cleaning the i386 library objects
391.1Sperry	@${I386MAKE} clean
401.1Sperry
411.2Slukemcleandir distclean:	.NOTMAIN cleandiri386lib
421.1Sperrycleandiri386lib:		.NOTMAIN __always_make_i386lib
431.1Sperry	@echo cleandiring the i386 library objects
441.1Sperry	@${I386MAKE} cleandir
451.1Sperry
461.1Sperrydepend:			.NOTMAIN dependi386lib
471.1Sperrydependi386lib:		.NOTMAIN __always_make_i386lib
481.1Sperry	@echo depending the i386 library objects
491.1Sperry	@${I386MAKE} depend
501.1Sperry
511.1Sperry__always_make_i386lib:	.NOTMAIN
521.1Sperry	@mkdir -p ${I386DST}
53