Makefile.conf revision 82759
1# $FreeBSD: head/release/picobsd/build/Makefile.conf 82759 2001-09-01 21:19:15Z luigi $ 2# 3# Makefile for building PICOBSD kernels and running crunchgen 4# 5# Needs SRC pointing to the source tree, 6# MY_TREE ponting to my tree 7# BUILDDIR pointing to the build directory 8# PICO_OBJ pointing to the object directory 9# When building a kernel, also need ${name} from the environment 10# and CONFIG may indicate an alternate config program 11 12SRC?=/usr/src 13CONF?=${SRC}/sys/i386/conf 14CONFIG?=config 15 16CONFFILE=PICOBSD-${name} 17COMPILE=${CONF}/../compile/${CONFFILE} 18KERNFILE=${COMPILE}/kernel 19 20 21${KERNFILE}: ${COMPILE} do_a_make_in_the_kernel_directory_anyways 22 23do_a_make_in_the_kernel_directory_anyways: 24 (cd ${COMPILE}; make KERNEL=kernel -DNO_MODULES) 25 26${COMPILE}: ${CONF}/${CONFFILE} 27 (cd ${CONF}; ${CONFIG} ${CONFFILE}; \ 28 cd ${COMPILE}; make KERNEL=kernel -DNO_MODULES depend ) 29 30${CONF}/${CONFFILE}: PICOBSD 31 cp ${.OODATE} ${.TARGET} 32 if [ -f PICOBSD.hints ] ; then cp PICOBSD.hints ${CONF}/PICOBSD.hints ; fi 33 34# This part creates crunch1.conf and crunch.mk from crunch.conf 35${BUILDDIR}/crunch.mk: ${BUILDDIR}/crunch1.conf 36 -(cd ${BUILDDIR}/crunch ; \ 37 crunchgen -p ${PICO_OBJ} -o -m ${.TARGET} ${.OODATE} ) 38 39${BUILDDIR}/crunch1.conf: ${MY_TREE}/crunch.conf 40 (cd ${BUILDDIR}/crunch ; cat ${.OODATE} | \ 41 sed -e "s@/usr/src@${SRC}@" -e "s@CWD@${MY_TREE}@" > ${.TARGET} ) 42