1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1999-02-28 22:14:16 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/11/93
|
1993-06-12 14:58:17 +00:00
|
|
|
|
2008-12-01 14:15:10 +00:00
|
|
|
# Makefile for amd64 links, tags file
|
1993-06-12 14:58:17 +00:00
|
|
|
|
1999-02-28 22:14:16 +00:00
|
|
|
# SYS is normally set in Make.tags.inc
|
2008-12-01 14:15:10 +00:00
|
|
|
SYS=/sys
|
1999-02-28 22:14:16 +00:00
|
|
|
|
2008-12-01 14:15:10 +00:00
|
|
|
TAGDIR= amd64
|
1999-02-28 22:14:16 +00:00
|
|
|
|
|
|
|
.include "../kern/Make.tags.inc"
|
1993-06-12 14:58:17 +00:00
|
|
|
|
1999-02-28 22:14:16 +00:00
|
|
|
all:
|
|
|
|
@echo "make links or tags only"
|
1993-06-12 14:58:17 +00:00
|
|
|
|
2008-12-01 14:15:10 +00:00
|
|
|
# Directories in which to place amd64 tags links
|
2015-10-27 22:59:24 +00:00
|
|
|
DAMD64= acpica amd64 ia32 include linux linux32 pci vmm
|
1999-02-28 22:14:16 +00:00
|
|
|
|
|
|
|
links::
|
|
|
|
-for i in ${COMMDIR1}; do \
|
|
|
|
(cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done
|
|
|
|
-for i in ${COMMDIR2}; do \
|
|
|
|
(cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done
|
2008-12-01 14:15:10 +00:00
|
|
|
-for i in ${DAMD64}; do \
|
1999-02-28 22:14:16 +00:00
|
|
|
(cd $$i && { rm -f tags; ln -s ../tags tags; }) done
|
|
|
|
|
2008-12-01 14:15:10 +00:00
|
|
|
SAMD64= ${SYS}/amd64/acpica/*.[ch] \
|
|
|
|
${SYS}/amd64/amd64/*.[ch] ${SYS}/amd64/ia32/*.[ch] \
|
2015-10-27 22:59:24 +00:00
|
|
|
${SYS}/amd64/include/*.[ch] ${SYS}/amd64/linux/*.[ch] \
|
|
|
|
${SYS}/amd64/linux32/*.[ch] ${SYS}/amd64/pci/*.[ch] \
|
|
|
|
${SYS}/amd64/vmm/*.[ch]
|
2008-12-01 14:15:10 +00:00
|
|
|
AAMD64= ${SYS}/amd64/amd64/*.S
|
1993-06-12 14:58:17 +00:00
|
|
|
|
1999-02-28 22:14:16 +00:00
|
|
|
tags::
|
2008-12-01 14:15:10 +00:00
|
|
|
-ctags -wdt ${COMM} ${SAMD64}
|
|
|
|
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \
|
1993-06-12 14:58:17 +00:00
|
|
|
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
|
1999-02-28 22:14:16 +00:00
|
|
|
>> tags
|
|
|
|
sort -o tags tags
|
|
|
|
chmod 444 tags
|