summaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-28 20:18:43 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-28 20:18:43 +0000
commitd9a32e1f04b531bd2eeac38e3090ca188cc52503 (patch)
tree8488e5debbd38329cf5270c1a0b9ee72067790b4 /Makeconf
parentfc407fd91224ec5ffa59d5ed31acb90156e0358f (diff)
(HURDLIBS-files): Compute names automatically. Dike out
per-library variables up above.
Diffstat (limited to 'Makeconf')
-rw-r--r--Makeconf30
1 files changed, 17 insertions, 13 deletions
diff --git a/Makeconf b/Makeconf
index fba23e27..3e2a935a 100644
--- a/Makeconf
+++ b/Makeconf
@@ -93,16 +93,16 @@ endif
# Hurd libraries
-libthreads := $(srcdir)/libthreads/libthreads.a
-libports := $(srcdir)/libports/libports.a
-libioserver := $(srcdir)/libioserver/libioserver.a
-libpager := $(srcdir)/libpager/libpager.a
-libfshelp := $(srcdir)/libfshelp/libfshelp.a
-libdiskfs := $(srcdir)/libdiskfs/libdiskfs.a
-libtrivfs := $(srcdir)/libtrivfs/libtrivfs.a
-libnetserv := $(srcdir)/libnetserv/libnetserv.a
-libps := $(srcdir)/libps/libps.a
-libihash := $(srcdir)/libihash/libihash.a
+#libthreads := $(srcdir)/libthreads/libthreads.a
+#libports := $(srcdir)/libports/libports.a
+#libioserver := $(srcdir)/libioserver/libioserver.a
+#libpager := $(srcdir)/libpager/libpager.a
+#libfshelp := $(srcdir)/libfshelp/libfshelp.a
+#libdiskfs := $(srcdir)/libdiskfs/libdiskfs.a
+#libtrivfs := $(srcdir)/libtrivfs/libtrivfs.a
+#libnetserv := $(srcdir)/libnetserv/libnetserv.a
+#libps := $(srcdir)/libps/libps.a
+#libihash := $(srcdir)/libihash/libihash.a
alllibs := libthreads libports libioserver libpager libfshelp libdiskfs\
libtrivfs libnetserv libps libihash
@@ -145,16 +145,20 @@ endif
# Provide default.
install:
+LDFLAGS += -static
+
# Each word of $(HURDLIBS) is a library name `libfoo', which is defined as
# a variable above with the complete file name to find it.
# Yippee! A use for computed variable references!
-HURDLIBS-files := $(foreach var,$(HURDLIBS),$($(var)))
+ifeq ($(filter-out -static,$(LDFLAGS)),$(LDFLAGS))
+HURDLIBS-files := $(patsubst lib%,../lib%/lib%.so,$(HURDLIBS))
+else
+HURDLIBS-files := $(patsubst lib%,../lib%/lib%.a,$(HURDLIBS))
+endif
HURDLIBS-libs := $(foreach lib,$(HURDLIBS-files), \
-L$(dir $(lib)) \
$(patsubst lib%.a,-l%,$(notdir $(lib))))
-LDFLAGS += -static
-
# Building the target
ifeq ($(doinst),one)
$(target): $(OBJS) $(HURDLIBS-files) $(OTHERLIBS) $(libc)