]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/amd64/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / amd64 / Makefile
1 # $FreeBSD$
2 #       @(#)Makefile    8.1 (Berkeley) 6/11/93
3
4 # Makefile for amd64 links, tags file
5
6 # SYS is normally set in Make.tags.inc
7 SYS=/sys
8
9 TAGDIR= amd64
10
11 .include "../kern/Make.tags.inc"
12
13 all:
14         @echo "make links or tags only"
15
16 # Directories in which to place amd64 tags links
17 DAMD64= acpica amd64 ia32 include isa linux32 pci
18
19 links::
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
24         -for i in ${DAMD64}; do \
25             (cd $$i && { rm -f tags; ln -s ../tags tags; }) done
26
27 SAMD64= ${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]
31 AAMD64= ${SYS}/amd64/amd64/*.S
32
33 tags::
34         -ctags -wdt ${COMM} ${SAMD64}
35         egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \
36             sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
37                 >> tags
38         sort -o tags tags
39         chmod 444 tags