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 ## Some convenient abbreviations for file suffixes.
35 ## Installation directories.
36 archincludedir = $(pkglibdir)/include
38 ###--------------------------------------------------------------------------
39 ### Initial values of common variables.
44 MAINTAINERCLEANFILES =
51 nodist_pkginclude_HEADERS =
53 nodist_archinclude_HEADERS =
55 ###--------------------------------------------------------------------------
56 ### Standard configuration substitutions.
58 ## Substitute tags in files.
59 confsubst = $(top_srcdir)/config/confsubst
62 prefix=$(prefix) exec_prefix=$(exec_prefix) \
63 libdir=$(libdir) includedir=$(includedir) \
64 PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
65 CATACOMB_LIBS="$(CATACOMB_LIBS)"
67 V_SUBST = $(V_SUBST_$(V))
68 V_SUBST_ = $(V_SUBST_$(AM_DEFAULT_VERBOSITY))
69 V_SUBST_0 = @echo " SUBST $@";
70 SUBST = $(V_SUBST)$(confsubst)
72 ###--------------------------------------------------------------------------
77 -I$(top_srcdir)/base \
79 -I$(top_srcdir)/math \
80 -I$(top_builddir)/math \
81 -I$(top_srcdir)/misc \
83 -I$(top_srcdir)/rand \
84 -I$(top_srcdir)/symm \
85 -I$(top_srcdir)/symm/modes -I$(top_builddir)/symm/modes
87 AM_CPPFLAGS = $(CATACOMB_INCLUDES)
89 ###--------------------------------------------------------------------------
92 SUFFIXES += .c .$t .to
94 $(AM_V_CC)$(COMPILE) -c -DTEST_RIG -DSRCDIR=\"$(srcdir)\" $< -o $@
95 .to.$t: libcatacomb.la
96 $(AM_V_CCLD)$(LINK) $< \
97 $(TEST_LIBS) $(top_builddir)/libcatacomb.la \
98 $(mLib_LIBS) $(CATACOMB_LIBS) $(LIBS)
100 CLEANFILES += *.to *.$t
102 ###----- That's all, folks --------------------------------------------------