2005-12-11 15:16:03 +03:00
|
|
|
# $NetBSD: Makefile,v 1.10 2005/12/11 12:16:37 christos Exp $
|
2000-01-24 00:01:48 +03:00
|
|
|
# $OpenBSD: Makefile,v 1.5 1997/05/19 10:34:53 pefo Exp $
|
|
|
|
# from: @(#)Makefile 8.1 (Berkeley) 6/16/93
|
2000-01-23 23:07:58 +03:00
|
|
|
|
2000-01-24 00:01:48 +03:00
|
|
|
# Makefile for arc tags file and boot blocks
|
2000-01-23 23:07:58 +03:00
|
|
|
|
|
|
|
# Find where mips source files are for inclusion in tags
|
|
|
|
.include <../mips/Makefile.inc>
|
|
|
|
|
2000-01-24 00:01:48 +03:00
|
|
|
TARC= ../arc/tags
|
2005-04-18 19:59:51 +04:00
|
|
|
SARC= ../arc/arc/*.[ch] ../arc/dev/*.[ch] \
|
2000-01-24 00:01:48 +03:00
|
|
|
../arc/dti/*.[ch] ../arc/include/*.h ../arc/isa/*.[ch] \
|
2000-12-24 12:25:24 +03:00
|
|
|
../arc/pci/*.[ch] ../arc/jazz/*.[ch]
|
2000-01-24 00:01:48 +03:00
|
|
|
AARC= ../arc/arc/*.S
|
2000-01-23 23:07:58 +03:00
|
|
|
|
|
|
|
# Directories in which to place tags links
|
2005-04-18 19:59:51 +04:00
|
|
|
DARC= arc dev dti include isa pci jazz
|
2000-01-23 23:07:58 +03:00
|
|
|
|
|
|
|
.include "../../kern/Make.tags.inc"
|
|
|
|
|
|
|
|
tags:
|
2000-01-24 00:01:48 +03:00
|
|
|
-ctags -wdtf ${TARC} ${SARC} ${SMIPS} ${COMM}
|
|
|
|
egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AARC} ${AMIPS} | \
|
2000-01-23 23:07:58 +03:00
|
|
|
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
|
2000-01-24 00:01:48 +03:00
|
|
|
>> ${TARC}
|
|
|
|
sort -o ${TARC} ${TARC}
|
2000-01-23 23:07:58 +03:00
|
|
|
|
|
|
|
links:
|
2000-01-24 00:01:48 +03:00
|
|
|
-for i in ${DARC}; do \
|
2000-01-23 23:07:58 +03:00
|
|
|
cd $$i && rm -f tags; ln -s ../tags tags; done
|
|
|
|
|
|
|
|
|
2003-01-06 20:40:18 +03:00
|
|
|
SUBDIR= compile include stand
|
2000-01-23 23:07:58 +03:00
|
|
|
|
|
|
|
.include <bsd.subdir.mk>
|