1# $FreeBSD: head/sys/amd64/Makefile 98542 2002-06-21 06:18:05Z mckusick $
| 1# $FreeBSD: head/sys/amd64/Makefile 185515 2008-12-01 14:15:10Z kensmith $
|
2# @(#)Makefile 8.1 (Berkeley) 6/11/93 3
| 2# @(#)Makefile 8.1 (Berkeley) 6/11/93 3
|
4# Makefile for i386 links, tags file
| 4# Makefile for amd64 links, tags file
|
5 6# SYS is normally set in Make.tags.inc
| 5 6# SYS is normally set in Make.tags.inc
|
7# SYS=/sys 8SYS=/nsys
| 7SYS=/sys
|
9
| 8
|
10TAGDIR= i386
| 9TAGDIR= amd64
|
11 12.include "../kern/Make.tags.inc" 13 14all: 15 @echo "make links or tags only" 16
| 10 11.include "../kern/Make.tags.inc" 12 13all: 14 @echo "make links or tags only" 15
|
17# Directories in which to place i386 tags links 18DI386= apm i386 ibcs2 include isa linux
| 16# Directories in which to place amd64 tags links 17DAMD64= acpica amd64 ia32 include isa linux32 pci
|
19 20links:: 21 -for i in ${COMMDIR1}; do \ 22 (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done 23 -for i in ${COMMDIR2}; do \ 24 (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done
| 18 19links:: 20 -for i in ${COMMDIR1}; do \ 21 (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done 22 -for i in ${COMMDIR2}; do \ 23 (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done
|
25 -for i in ${DI386}; do \
| 24 -for i in ${DAMD64}; do \
|
26 (cd $$i && { rm -f tags; ln -s ../tags tags; }) done 27
| 25 (cd $$i && { rm -f tags; ln -s ../tags tags; }) done 26
|
28SI386= ${SYS}/i386/apm/*.[ch] \ 29 ${SYS}/i386/i386/*.[ch] ${SYS}/i386/ibcs2/*.[ch] \ 30 ${SYS}/i386/include/*.[ch] ${SYS}/i386/isa/*.[ch] \ 31 ${SYS}/i386/linux/*.[ch] 32AI386= ${SYS}/i386/i386/*.s
| 27SAMD64= ${SYS}/amd64/acpica/*.[ch] \ 28 ${SYS}/amd64/amd64/*.[ch] ${SYS}/amd64/ia32/*.[ch] \ 29 ${SYS}/amd64/include/*.[ch] ${SYS}/amd64/isa/*.[ch] \ 30 ${SYS}/amd64/linux32/*.[ch] ${SYS}/amd64/pci/*.[ch] 31AAMD64= ${SYS}/amd64/amd64/*.S
|
33 34tags::
| 32 33tags::
|
35 -ctags -wdt ${COMM} ${SI386} 36 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
| 34 -ctags -wdt ${COMM} ${SAMD64} 35 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \
|
37 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 38 >> tags 39 sort -o tags tags 40 chmod 444 tags
| 36 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 37 >> tags 38 sort -o tags tags 39 chmod 444 tags
|