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.
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.6 2003/01/06 17:40:42 lukem Exp $
|
|
|
|
# Makefile for next68k tags file and boot blocks
|
|
|
|
# Find where m68k source files are for inclusion in tags
|
|
.include <../m68k/Makefile.inc>
|
|
|
|
ENEXT68K= ../next68k/TAGS
|
|
TNEXT68K= ../next68k/tags
|
|
SNEXT68K= ../next68k/next68k/*.[ch] ../next68k/include/*.h \
|
|
../next68k/dev/*.[ch]
|
|
ANEXT68K= ../next68k/next68k/*.s
|
|
|
|
# Directories in which to place tags links
|
|
DNEXT68K= dev next68k include
|
|
|
|
.include "../../kern/Make.tags.inc"
|
|
|
|
tags:
|
|
-ctags -wdtf ${TNEXT68K} ${SNEXT68K} ${SM68K} ${COMM}
|
|
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEXT68K} ${AM68K} | \
|
|
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
|
|
>> ${TNEXT68K}
|
|
sort -o ${TNEXT68K} ${TNEXT68K}
|
|
|
|
.ifmake TAGS
|
|
COMM!= find ${SYSDIR} -name "arch" -prune -o -name "*.[ch]" -print
|
|
.endif
|
|
|
|
TAGS:
|
|
emacs-etags -o ${ENEXT68K} ${SNEXT68K} ${SM68K} ${COMM}
|
|
emacs-etags -a -l none \
|
|
--regex='/^\(ALT\)?ENTRY\(_NOPROFILE\)?(\([a-zA-Z0-9_]*\))\|^GLOBAL(\([a-zA-Z0-9_]*\))/\3\4/' \
|
|
-o ${ENEXT68K} ${ANEXT68K} ${AM68K}
|
|
|
|
links:
|
|
-for i in ${DNEXT68K}; do \
|
|
cd $$i && rm -f tags; ln -s ../tags tags; done
|
|
|
|
|
|
SUBDIR= compile include stand
|
|
|
|
.include <bsd.subdir.mk>
|