summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-10-30 09:28:27 +0000
committermarcel <marcel@FreeBSD.org>1999-10-30 09:28:27 +0000
commit4a66bff37d10bbd95dbc8e0917ecf67cf2e034e9 (patch)
treec76ea36ba85323b999bfc9162fcb16e1d0b330d6
parent12f5be6150cfef25a7e2069898edfd11ceba0bc2 (diff)
downloadFreeBSD-src-4a66bff37d10bbd95dbc8e0917ecf67cf2e034e9.zip
FreeBSD-src-4a66bff37d10bbd95dbc8e0917ecf67cf2e034e9.tar.gz
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.
-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 dfd267a..a008d98 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 dfd267a..a008d98 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 f6cd818..06d6bb8 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 7bb7164..d2b3351 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 f6cd818..06d6bb8 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 f6cd818..06d6bb8 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 7bb7164..d2b3351 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
OpenPOWER on IntegriCloud