xref: /minix3/sys/arch/i386/Makefile (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1#	$NetBSD: Makefile,v 1.43 2012/10/23 16:08:12 dyoung Exp $
2
3# Makefile for i386 tags file and boot blocks
4
5TI386=	${SYSDIR}/arch/i386/tags
6SI386=	${SYSDIR}/arch/i386/acpi/*.[ch] \
7	${SYSDIR}/arch/i386/eisa/*.[ch] \
8	${SYSDIR}/arch/i386/i386/*.[ch] \
9	${SYSDIR}/arch/i386/include/*.h \
10	${SYSDIR}/arch/i386/isa/*.[ch] \
11	${SYSDIR}/arch/i386/mca/*.[ch] \
12	${SYSDIR}/arch/i386/pci/*.[ch] \
13	${SYSDIR}/arch/i386/pnpbios/*.[ch] \
14	${SYSDIR}/external/isc/atheros_hal/dist/*.[ch] \
15	${SYSDIR}/external/isc/atheros_hal/dist/*/*.[ch] \
16	${SYSDIR}/external/isc/atheros_hal/ic/*.[ch]
17SI386+=	${SYSDIR}/arch/x86/x86/*.[ch] \
18	${SYSDIR}/arch/x86/acpi/*.[ch] \
19	${SYSDIR}/arch/x86/include/*.h \
20	${SYSDIR}/arch/x86/isa/*.[ch] \
21	${SYSDIR}/arch/x86/pci/*.[ch] \
22	${SYSDIR}/arch/xen/include/*.h \
23	${SYSDIR}/arch/xen/i386/*.[ch] \
24	${SYSDIR}/arch/xen/x86/*.[ch] \
25	${SYSDIR}/arch/xen/xen/*.[ch] \
26	${SYSDIR}/arch/xen/xenbus/*.[ch]
27AI386=	${SYSDIR}/arch/i386/i386/*.S \
28	${SYSDIR}/../common/lib/libc/arch/i386/*/*.S
29
30# Directories in which to place tags links
31DI386=	i386 eisa isa include pci
32
33.if !defined(__MINIX)
34.include "../../kern/Make.tags.inc"
35
36tags:
37	-rm -f ${TI386}
38	-echo ${SI386} | xargs $(TOOL_CTAGS) -wadtf ${TI386}
39	-find -H ${SYSDIR}/external/bsd/acpica/dist/ -name '*.[ch]' | \
40	    sort -t / -u | xargs $(TOOL_CTAGS) -wadtf ${TI386}
41	-${FINDCOMM} | xargs $(TOOL_CTAGS) -wadtf ${TI386}
42	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
43	    ${TOOL_SED} -e \
44	"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
45		>> ${TI386}
46	sort -o ${TI386} ${TI386}
47
48links:
49	-for i in ${DI386}; do \
50	    (cd $$i && rm -f tags; ln -s ../tags tags); done
51.endif # !defined(__MINIX)
52
53
54SUBDIR=	include stand ../x86/include
55
56.include <bsd.subdir.mk>
57