Home | History | Annotate | Line # | Download | only in libkern
Makefile.inc revision 1.14
      1  1.14   mycroft #	$NetBSD: Makefile.inc,v 1.14 1996/05/11 16:13:39 mycroft Exp $
      2   1.1       cgd #
      3   1.1       cgd #	NOTE: $S must correspond to the top of the 'sys' tree
      4   1.1       cgd 
      5   1.1       cgd KERNDIR=	$S/lib/libkern
      6   1.1       cgd 
      7  1.10  christos KERNDST=	lib/kern
      8  1.11  christos KERNREL?=	../../
      9  1.12   mycroft KERNLIB?=	${KERNDST}/libkern.o
     10  1.12   mycroft KERNLIB_PROF=	${KERNDST}/libkern.po
     11   1.1       cgd 
     12  1.13   mycroft KERNMAKE= \
     13  1.13   mycroft 	cd ${KERNDST} && ${MAKE} -f ${KERNREL}${KERNDIR}/Makefile \
     14  1.13   mycroft 	    CC="${CC}" CFLAGS="${CFLAGS}" \
     15  1.13   mycroft 	    AS="${AS}" AFLAGS="${AFLAGS}" \
     16  1.13   mycroft 	    LD="${LD}" \
     17  1.13   mycroft 	    MACHINE="${MACHINE}" MACHINE_ARCH="${MACHINE_ARCH}" \
     18  1.13   mycroft 	    KERNCPPFLAGS="${CPPFLAGS}" \
     19  1.13   mycroft 	    KERNREL="${KERNREL}" \
     20  1.13   mycroft 	    KERNDIR="${KERNDIR}"
     21  1.13   mycroft 
     22  1.10  christos ${KERNLIB}:		.NOTMAIN __always_make_kernlib
     23   1.1       cgd 	@echo making sure the kern library is up to date...
     24  1.13   mycroft 	@${KERNMAKE} libkern.o
     25   1.1       cgd 
     26  1.10  christos ${KERNLIB_PROF}:	.NOTMAIN __always_make_kernlib
     27   1.1       cgd 	@echo making sure the profiled kern library is up to date...
     28  1.13   mycroft 	@${KERNMAKE} libkern.po
     29  1.10  christos 
     30  1.10  christos clean:: 		.NOTMAIN __always_make_kernlib
     31  1.10  christos 	@echo cleaning the kern library objects
     32  1.13   mycroft 	@${KERNMAKE} clean
     33  1.14   mycroft 
     34  1.14   mycroft depend:: 		.NOTMAIN __always_make_kernlib
     35  1.14   mycroft 	@echo depending the kern library objects
     36  1.14   mycroft 	@${KERNMAKE} depend
     37   1.1       cgd 
     38   1.2       cgd __always_make_kernlib:	.NOTMAIN
     39  1.13   mycroft 	@mkdir -p ${KERNDST}
     40