xref: /freebsd/sys/i386/Makefile (revision 7a7741af18d6c8a804cc643cb7ecda9d730c6aa6)
1# Makefile for i386 links, tags file
2
3# SYS is normally set in Make.tags.inc
4SYS=/sys
5
6TAGDIR=	i386
7
8.include "../kern/Make.tags.inc"
9
10all:
11	@echo "make links or tags only"
12
13# Directories in which to place i386 tags links
14DI386=	apm i386 include isa linux
15
16links::
17	-for i in ${COMMDIR1}; do \
18	    (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done
19	-for i in ${COMMDIR2}; do \
20	    (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done
21	-for i in ${DI386}; do \
22	    (cd $$i && { rm -f tags; ln -s ../tags tags; }) done
23
24SI386=	${SYS}/i386/acpica/*.[ch] ${SYS}/i386/bios/*.[ch] \
25	${SYS}/i386/i386/*.[ch] ${SYS}/i386/include/*.[ch] \
26	${SYS}/i386/isa/*.[ch] ${SYS}/i386/linux/*.[ch] \
27	${SYS}/i386/pci/*.[ch]
28AI386=	${SYS}/i386/i386/*.s
29
30tags::
31	-ctags -wdt ${COMM} ${SI386}
32	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
33	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
34		>> tags
35	sort -o tags tags
36	chmod 444 tags
37