Makefile 631 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ifeq ($(SRCDIR),)
  2. updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
  3. LIBDIR := $(call updir,$(CURDIR))
  4. SRCDIR := $(call updir,$(LIBDIR))
  5. BLDDIR := $(SRCDIR)
  6. endif
  7. SUBDIR := lib/abyss
  8. include $(BLDDIR)/config.mk
  9. SUBDIRS = src
  10. default: all
  11. .PHONY: all
  12. all: $(SUBDIRS:%=%/all)
  13. .PHONY: clean
  14. clean: $(SUBDIRS:%=%/clean) clean-common
  15. .PHONY: distclean
  16. distclean: $(SUBDIRS:%=%/distclean) distclean-common
  17. .PHONY: tags
  18. tags: $(SUBDIRS:%=%/tags) TAGS
  19. DISTFILES =
  20. .PHONY: distdir
  21. distdir: distdir-common
  22. .PHONY: install
  23. install: $(SUBDIRS:%=%/install)
  24. .PHONY: dep
  25. dep: $(SUBDIRS:%=%/dep)
  26. include $(SRCDIR)/common.mk