Makefile 455 B

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