diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-28 20:18:43 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-28 20:18:43 +0000 |
commit | d9a32e1f04b531bd2eeac38e3090ca188cc52503 (patch) | |
tree | 8488e5debbd38329cf5270c1a0b9ee72067790b4 | |
parent | fc407fd91224ec5ffa59d5ed31acb90156e0358f (diff) |
(HURDLIBS-files): Compute names automatically. Dike out
per-library variables up above.
-rw-r--r-- | Makeconf | 30 |
1 files changed, 17 insertions, 13 deletions
@@ -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) |