math/mpreduce.h: Missing include files.
[u/mdw/catacomb] / vars.am
diff --git a/vars.am b/vars.am
index de79545..b0cd53c 100644 (file)
--- a/vars.am
+++ b/vars.am
@@ -46,13 +46,34 @@ SUFFIXES             =
 TESTS                   =
 BUILT_SOURCES           =
 
 TESTS                   =
 BUILT_SOURCES           =
 
+EXTRA_PROGRAMS          =
 noinst_PROGRAMS                 =
 noinst_PROGRAMS                 =
+check_PROGRAMS          =
 pkginclude_HEADERS      =
 nodist_pkginclude_HEADERS =
 archinclude_HEADERS     =
 nodist_archinclude_HEADERS =
 
 ###--------------------------------------------------------------------------
 pkginclude_HEADERS      =
 nodist_pkginclude_HEADERS =
 archinclude_HEADERS     =
 nodist_archinclude_HEADERS =
 
 ###--------------------------------------------------------------------------
+### Machinery for precomputations.
+
+## Location of precomputed tables.
+precomp                         = $(top_srcdir)/precomp
+
+## Precomputed source code files.
+PRECOMPS                =
+EXTRA_DIST             += $(PRECOMPS)
+BUILT_SOURCES          += $(PRECOMPS)
+MAINTAINERCLEANFILES   += $(PRECOMPS)
+
+## Programs which make the tables.  These should be made by an explicit
+## recursive `make' call in the relevant rule, so that we don't try to
+## reconstruct them unnecessarily.
+PRECOMP_PROGS           =
+EXTRA_PROGRAMS         += $(PRECOMP_PROGS)
+CLEANFILES             += $(PRECOMP_PROGS)
+
+###--------------------------------------------------------------------------
 ### Standard configuration substitutions.
 
 ## Substitute tags in files.
 ### Standard configuration substitutions.
 
 ## Substitute tags in files.
@@ -74,6 +95,7 @@ SUBST = $(V_SUBST)$(confsubst)
 
 CATACOMB_INCLUDES       = \
        -I$(top_srcdir) \
 
 CATACOMB_INCLUDES       = \
        -I$(top_srcdir) \
+       -I$(precomp) \
        -I$(top_srcdir)/base \
        -I$(top_srcdir)/key \
        -I$(top_srcdir)/math \
        -I$(top_srcdir)/base \
        -I$(top_srcdir)/key \
        -I$(top_srcdir)/math \
@@ -92,9 +114,8 @@ AM_CPPFLAGS           = $(CATACOMB_INCLUDES)
 SUFFIXES               += .c .$t .to
 .c.to:
        $(AM_V_CC)$(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $< -o $@
 SUFFIXES               += .c .$t .to
 .c.to:
        $(AM_V_CC)$(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $< -o $@
-.to.$t: libcatacomb.la
-       $(AM_V_CCLD)$(LINK) $< \
-               $(TEST_LIBS) $(top_builddir)/libcatacomb.la \
+.to.$t:
+       $(AM_V_CCLD)$(LINK) $< $(TEST_LIBS) $(top_builddir)/libcatacomb.la \
                $(mLib_LIBS) $(CATACOMB_LIBS) $(LIBS)
 .PRECIOUS: %.to
 CLEANFILES             += *.to *.$t
                $(mLib_LIBS) $(CATACOMB_LIBS) $(LIBS)
 .PRECIOUS: %.to
 CLEANFILES             += *.to *.$t