NetBSD/sys/arch/evbppc/Makefile
lukem 4bb41ae2f2 Rework how KERNOBJDIR functions; now it's always determined with
cd ${KERNSRCDIR}/${KERNARCHDIR}/compile && ${PRINTOBJDIR}
This is far simpler than the previous system, and more robust with
objdirs built via BSDOBJDIR.

The previous method of finding KERNOBJDIR when using BSDOBJDIR by
referencing _SRC_TOP_OBJ_ from another directory was extremely
fragile due to the depth first tree walk by <bsd.subdir.mk>, and
the caching of _SRC_TOP_OBJ_ (with MAKEOVERRIDES) which would be
empty on the *first* pass to create fresh objdirs.

This change requires adding sys/arch/*/compile/Makefile to create
the objdir in that directory, and descending into arch/*/compile
from arch/*/Makefile.  Remove the now-unnecessary .keep_me files
whilst here.

Per lengthy discussion with Andrew Brown.
2003-01-06 17:40:18 +00:00

35 lines
974 B
Makefile

# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:28 lukem Exp $
ETAGS?= etags
# XXX Fix this to deal with multiple "evbppc" ports.
SEVBPPC= evbppc/*.[ch] include/*.h
AEVBPPC=
SPPC= ../powerpc/ibm4xx/*.[ch] ../powerpc/powerpc/*.[ch] \
../powerpc/include/*.h ../powerpc/include/ibm4xx/*.h \
../powerpc/fpu/*.[ch]
APPC= ../powerpc/ibm4xx/*.[sS] ../powerpc/powerpc/*.[sS]
LPPC= ../../lib/libkern/arch/powerpc/*.[chsS] \
../../lib/libkern/*.[ch] \
../../lib/libsa/*.[ch]
SYSDIR= ../..
.include "../../kern/Make.tags.inc"
.ifmake TAGS
COMM!= find ${SYSDIR} -name "arch" -prune -o -name "*.[ch]" -print
.endif
TAGS: ${SEVBPPC} ${COMM} ${SPPC} ${COMM} ${ASPARC64}
@echo Making TAGS...
@${ETAGS} ${SEVBPPC} ${COMM} ${SPPC} ${COMM} "--regex=/^GLOBAL(\(.*\))/\1/" \
"--regex=/^_C_LABEL(\(.*\)):/\1/" "--regex=/^\(.*\):/\1/" \
"--regex=/^ENTRY(\(.*\)):/\1/" "--regex=/^ASENTRY(\(.*\)):/\1/" \
${APPC} ${AEVBPPC}
SUBDIR= compile include
.include <bsd.subdir.mk>