2
0

Makefile 638 B

123456789101112131415161718192021222324252627282930313233343536373839
  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/expat
  8. include $(BLDDIR)/config.mk
  9. # Build up SUBDIRS:
  10. SUBDIRS = gennmtab xmlparse xmltok
  11. default: all
  12. .PHONY: all clean distclean tags distdir intall check dep
  13. all: $(SUBDIRS:%=%/all)
  14. clean: $(SUBDIRS:%=%/clean) clean-common
  15. distclean: $(SUBDIRS:%=%/distclean) distclean-common
  16. tags: $(SUBDIRS:%=%/tags) TAGS
  17. DISTFILES =
  18. distdir: distdir-common
  19. install: $(SUBDIRS:%=%/install)
  20. check:
  21. dep: $(SUBDIRS:%=%/dep)
  22. include $(SRCDIR)/common.mk