diff options
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/Makefile | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/ldso/Makefile b/ldso/Makefile index a93c6f552..314d22522 100644 --- a/ldso/Makefile +++ b/ldso/Makefile @@ -5,15 +5,23 @@ SUBDIRS = util d-link libdl # man all: - set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d ; done + @if [ -d d-link/$(TARGET_ARCH) ] ; then \ + set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d ; done \ + fi; install: all - install -d $(INSTALL_DIR)/lib - install -d $(INSTALL_DIR)/etc - install -m 755 ./d-link/$(DLINKER).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/ - install -m 644 ./libdl/$(LIBDL).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/ - (cd $(INSTALL_DIR)/lib/;ln -sf $(DLINKER).$(LDSO_VMAJOR) $(DLINKER)) - (cd $(INSTALL_DIR)/lib/;ln -sf $(LIBDL).$(LDSO_VMAJOR) $(LIBDL)) + @if [ -d d-link/$(TARGET_ARCH) ] ; then \ + install -d $(INSTALL_DIR)/lib + install -d $(INSTALL_DIR)/etc + install -m 755 ./d-link/$(DLINKER).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/ + install -m 644 ./libdl/$(LIBDL).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/ + (cd $(INSTALL_DIR)/lib/;ln -sf $(DLINKER).$(LDSO_VMAJOR) $(DLINKER)) + (cd $(INSTALL_DIR)/lib/;ln -sf $(LIBDL).$(LDSO_VMAJOR) $(LIBDL)) + fi; +d-link: + @if [ -d d-link/$(TARGET_ARCH) ] ; then \ + do $(MAKE) -C d-link ; done \ + fi; clean: set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d $@ ; done |