summaryrefslogtreecommitdiff
path: root/sys/arch/cats/Makefile
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2005-05-06 02:20:25 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2005-05-06 02:20:25 +0000
commit98e337838d087996dda89c141b647d6754c701ac (patch)
treeed9cce7a51e53adb2d42e1b4682f5b5778a2f69d /sys/arch/cats/Makefile
parent0c4da963fece4a47dd4b011d18b59480f7813424 (diff)
make tags and links work, and use all sources
Diffstat (limited to 'sys/arch/cats/Makefile')
-rw-r--r--sys/arch/cats/Makefile32
1 files changed, 19 insertions, 13 deletions
diff --git a/sys/arch/cats/Makefile b/sys/arch/cats/Makefile
index 942bc4f3dc3..e58ad23604f 100644
--- a/sys/arch/cats/Makefile
+++ b/sys/arch/cats/Makefile
@@ -1,30 +1,36 @@
-/* $OpenBSD: Makefile,v 1.2 2004/02/06 17:31:17 drahn Exp $ */
+# $OpenBSD: Makefile,v 1.3 2005/05/06 02:20:24 uwe Exp $
# $NetBSD: Makefile,v 1.1 2001/06/12 08:32:46 chris Exp $
# Makefile for cats tags file and boot blocks
-TCATS= ../cats/tags
-SCATS= ../cats/cats/*.[ch] ../cats/include/*.h \
- ../cats/isa/*.[ch]
-ACATS= ../cats/cats/*.S
+S=${.CURDIR}/../..
+.include "$S/kern/Make.tags.inc"
-# Directories in which to place tags links
-DCATS= isa include
+NOPROG= noprog
+NOMAN= noman
+
+TCATS= $S/arch/cats/tags
+SCATS= $S/arch/cats/cats/*.[ch] $S/arch/cats/include/*.h \
+ $S/arch/cats/isa/*.[ch] $S/arch/cats/pci/*.[ch] \
+ $S/arch/arm/arm/*.[ch] $S/arch/arm/footbridge/*.[ch] \
+ $S/arch/arm/footbridge/isa/*.[ch]
+ACATS= $S/arch/arm/arm/*.S \
+ $S/arch/arm/footbridge/isa/*.S
-.include "../../kern/Make.tags.inc"
+# Directories in which to place tags links
+DCATS= cats include isa pci
tags:
-ctags -wdtf ${TCATS} ${SCATS} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACATS} | \
- sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
+ sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TCATS}
sort -o ${TCATS} ${TCATS}
links:
-for i in ${DCATS}; do \
- cd $$i && rm -f tags; ln -s ../tags tags; done
-
+ (cd $$i && { rm -f tags; ln -s ${TCATS} tags; }) done
-SUBDIR=
+obj: _SUBDIRUSE
-.include <bsd.subdir.mk>
+.include <bsd.prog.mk>