Makefile 501 B

12345678910111213141516171819202122232425
  1. TOPDIR=../
  2. include $(TOPDIR)Rules.mak
  3. SUBDIRS = libdl
  4. ALL_SUBDIRS = util libdl d-link
  5. all:
  6. ifeq ($(strip $(HAVE_SHARED)),true)
  7. @if [ -d $(TOPDIR)ldso/d-link/$(TARGET_ARCH) ] ; then \
  8. $(MAKE) -C d-link; \
  9. fi;
  10. endif
  11. shared:
  12. ifeq ($(strip $(HAVE_SHARED)),true)
  13. @if [ -d $(TOPDIR)ldso/d-link/$(TARGET_ARCH) ] ; then \
  14. set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d ; done \
  15. fi;
  16. endif
  17. clean:
  18. set -e ; for d in $(ALL_SUBDIRS) ; do $(MAKE) -C $$d $@ ; done
  19. -find . -name '*~' | xargs rm -f