Makefile 482 B

12345678910111213141516171819202122
  1. TOPDIR=../
  2. include $(TOPDIR)Rules.mak
  3. include Config.mk
  4. SUBDIRS = util d-link libdl # man
  5. TARGETDIR=/usr/$(TARGET_ARCH)-linux-uclibc
  6. all:
  7. set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d ; done
  8. install: all
  9. mkdir -p $(TARGETDIR)/etc
  10. mkdir -p $(TARGETDIR)/lib
  11. cp -a ./d-link/$(DLINKER).$(LDSO_VMAJOR) \
  12. ./libdl/$(LIBDL).$(LDSO_VMAJOR) $(TARGETDIR)/lib
  13. ./util/ldconfig
  14. clean:
  15. set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d $@ ; done
  16. -find . -name '*~' | xargs rm -f