1 # $NetBSD: Makefile,v 1.8 2017/12/22 07:19:02 maxv Exp $
2
3 # Makefile for amd64 tags file and boot blocks
4
5 TAMD64= ${SYSDIR}/arch/amd64/tags
6 SAMD64= ${SYSDIR}/arch/amd64/amd64/*.[ch] \
7 ${SYSDIR}/arch/amd64/include/*.h \
8 ${SYSDIR}/external/isc/atheros_hal/dist/*.[ch] \
9 ${SYSDIR}/external/isc/atheros_hal/dist/*/*.[ch] \
10 ${SYSDIR}/external/isc/atheros_hal/ic/*.[ch]
11 SAMD64+= ${SYSDIR}/arch/x86/x86/*.[ch] \
12 ${SYSDIR}/arch/x86/acpi/*.[ch] \
13 ${SYSDIR}/arch/x86/include/*.h \
14 ${SYSDIR}/arch/x86/isa/*.[ch] \
15 ${SYSDIR}/arch/x86/pci/*.[ch]
16 AAMD64= ${SYSDIR}/arch/amd64/amd64/*.S \
17 ${SYSDIR}/arch/amd64/acpi/*.S
18 # Directories in which to place tags links
19 DAMD64= amd64 isa include pci
20
21 .include "../../kern/Make.tags.inc"
22
23 tags:
24 -rm -f ${TAMD64}
25 -echo ${SAMD64} | xargs ctags -wadtf ${TAMD64}
26 -find -H ${SYSDIR}/external/intel-public/acpica/dist/ -name '*.[ch]' | \
27 sort -t / -u | xargs ctags -wadtf ${TAMD64}
28 -${FINDCOMM} | xargs ctags -wadtf ${TAMD64}
29 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \
30 ${TOOL_SED} -e \
31 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
32 >> ${TAMD64}
33 sort -o ${TAMD64} ${TAMD64}
34
35 links:
36 -for i in ${DAMD64}; do \
37 (cd $$i && rm -f tags; ln -s ../tags tags); done
38
39
40 SUBDIR= compile include ../x86/include ../xen/include \
41 ../i386/include ../i386/stand stand
42
43 .include <bsd.subdir.mk>
Cache object: e284ea3653f7411cc389762b94944e61
|