summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1993-12-02 12:50:34 +0000
committerMichael I. Bushnell <mib@gnu.org>1993-12-02 12:50:34 +0000
commit85180409ebc572745f7919c64a659c023526bb45 (patch)
treeb3effbdeafff209ab3d342fa908729d7777b1c8b
parent013381e5c1d3a9ffbf85b89b888414e9288b8fca (diff)
Formerly Makeconf.~6~
-rw-r--r--Makeconf19
1 files changed, 15 insertions, 4 deletions
diff --git a/Makeconf b/Makeconf
index aaf343f6..47f66fab 100644
--- a/Makeconf
+++ b/Makeconf
@@ -1,16 +1,22 @@
# Generic configuration for Hurd compilation
+all:
+
# This is the directory into which Hurd cross-building tools are placed
hurdinst := /home/hm1/hurdinst
# This is the directory which serves as root for the Hurd.
hurdroot := /home/hm1/hurdroot
+# This is the directory containing the top-level Hurd source (and this file).
+hurdsource := /home/hm1/gnu/hurd
+
# Where to find various things for compilation:
headers := $(hurdinst)/include
startup := $(hurdinst)/lib/crt0.o
libc := $(hurdinst)/lib/libc.a
libthreads := $(hurdinst)/lib/libthreads.a
+libports := $(hurdinst)/lib/libports.a
gccheaders := /usr/local/lib/gcc-lib/i386-compaq-mach/2.4.5/include
# Flags for compilation
@@ -34,7 +40,12 @@ $(CC) -nostdlib -e__start $(ldflags) -o $@ $(CFLAGS) $(startup) \
$^ $(libthreads) $(libc) -lgcc
endef
-define link-with-threads
-$(CC) -nostdlib -e__start $(ldflags) -o $@ $(CFLAGS) $(startup) \
-$^ $(libthreads) $(libc) -lgcc
-endef
+# Some very useful dependencies
+
+ifneq ($(strip $(dir)),libports)
+$(libports): FORCE
+ $(MAKE) -C $(hurdsource)/libports $(libports)
+$(headers)/libports.h: FORCE
+ $(MAKE) -C $(hurdsource)/libports $(headers)/libports.h
+FORCE:
+endif \ No newline at end of file