Merge from vendor branch GROFF:
[dragonfly.git] / sys / i386 / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/sys/i386/Makefile,v 1.8 2000/01/27 01:22:06 mckusick Exp $
062db326 2# $DragonFly: src/sys/i386/Attic/Makefile,v 1.6 2005/07/07 11:49:57 corecode Exp $
984263bc
MD
3# @(#)Makefile 8.1 (Berkeley) 6/11/93
4
5# Makefile for i386 links, tags file
6
7# SYS is normally set in Make.tags.inc
8# SYS=/sys
9
10TAGDIR= i386
11
12.include "../kern/Make.tags.inc"
13
14all:
15 @echo "make links or tags only"
16
17# Directories in which to place i386 tags links
af90f33e 18DI386= acpica apm conf i386 include isa
984263bc
MD
19
20links::
21 -for i in ${COMMDIR1}; do \
062db326 22 (cd $$i && { rm -f tags; ${LN} -s ../${TAGDIR}/tags tags; }) done
984263bc 23 -for i in ${COMMDIR2}; do \
062db326 24 (cd $$i && { rm -f tags; ${LN} -s ../../${TAGDIR}/tags tags; }) done
984263bc 25 -for i in ${DI386}; do \
062db326 26 (cd $$i && { rm -f tags; ${LN} -s ../tags tags; }) done
984263bc 27
386adc81 28SI386= ${SYS}/i386/acpica/*.[ch] ${SYS}/i386/apm/*.[ch] \
af90f33e
SW
29 ${SYS}/i386/i386/*.[ch] ${SYS}/i386/include/*.[ch] \
30 ${SYS}/i386/isa/*.[ch]
984263bc
MD
31AI386= ${SYS}/i386/i386/*.s
32
33tags::
34 -ctags -wdt ${COMM} ${SI386}
35 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
36 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
37 >> tags
38 sort -o tags tags
39 chmod 444 tags