1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
include $(top_srcdir)/Makefile.general
INCLUDES += -I$(top_srcdir)/logs
EXTRA_DIST = mkmodinfo.sh module-info.cc
DIST_SUBDIRS = $(ALL_INPUT_MODULES)
# We must let SUBDIRS empty in order to have dirs included in distribution
SUBDIRS =
noinst_LIBRARIES = libmodules.a
libmodules_a_SOURCES = wfinmodule.h module.cc common.h common.cc
noinst_DATA = static_modules dynamic_modules
module.o: module-info.cc module.cc
# module-info.cc must be regenerated if a new configure as been launched
# (potentially changing static modules list)
# If module-info.cc depends on $(top_srcdir)/stamp-h rather than
# config.status, make distclean does not work, as stamp-h is removed
# before entering in this directory.
module-info.cc: mkmodinfo.sh $(top_builddir)/config.status
$(srcdir)/mkmodinfo.sh $(STATIC_INPUT_MODULES) > $@
BUILT_SOURCES = module-info.cc
.PHONY: static_modules dynamic_modules
static_modules:
for module in $(STATIC_INPUT_MODULES) x ; do \
if test "$$module" != "x"; then \
( cd $$module && $(MAKE) $(AM_MAKEFLAGS) libwf$${module}.a ) \
|| { fail=yes; exit 1; } \
fi \
done && test -z "$$fail"
dynamic_modules:
for module in $(DYNAMIC_INPUT_MODULES) x ; do \
if test "$$module" != "x"; then \
( cd $$module && $(MAKE) $(AM_MAKEFLAGS) libwf$${module}.la ) \
|| { fail=yes; exit 1; } \
fi \
done && test -z "$$fail"
install-data-local:
for module in $(DYNAMIC_INPUT_MODULES) x ; do \
if test "$$module" != "x"; then \
( cd $$module && $(MAKE) install-data ) \
|| { fail=yes; exit 1; } \
fi \
done && test -z "$$fail"
clean distclean maintainer-clean:
for module in $(ALL_INPUT_MODULES) x ; do \
if test "$$module" != "x"; then \
( cd $$module && $(MAKE) $@ ) \
|| { fail=yes; exit 1; } \
fi \
done && test -z "$$fail"
distclean-local:
$(RM) module-info.cc
|