Makefile 581 B

1234567891011121314151617181920
  1. TOPDIR=../
  2. include Rules.mak
  3. SUBDIRS = util d-link libdl # man
  4. all:
  5. set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d ; done
  6. install: all
  7. install -d $(INSTALL_DIR)/lib
  8. install -d $(INSTALL_DIR)/etc
  9. install -m 755 ./d-link/$(DLINKER).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/
  10. install -m 644 ./libdl/$(LIBDL).$(LDSO_VMAJOR) $(INSTALL_DIR)/lib/
  11. (cd $(INSTALL_DIR)/lib/;ln -sf $(DLINKER).$(LDSO_VMAJOR) $(DLINKER))
  12. (cd $(INSTALL_DIR)/lib/;ln -sf $(LIBDL).$(LDSO_VMAJOR) $(LIBDL))
  13. clean:
  14. set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d $@ ; done
  15. -find . -name '*~' | xargs rm -f