Makefile 388 B

123456789101112131415161718
  1. TOPDIR=../
  2. include Rules.mak
  3. SUBDIRS = util libdl # d-link man
  4. all:
  5. @if [ -d $(TOPDIR)ldso/d-link/$(TARGET_ARCH) ] ; then \
  6. $(MAKE) -C d-link; \
  7. fi;
  8. shared:
  9. @if [ -d $(TOPDIR)ldso/d-link/$(TARGET_ARCH) ] ; then \
  10. set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d ; done \
  11. fi;
  12. clean:
  13. set -e ; for d in $(SUBDIRS) ; do $(MAKE) -C $$d $@ ; done
  14. -find . -name '*~' | xargs rm -f