summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorassar <assar@cvs.openbsd.org>2001-07-15 13:10:52 +0000
committerassar <assar@cvs.openbsd.org>2001-07-15 13:10:52 +0000
commit776c4fafd1351d3375c0d8ce0002acca4fb2a443 (patch)
tree2d5895da765a71457cf4251e0d31a9fdc0951807
parentb72ffa47960a4c39c8a906fd71310112140f748f (diff)
add install target
-rw-r--r--sys/arch/alpha/conf/Makefile.alpha16
-rw-r--r--sys/arch/amiga/conf/Makefile.amiga16
-rw-r--r--sys/arch/hp300/conf/Makefile.hp30016
-rw-r--r--sys/arch/hppa/conf/Makefile.hppa16
-rw-r--r--sys/arch/i386/conf/Makefile.i38616
-rw-r--r--sys/arch/mac68k/conf/Makefile.mac68k16
-rw-r--r--sys/arch/mvme68k/conf/Makefile.mvme68k16
-rw-r--r--sys/arch/mvme88k/conf/Makefile.mvme88k16
-rw-r--r--sys/arch/mvmeppc/conf/Makefile.mvmeppc16
-rw-r--r--sys/arch/powerpc/conf/Makefile.powerpc16
-rw-r--r--sys/arch/sparc/conf/Makefile.sparc16
-rw-r--r--sys/arch/sun3/conf/Makefile.sun316
-rw-r--r--sys/arch/vax/conf/Makefile.vax16
13 files changed, 195 insertions, 13 deletions
diff --git a/sys/arch/alpha/conf/Makefile.alpha b/sys/arch/alpha/conf/Makefile.alpha
index e99acd427be..a9655b889ee 100644
--- a/sys/arch/alpha/conf/Makefile.alpha
+++ b/sys/arch/alpha/conf/Makefile.alpha
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.alpha,v 1.20 2001/05/11 09:46:02 art Exp $
+# $OpenBSD: Makefile.alpha,v 1.21 2001/07/15 13:10:46 assar Exp $
# $NetBSD: Makefile.alpha,v 1.27 1996/12/01 06:12:25 jonathan Exp $
# Makefile for OpenBSD
@@ -22,6 +22,8 @@
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
+.include <bsd.own.mk>
+
CC?= cc
LD?= ld
MKDEP?= mkdep
@@ -176,4 +178,16 @@ cpuconf.o: cpuconf.c
cpuconf.c: ${ALPHA}/alpha/cpuconf.c
cp ${ALPHA}/alpha/cpuconf.c .
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
diff --git a/sys/arch/amiga/conf/Makefile.amiga b/sys/arch/amiga/conf/Makefile.amiga
index dbdf88c0735..f8287ba9f2c 100644
--- a/sys/arch/amiga/conf/Makefile.amiga
+++ b/sys/arch/amiga/conf/Makefile.amiga
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.amiga,v 1.25 2000/07/16 09:35:39 espie Exp $
+# $OpenBSD: Makefile.amiga,v 1.26 2001/07/15 13:10:47 assar Exp $
# $NetBSD: Makefile.amiga,v 1.60 1997/07/23 10:19:42 is Exp $
# Makefile for OpenBSD
@@ -22,6 +22,8 @@
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
+.include <bsd.own.mk>
+
CC?= cc
LD?= ld
MKDEP?= mkdep
@@ -192,4 +194,16 @@ amiga_init.o locore.o pmap.o sys_machdep.o bzsc.o flsc.o sbic.o sfas.o: Makefile
locore.o: ${AMIGA}/amiga/locore.s assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
diff --git a/sys/arch/hp300/conf/Makefile.hp300 b/sys/arch/hp300/conf/Makefile.hp300
index 983243d4cc9..b30637ef7c9 100644
--- a/sys/arch/hp300/conf/Makefile.hp300
+++ b/sys/arch/hp300/conf/Makefile.hp300
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hp300,v 1.20 2000/06/18 20:00:54 millert Exp $
+# $OpenBSD: Makefile.hp300,v 1.21 2001/07/15 13:10:47 assar Exp $
# $NetBSD: Makefile.hp300,v 1.54 1997/04/01 23:16:41 scottr Exp $
# Makefile for OpenBSD
@@ -22,6 +22,8 @@
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
+.include <bsd.own.mk>
+
CC?= cc
LD?= ld
MKDEP?= mkdep
@@ -176,4 +178,16 @@ dma.o hpux_machdep.o locore.o machdep.o pmap.o pmap_boostrap.o sys_machdep.o tra
locore.o: ${HP300}/hp300/locore.s assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
diff --git a/sys/arch/hppa/conf/Makefile.hppa b/sys/arch/hppa/conf/Makefile.hppa
index 1940f2e2940..837340df7bc 100644
--- a/sys/arch/hppa/conf/Makefile.hppa
+++ b/sys/arch/hppa/conf/Makefile.hppa
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.hppa,v 1.8 2000/01/11 21:26:23 mickey Exp $
+# $OpenBSD: Makefile.hppa,v 1.9 2001/07/15 13:10:48 assar Exp $
# Makefile for OpenBSD
#
@@ -21,6 +21,8 @@
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
+.include <bsd.own.mk>
+
.if ${MACHINE_ARCH} != "hppa"
CROSSDIR?= /usr/cross/hppa
@@ -206,6 +208,18 @@ locore.o machdep.o trap.o: Makefile
locore.o: ${HPPA}/hppa/locore.S assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
.endif
diff --git a/sys/arch/i386/conf/Makefile.i386 b/sys/arch/i386/conf/Makefile.i386
index 8d56975ef01..faeab7e18f0 100644
--- a/sys/arch/i386/conf/Makefile.i386
+++ b/sys/arch/i386/conf/Makefile.i386
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.i386,v 1.26 2001/04/22 19:20:35 gluk Exp $
+# $OpenBSD: Makefile.i386,v 1.27 2001/07/15 13:10:48 assar Exp $
# $NetBSD: Makefile.i386,v 1.67 1996/05/11 16:12:11 mycroft Exp $
# Makefile for OpenBSD
@@ -22,6 +22,8 @@
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
+.include <bsd.own.mk>
+
AS?= as
CC?= cc
MKDEP?= mkdep
@@ -190,4 +192,16 @@ locore.o machdep.o: Makefile
locore.o: ${I386}/i386/locore.s assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
diff --git a/sys/arch/mac68k/conf/Makefile.mac68k b/sys/arch/mac68k/conf/Makefile.mac68k
index 95b5ca36835..58fbffbf709 100644
--- a/sys/arch/mac68k/conf/Makefile.mac68k
+++ b/sys/arch/mac68k/conf/Makefile.mac68k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.mac68k,v 1.20 1998/08/18 15:05:52 ryker Exp $
+# $OpenBSD: Makefile.mac68k,v 1.21 2001/07/15 13:10:48 assar Exp $
# $NetBSD: Makefile.mac68k,v 1.53 1997/04/15 06:11:38 scottr Exp $
# Makefile for OpenBSD
@@ -22,6 +22,8 @@
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
+.include <bsd.own.mk>
+
CC?= cc
LD?= ld
MKDEP?= mkdep
@@ -183,4 +185,16 @@ locore.o pmap.o trap.o: Makefile
locore.o: ${MAC68K}/mac68k/locore.s assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
diff --git a/sys/arch/mvme68k/conf/Makefile.mvme68k b/sys/arch/mvme68k/conf/Makefile.mvme68k
index ae4afbc69ef..a95b4ed40c0 100644
--- a/sys/arch/mvme68k/conf/Makefile.mvme68k
+++ b/sys/arch/mvme68k/conf/Makefile.mvme68k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.mvme68k,v 1.10 2000/01/06 03:21:42 smurph Exp $
+# $OpenBSD: Makefile.mvme68k,v 1.11 2001/07/15 13:10:49 assar Exp $
# This makefile is constructed from a machine description:
# config machineid
@@ -19,6 +19,8 @@
# DEBUG is set to -g by config if debugging is requested (config -g).
# PROF is set to -pg by config if profiling is requested (config -p).
+.include <bsd.own.mk>
+
AS?= as
CC?= cc
CPP?= cpp
@@ -178,4 +180,16 @@ locore.o machdep.o: Makefile
locore.o: ${MVME68K}/mvme68k/locore.s assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
diff --git a/sys/arch/mvme88k/conf/Makefile.mvme88k b/sys/arch/mvme88k/conf/Makefile.mvme88k
index 7d123762f8f..7b158a658f8 100644
--- a/sys/arch/mvme88k/conf/Makefile.mvme88k
+++ b/sys/arch/mvme88k/conf/Makefile.mvme88k
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.mvme88k,v 1.12 2001/05/20 05:50:43 miod Exp $
+# $OpenBSD: Makefile.mvme88k,v 1.13 2001/07/15 13:10:49 assar Exp $
#
# Makefile for OpenBSD
#
@@ -21,6 +21,8 @@
# DEBUG is set to -g by config if debugging is requested (config -g).
# PROF is set to -pg by config if profiling is requested (config -p).
+.include <bsd.own.mk>
+
AS?= as
CC?= cc
CPP?= cpp
@@ -182,4 +184,16 @@ locore.o machdep.o: Makefile
locore.o: ${MVME88K}/mvme88k/locore.S assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
diff --git a/sys/arch/mvmeppc/conf/Makefile.mvmeppc b/sys/arch/mvmeppc/conf/Makefile.mvmeppc
index e6590ca4016..0413c61d22a 100644
--- a/sys/arch/mvmeppc/conf/Makefile.mvmeppc
+++ b/sys/arch/mvmeppc/conf/Makefile.mvmeppc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.mvmeppc,v 1.3 2001/07/06 05:14:29 smurph Exp $
+# $OpenBSD: Makefile.mvmeppc,v 1.4 2001/07/15 13:10:49 assar Exp $
#
# Makefile for OpenBSD PowerPC
#
@@ -23,6 +23,8 @@
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
+.include <bsd.own.mk>
+
AS?= as
CC?= cc
CPP?= cpp
@@ -181,4 +183,16 @@ locore.o machdep.o: Makefile
locore.o: ${PPC}/mvmeppc/locore.S assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
diff --git a/sys/arch/powerpc/conf/Makefile.powerpc b/sys/arch/powerpc/conf/Makefile.powerpc
index 06dc495cb4c..81565d1f0b4 100644
--- a/sys/arch/powerpc/conf/Makefile.powerpc
+++ b/sys/arch/powerpc/conf/Makefile.powerpc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.powerpc,v 1.10 2001/07/10 01:56:50 drahn Exp $
+# $OpenBSD: Makefile.powerpc,v 1.11 2001/07/15 13:10:49 assar Exp $
#
# Makefile for OpenBSD PowerPC
#
@@ -23,6 +23,8 @@
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
+.include <bsd.own.mk>
+
AS?= as
CC?= cc
CPP?= cpp
@@ -180,4 +182,16 @@ locore.o machdep.o: Makefile
locore.o: ${PPC}/powerpc/locore.S assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
diff --git a/sys/arch/sparc/conf/Makefile.sparc b/sys/arch/sparc/conf/Makefile.sparc
index eae6d2ebb07..dc07739933c 100644
--- a/sys/arch/sparc/conf/Makefile.sparc
+++ b/sys/arch/sparc/conf/Makefile.sparc
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sparc,v 1.18 1999/05/30 08:34:27 deraadt Exp $
+# $OpenBSD: Makefile.sparc,v 1.19 2001/07/15 13:10:50 assar Exp $
# $NetBSD: Makefile.sparc,v 1.32.4.1 1996/06/12 20:26:32 pk Exp $
# Makefile for OpenBSD
@@ -22,6 +22,8 @@
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
+.include <bsd.own.mk>
+
AS?= as
CC?= cc
CPP?= cpp
@@ -192,4 +194,16 @@ machdep.o mem.o openprom.o pmap.o vm_machdep.o: Makefile
locore.o: ${SPARC}/sparc/locore.s assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
diff --git a/sys/arch/sun3/conf/Makefile.sun3 b/sys/arch/sun3/conf/Makefile.sun3
index eda3a67de81..394ced80585 100644
--- a/sys/arch/sun3/conf/Makefile.sun3
+++ b/sys/arch/sun3/conf/Makefile.sun3
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.sun3,v 1.25 2001/01/04 22:39:12 miod Exp $
+# $OpenBSD: Makefile.sun3,v 1.26 2001/07/15 13:10:50 assar Exp $
# $NetBSD: Makefile.sun3,v 1.51 1996/09/09 21:07:08 mycroft Exp $
# Makefile for OpenBSD
@@ -22,6 +22,8 @@
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
+.include <bsd.own.mk>
+
CC?= cc
LD?= ld
MKDEP?= mkdep
@@ -165,4 +167,16 @@ db_machdep.o dvma.o machdep.o pmap.o sun3_startup.o vm_machdep.o: Makefile
locore.o: ${SUN3}/sun3/locore.s assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES
diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax
index 3ea529232db..b28f5d1debc 100644
--- a/sys/arch/vax/conf/Makefile.vax
+++ b/sys/arch/vax/conf/Makefile.vax
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.vax,v 1.15 2001/06/17 21:39:30 hugh Exp $
+# $OpenBSD: Makefile.vax,v 1.16 2001/07/15 13:10:51 assar Exp $
# $NetBSD: Makefile.vax,v 1.49 1999/07/26 05:20:49 cgd Exp $
# Makefile for OpenBSD/vax
@@ -22,6 +22,8 @@
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
+.include <bsd.own.mk>
+
%OBJS
%CFILES
@@ -208,4 +210,16 @@ intvec.o: ${VAX}/vax/intvec.s assym.h
subr.o: ${VAX}/vax/subr.s assym.h
${NORMAL_S}
+# The install target can be redefined by putting a
+# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
+MACHINE_NAME!= uname -n
+install: install-kernel-${MACHINE_NAME}
+.if !target(install-kernel-${MACHINE_NAME}})
+install-kernel-${MACHINE_NAME}:
+ rm -f /obsd
+ ln /bsd /obsd
+ cp bsd /nbsd
+ mv /nbsd /bsd
+.endif
+
%RULES