Home | History | Annotate | Line # | Download | only in fpsp
Makefile.inc revision 1.10
      1  1.10  tsutsui #	$NetBSD: Makefile.inc,v 1.10 2000/02/01 05:25:34 tsutsui Exp $
      2   1.1  mycroft #
      3   1.6       is #	Configuration variables (default values are below):
      4   1.6       is #
      5   1.6       is #	S	must be set to the top of the 'sys' tree.
      6   1.6       is #	FPSPDST	may be set to the location of the directory where library
      7   1.6       is #		objects are to be built.  Defaults to ${.OBJDIR}/lib/kern.
      8   1.6       is #	FPSP_AS	isn't there. We always build an object file.
      9   1.6       is #	FPSPMISCCPPFLAGS
     10   1.6       is #		Miscellaneous cpp flags to be passed to the library's Makefile
     11   1.6       is #		when building.
     12   1.6       is #	FPSPMISCMAKEFLAGS
     13   1.6       is #		Miscellaneous flags to be passed to the library's Makefile when
     14   1.6       is #		building.  See library's Makefile for more details about
     15   1.6       is #		supported flags and their default values.
     16   1.1  mycroft 
     17   1.6       is # Default values:
     18   1.6       is FPSPDST?=	${.OBJDIR}/lib/fpsp
     19   1.1  mycroft 
     20   1.6       is FPSPDIR=	$S/arch/m68k/fpsp
     21   1.6       is FPSPOBJ=	${FPSPDST}/fpsp.o
     22   1.6       is FPSP!=	printf "\#ifdef FPSP\n${FPSPOBJ}\n\#endif\n" | ${CPP} -P -undef ${CPPFLAGS:M-DFPSP}
     23   1.1  mycroft 
     24   1.1  mycroft 
     25   1.6       is #	    CC=${CC:Q} CFLAGS=${CFLAGS:Q} \
     26   1.6       is #	    AS=${AS:Q} AFLAGS=${AFLAGS:Q} \
     27  1.10  tsutsui #	    LD=${LD:Q} STRIP=${STRIP:Q} \
     28   1.6       is 
     29   1.6       is FPSPMAKE= \
     30   1.6       is 	cd ${FPSPDIR} && MAKEOBJDIR=${FPSPDST} ${MAKE} .OBJDIR=${FPSPDST} \
     31   1.6       is 	    MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:Q} \
     32   1.6       is 	    FPSPCPPFLAGS=${CPPFLAGS:S@^-I.@-I../../.@g:Q} \
     33   1.6       is 	    FPSPMISCCPPFLAGS=${FPSPMISCCPPFLAGS:Q} \
     34   1.6       is 	    FPSPDIR=${FPSPDIR:Q} \
     35   1.6       is 	    ${FPSPMISCMAKEFLAGS}
     36   1.6       is 
     37   1.6       is ${FPSP}:		.NOTMAIN __always_make_fpsp
     38   1.6       is 	@echo making sure the 68040 FPSP is up to date...
     39   1.6       is 	@${FPSPMAKE} fpsp.o
     40   1.6       is 
     41   1.6       is ${FPSPLIB_PROF}:	.NOTMAIN __always_make_fpsp
     42   1.6       is 	@echo making sure the profiled 68040 FPSP is up to date...
     43   1.6       is 	@${FPSPMAKE} fpsp.po
     44   1.6       is 
     45   1.6       is clean:			.NOTMAIN cleanfpsp
     46   1.6       is cleanfpsp:		.NOTMAIN __always_make_fpsp
     47   1.6       is 	@echo cleaning the 68040 FPSP objects
     48   1.6       is 	@${FPSPMAKE} clean
     49   1.6       is 
     50   1.8       is cleandir distclean:	.NOTMAIN cleandirfpsp
     51   1.8       is cleandirfpsp:	.NOTMAIN __always_make_fpsp
     52   1.8       is # So we don't really need a cleandir target without a depend target.
     53   1.8       is # On the other hand, were "make cleandir" in the kernel build
     54   1.8       is # directory to fail to remove all the floating point objects, that
     55   1.8       is # would tend to violate the principle of least surprise!
     56   1.8       is 	@echo cleandiring the 68040 FPSP objects
     57   1.8       is 	@${FPSPMAKE} clean
     58   1.6       is 
     59   1.6       is #depend:			.NOTMAIN dependfpsp
     60   1.6       is #dependfpsp:		.NOTMAIN __always_make_fpsp
     61   1.6       is #	@echo depending the 68040 FPSP objects
     62   1.6       is #	@${FPSPMAKE} depend
     63   1.6       is #
     64   1.1  mycroft 
     65   1.6       is __always_make_fpsp:	.NOTMAIN
     66   1.6       is 	@(mkdir -p ${FPSPDST})
     67