aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>1999-10-30 09:28:27 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>1999-10-30 09:28:27 +0000
commit7621bfff0f0f02228e75d207e602f6cef505ae2f (patch)
treec76ea36ba85323b999bfc9162fcb16e1d0b330d6
parentf5d015398118abfe3a5f27fcc3b6c6700ae53c15 (diff)
downloadsrc-7621bfff0f0f02228e75d207e602f6cef505ae2f.tar.gz
src-7621bfff0f0f02228e75d207e602f6cef505ae2f.zip
Allow the source root `S' to be overridden by defining it only when
it isn't already defined. It enables config(8) to create the kernel build directory where it wants.
Notes
Notes: svn path=/head/; revision=52651
-rw-r--r--sys/alpha/conf/Makefile.alpha2
-rw-r--r--sys/conf/Makefile.alpha2
-rw-r--r--sys/conf/Makefile.i3862
-rw-r--r--sys/conf/Makefile.pc982
-rw-r--r--sys/conf/Makefile.powerpc2
-rw-r--r--sys/i386/conf/Makefile.i3862
-rw-r--r--sys/pc98/conf/Makefile.pc982
7 files changed, 14 insertions, 0 deletions
diff --git a/sys/alpha/conf/Makefile.alpha b/sys/alpha/conf/Makefile.alpha
index dfd267a69063..a008d9872a9e 100644
--- a/sys/alpha/conf/Makefile.alpha
+++ b/sys/alpha/conf/Makefile.alpha
@@ -23,11 +23,13 @@
KERNEL?= kernel
STD8X16FONT?= iso
+.if !defined(S)
.if exists(./@/.)
S= ./@
.else
S= ../..
.endif
+.endif
ALPHA= ${S}/alpha
HCC?=${CC}
diff --git a/sys/conf/Makefile.alpha b/sys/conf/Makefile.alpha
index dfd267a69063..a008d9872a9e 100644
--- a/sys/conf/Makefile.alpha
+++ b/sys/conf/Makefile.alpha
@@ -23,11 +23,13 @@
KERNEL?= kernel
STD8X16FONT?= iso
+.if !defined(S)
.if exists(./@/.)
S= ./@
.else
S= ../..
.endif
+.endif
ALPHA= ${S}/alpha
HCC?=${CC}
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index f6cd81823193..06d6bb8f5b2f 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -24,11 +24,13 @@ KERNEL?= kernel
KERNFORMAT?= elf
STD8X16FONT?= iso
+.if !defined(S)
.if exists(./@/.)
S= ./@
.else
S= ../..
.endif
+.endif
I386= ${S}/i386
COPTFLAGS?=-O
diff --git a/sys/conf/Makefile.pc98 b/sys/conf/Makefile.pc98
index 7bb71648a6c8..d2b3351e8d76 100644
--- a/sys/conf/Makefile.pc98
+++ b/sys/conf/Makefile.pc98
@@ -26,11 +26,13 @@ KERNEL?= kernel
KERNFORMAT?= elf
#STD8X16FONT?= iso
+.if !defined(S)
.if exists(./@/.)
S= ./@
.else
S= ../..
.endif
+.endif
PC98= ${S}/pc98
I386= ${S}/i386
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index f6cd81823193..06d6bb8f5b2f 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -24,11 +24,13 @@ KERNEL?= kernel
KERNFORMAT?= elf
STD8X16FONT?= iso
+.if !defined(S)
.if exists(./@/.)
S= ./@
.else
S= ../..
.endif
+.endif
I386= ${S}/i386
COPTFLAGS?=-O
diff --git a/sys/i386/conf/Makefile.i386 b/sys/i386/conf/Makefile.i386
index f6cd81823193..06d6bb8f5b2f 100644
--- a/sys/i386/conf/Makefile.i386
+++ b/sys/i386/conf/Makefile.i386
@@ -24,11 +24,13 @@ KERNEL?= kernel
KERNFORMAT?= elf
STD8X16FONT?= iso
+.if !defined(S)
.if exists(./@/.)
S= ./@
.else
S= ../..
.endif
+.endif
I386= ${S}/i386
COPTFLAGS?=-O
diff --git a/sys/pc98/conf/Makefile.pc98 b/sys/pc98/conf/Makefile.pc98
index 7bb71648a6c8..d2b3351e8d76 100644
--- a/sys/pc98/conf/Makefile.pc98
+++ b/sys/pc98/conf/Makefile.pc98
@@ -26,11 +26,13 @@ KERNEL?= kernel
KERNFORMAT?= elf
#STD8X16FONT?= iso
+.if !defined(S)
.if exists(./@/.)
S= ./@
.else
S= ../..
.endif
+.endif
PC98= ${S}/pc98
I386= ${S}/i386