xref: /freebsd/sys/amd64/Makefile (revision 2008043f386721d58158e37e0d7e50df8095942d)
1#	@(#)Makefile	8.1 (Berkeley) 6/11/93
2
3# Makefile for amd64 links, tags file
4
5# SYS is normally set in Make.tags.inc
6SYS=/sys
7
8TAGDIR=	amd64
9
10.include "../kern/Make.tags.inc"
11
12all:
13	@echo "make links or tags only"
14
15# Directories in which to place amd64 tags links
16DAMD64=	acpica amd64 ia32 include linux linux32 pci sgx vmm
17
18links::
19	-for i in ${COMMDIR1}; do \
20	    (cd $$i && { rm -f tags; ln -s ../${TAGDIR}/tags tags; }) done
21	-for i in ${COMMDIR2}; do \
22	    (cd $$i && { rm -f tags; ln -s ../../${TAGDIR}/tags tags; }) done
23	-for i in ${DAMD64}; do \
24	    (cd ${SYS}/amd64/$$i && { rm -f tags; ln -s ../tags tags; }) done
25
26SAMD64=	${SYS}/amd64/acpica/*.[ch] \
27	${SYS}/amd64/amd64/*.[ch] ${SYS}/amd64/ia32/*.[ch] \
28	${SYS}/amd64/include/*.[ch] ${SYS}/amd64/linux/*.[ch] \
29	${SYS}/amd64/linux32/*.[ch] ${SYS}/amd64/pci/*.[ch] \
30	${SYS}/amd64/sgx/*.[ch] ${SYS}/amd64/vmm/*.[ch]
31AAMD64=	${SYS}/amd64/amd64/*.S
32
33tags::
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
40	rm -f ${SYS}/amd64/tags
41	mv tags ${SYS}/amd64/tags
42