Makefile 854 B

12345678910111213141516171819202122232425262728
  1. TOPDIR=../
  2. include Rules.mak
  3. SUBDIRS = util d-link libdl # man
  4. all:
  5. @if [ -d $(TOPDIR)ld.so-1/d-link/$(TARGET_ARCH) ] ; then \
  6. set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d ; done \
  7. fi;
  8. install: all
  9. if [ -d $(TOPDIR)ld.so-1/d-link/$(TARGET_ARCH) ] ; then \
  10. install -d $(INSTALL_DIR)/lib $(INSTALL_DIR)/etc ; \
  11. install -m 755 $(TOPDIR)ld.so-1/d-link/$(DLINKER).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/ ; \
  12. install -m 644 $(TOPDIR)ld.so-1/libdl/$(LIBDL).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/ ; \
  13. (cd $(INSTALL_DIR)/lib/;ln -sf $(DLINKER).$(LDSO_VMAJOR) $(DLINKER)) ; \
  14. (cd $(INSTALL_DIR)/lib/;ln -sf $(LIBDL).$(LDSO_VMAJOR) $(LIBDL)) ; \
  15. fi;
  16. ldso:
  17. @if [ -d $(TOPDIR)ld.so-1/d-link/$(TARGET_ARCH) ] ; then \
  18. $(MAKE) -C d-link; \
  19. fi;
  20. clean:
  21. set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d $@ ; done
  22. -find . -name '*~' | xargs rm -f