4bb41ae2f2
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.
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.13 2003/01/06 17:40:51 lukem Exp $
|
|
|
|
# Makefile for sparc64 tags file and boot blocks
|
|
|
|
TSPARC64= ../sparc64/tags
|
|
SSPARC64= ../sparc64/dev/*.[ch] ../sparc/fpu/*.[ch] \
|
|
../sparc64/include/*.[ch] ../sparc64/sparc64/*.[ch]
|
|
ASPARC64= ../sparc64/sparc64/*.s
|
|
# CSPARC64= ../../compat/*/*.[ch]
|
|
|
|
# Directories in which to place tags links
|
|
DSPARC64= conf dev fpu include sparc64
|
|
|
|
.include "../../kern/Make.tags.inc"
|
|
|
|
tags:
|
|
-ctags -wdtf ${TSPARC64} ${SSPARC64} ${COMM}
|
|
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ASPARC64} | \
|
|
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
|
|
>> tags
|
|
sort -o ${TSPARC64} ${TSPARC64}
|
|
|
|
SYSDIR?= ../..
|
|
.ifmake TAGS
|
|
COMM!= find ${SYSDIR} -name "arch" -prune -o -name "*.[ch]" -print
|
|
.endif
|
|
|
|
TAGS: ${SSPARC64} ${COMM} ${CSPARC64} ${ASPARC64}
|
|
etags ${SSPARC64} ${COMM} ${CSPARC64} "--regex=/ENTRY(.*)/" \
|
|
"--regex=/FUNC(.*)/" "--regex=/SYSCALL(.*)/" ${ASPARC64}
|
|
|
|
links:
|
|
-for i in ${DSPARC64}; do \
|
|
cd $$i && rm -f tags; ln -s ../tags tags; done
|
|
|
|
|
|
SUBDIR= compile include ../sparc/include stand
|
|
|
|
.include <bsd.subdir.mk>
|