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