3 ### Common definitions for build scripts
5 ### (c) 2013 Straylight/Edgeware
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of Catacomb.
12 ### Catacomb is free software; you can redistribute it and/or modify
13 ### it under the terms of the GNU Library General Public License as
14 ### published by the Free Software Foundation; either version 2 of the
15 ### License, or (at your option) any later version.
17 ### Catacomb is distributed in the hope that it will be useful,
18 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ### GNU Library General Public License for more details.
22 ### You should have received a copy of the GNU Library General Public
23 ### License along with Catacomb; if not, write to the Free
24 ### Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
25 ### MA 02111-1307, USA.
27 ###--------------------------------------------------------------------------
28 ### Miscellaneous useful definitions.
30 ## Installation directories.
31 archincludedir = $(pkglibdir)/include
33 ###--------------------------------------------------------------------------
34 ### Initial values of common variables.
39 MAINTAINERCLEANFILES =
48 nodist_pkginclude_HEADERS =
50 nodist_archinclude_HEADERS =
52 ###--------------------------------------------------------------------------
53 ### Machinery for precomputations.
55 ## Location of precomputed tables.
56 precomp = $(top_srcdir)/precomp
58 ## Precomputed source code files.
60 EXTRA_DIST += $(PRECOMPS)
61 BUILT_SOURCES += $(PRECOMPS)
62 MAINTAINERCLEANFILES += $(PRECOMPS)
64 ## Programs which make the tables. These should be made by an explicit
65 ## recursive `make' call in the relevant rule, so that we don't try to
66 ## reconstruct them unnecessarily.
68 EXTRA_PROGRAMS += $(PRECOMP_PROGS)
69 CLEANFILES += $(PRECOMP_PROGS)
71 ###--------------------------------------------------------------------------
72 ### Standard configuration substitutions.
74 ## Substitute tags in files.
75 confsubst = $(top_srcdir)/config/confsubst
78 prefix=$(prefix) exec_prefix=$(exec_prefix) \
79 libdir=$(libdir) includedir=$(includedir) \
80 PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
81 CATACOMB_LIBS="$(CATACOMB_LIBS)"
83 V_SUBST = $(V_SUBST_$(V))
84 V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
85 V_SUBST_0 = @echo " SUBST $@";
86 SUBST = $(V_SUBST)$(confsubst)
88 ###--------------------------------------------------------------------------
96 -I$(top_srcdir)/base \
98 -I$(top_srcdir)/math \
99 -I$(top_builddir)/math \
100 -I$(top_srcdir)/misc \
101 -I$(top_srcdir)/pub \
102 -I$(top_srcdir)/rand \
103 -I$(top_srcdir)/symm \
104 -I$(top_srcdir)/symm/modes -I$(top_builddir)/symm/modes
106 AM_CPPFLAGS = $(CATACOMB_INCLUDES)
108 ###--------------------------------------------------------------------------
111 SUFFIXES += .c .t$(EXEEXT) .to
113 $(AM_V_CC)$(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $< -o $@
115 $(AM_V_CCLD)$(LINK) $< $(TEST_LIBS) $(top_builddir)/libcatacomb.la \
116 $(mLib_LIBS) $(CATACOMB_LIBS) $(LIBS)
118 CLEANFILES += *.to *.t$(EXEEXT)
120 ###----- That's all, folks --------------------------------------------------