1# 2# Makefile for module 3# 4 5@SET_MAKE@ 6 7SHELL = /bin/sh 8VPATH = @srcdir@:@top_srcdir@/include:@top_srcdir@/@configdir@/include 9srcdir = @srcdir@ 10top_srcdir = @top_srcdir@ 11configdir = @top_srcdir@/@configdir@ 12 13include $(configdir)/@common_makefile@ 14 15 16all: include-all libsrc-all apps-all tests-all 17 18install: install-bin install-doc install-support 19 20install-bin: apps-install 21 22install-doc: docs-install 23 24install-data: data-install 25 26install-etc: etc-install 27 28install-include: include-install 29 30install-lib: libsrc-install install-include 31 32install-support: install-data install-etc 33 34 35include-all: 36 (cd include && $(MAKE) ARCH="$(ARCH)" all) 37 38libsrc-all: include-all 39 (cd libsrc && $(MAKE) ARCH="$(ARCH)" all) 40 41apps-all: libsrc-all 42 (cd apps && $(MAKE) ARCH="$(ARCH)" all) 43 44tests-all: libsrc-all 45 (cd tests && $(MAKE) ARCH="$(ARCH)" all) 46 47 48include-install: 49 (cd include && $(MAKE) ARCH="$(ARCH)" install) 50 51libsrc-install: libsrc-all 52 (cd libsrc && $(MAKE) ARCH="$(ARCH)" install) 53 54apps-install: apps-all 55 (cd apps && $(MAKE) ARCH="$(ARCH)" install) 56 57docs-install: 58 (cd docs && $(MAKE) install) 59 60data-install: 61 (cd data && $(MAKE) install) 62 63etc-install: 64 (cd etc && $(MAKE) install) 65 66 67clean: 68 (cd include && $(MAKE) clean) 69 (cd libsrc && $(MAKE) clean) 70 (cd apps && $(MAKE) clean) 71 (cd tests && $(MAKE) clean) 72 (cd docs && $(MAKE) clean) 73 (cd data && $(MAKE) clean) 74 (cd etc && $(MAKE) clean) 75 rm -f $(TRASH) 76 77distclean: 78 (cd include && $(MAKE) distclean) 79 (cd libsrc && $(MAKE) distclean) 80 (cd apps && $(MAKE) distclean) 81 (cd tests && $(MAKE) distclean) 82 (cd docs && $(MAKE) distclean) 83 (cd data && $(MAKE) distclean) 84 (cd etc && $(MAKE) distclean) 85 rm -f $(DISTTRASH) 86 87dependencies: 88 (cd libsrc && touch $(DEP) && $(MAKE) dependencies) 89 (cd apps && touch $(DEP) && $(MAKE) dependencies) 90 (cd tests && touch $(DEP) && $(MAKE) dependencies) 91 92check: 93 (cd tests && $(MAKE) check) 94