fix, initialise auto_remove_nodes upon ase_make_digraph()
[sxemacs] / modules / ase / Makefile.am
1 ## This file is part of SXEmacs.
2
3 ## Redistribution and use in source and binary forms, with or without
4 ## modification, are permitted provided that the following conditions
5 ## are met:
6 ##
7 ## 1. Redistributions of source code must retain the above copyright
8 ##    notice, this list of conditions and the following disclaimer.
9 ##
10 ## 2. Redistributions in binary form must reproduce the above copyright
11 ##    notice, this list of conditions and the following disclaimer in the
12 ##    documentation and/or other materials provided with the distribution.
13 ##
14 ## 3. Neither the name of the author nor the names of any contributors
15 ##    may be used to endorse or promote products derived from this
16 ##    software without specific prior written permission.
17 ##
18 ## THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
19 ## IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 ## WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21 ## DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 ## FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 ## CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 ## SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
25 ## BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 ## WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
27 ## OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
28 ## IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30 ## Process this file with automake to produce Makefile.in
31
32 # Help the Developers and yourself. Just use the C locale and settings
33 # for the compilation. They can still be overriden by make LANG=<whatever>
34 # but that is general a not very good idea
35 LANG=C
36 LC_ALL=C
37
38 MODVER=0.0.0
39
40 builddir = @builddir@
41 srcdir = @srcdir@
42 top_builddir = @top_builddir@
43 top_build_prefix = $(top_builddir)/
44 top_srcdir = @top_srcdir@
45 abs_builddir = @abs_builddir@
46 abs_top_builddir = @abs_top_builddir@
47 abs_top_srcdir = @abs_top_srcdir@
48 headerdir = $(includedir)/$(instvarsepdir)
49
50 AM_CFLAGS = $(dll_cflags) -DIMA_MODULE -DUSE_SXEMACS_CONFIG_H
51 AM_CPPFLAGS = -I$(srcdir) -I$(builddir)  -I$(top_srcdir)/src \
52         -I$(top_builddir)/src $(SXEMACS_INCLUDES) $(c_switch_all)
53 AM_LDFLAGS = -module $(XCCLDFLAGS)
54
55 ## all the mods
56 module_LTLIBRARIES =
57
58 BUILT_SOURCES =
59
60 header_HEADERS = ase.h ase-cartesian.h ase-interval.h ase-metric.h \
61         ase-neighbourhood.h ase-permutation.h ase-resclass.h \
62         ase-digraph.h ase-heap.h
63
64 module_LTLIBRARIES += ase-mono.la
65 ase_mono_la_SOURCES = ase.c ase-cartesian.c ase-interval.c ase-metric.c \
66         ase-neighbourhood.c ase-permutation.c ase-resclass.c ase-digraph.c \
67         ase-heap.c
68 nodist_ase_mono_la_SOURCES = ase.doc.c ase-cartesian.doc.c              \
69         ase-interval.doc.c ase-metric.doc.c ase-neighbourhood.doc.c     \
70         ase-permutation.doc.c ase-resclass.doc.c ase-digraph.doc.c      \
71         ase-heap.doc.c
72 ase_mono_la_CFLAGS = $(AM_CFLAGS) -DEMOD_ASE_MONOMOD
73
74 module_LTLIBRARIES += ase.la
75 ase_la_SOURCES = ase.c
76 nodist_ase_la_SOURCES = ase.doc.c
77 BUILT_SOURCES += ase.doc.c
78
79 module_LTLIBRARIES += ase-set.la
80 ase_set_la_SOURCES = ase-set.c ase-set.h
81 ase_set_la_SOURCES += ase-cartesian.c ase-cartesian.h
82 ase_set_la_SOURCES += ase-interval.c ase-interval.h
83 ase_set_la_SOURCES += ase-metric.c ase-metric.h
84 ase_set_la_SOURCES += ase-neighbourhood.c ase-neighbourhood.h
85 nodist_ase_set_la_SOURCES = ase-set.doc.c                               \
86         ase-cartesian.doc.c ase-interval.doc.c ase-metric.doc.c         \
87         ase-neighbourhood.doc.c
88 BUILT_SOURCES += ase-set.doc.c ase-cartesian.doc.c ase-interval.doc.c   \
89         ase-neighbourhood.doc.c ase-metric.doc.c
90
91 module_LTLIBRARIES += ase-permutation.la
92 ase_permutation_la_SOURCES = ase-permutation.c
93 nodist_ase_permutation_la_SOURCES = ase-permutation.doc.c
94 ase_permutation_la_DEPENDENCIES = ase.la
95 BUILT_SOURCES += ase-permutation.doc.c
96
97 module_LTLIBRARIES += ase-resclass.la
98 ase_resclass_la_SOURCES = ase-resclass.c
99 nodist_ase_resclass_la_SOURCES = ase-resclass.doc.c
100 ase_resclass_la_DEPENDENCIES = ase.la
101 BUILT_SOURCES += ase-resclass.doc.c
102
103 module_LTLIBRARIES += ase-digraph.la
104 ase_digraph_la_SOURCES = ase-digraph.c
105 nodist_ase_digraph_la_SOURCES = ase-digraph.doc.c
106 ase_digraph_la_DEPENDENCIES = ase.la
107 BUILT_SOURCES += ase-digraph.doc.c
108
109 module_LTLIBRARIES += ase-heap.la
110 ase_heap_la_SOURCES = ase-heap.c
111 nodist_ase_heap_la_SOURCES = ase-heap.doc.c
112 ase_heap_la_DEPENDENCIES = ase.la
113 BUILT_SOURCES += ase-heap.doc.c
114
115 CLEANFILES = $(BUILT_SOURCES) auto-autoloads.el{,c} libase.a
116
117 ## custom rules
118 SXEMACS = $(top_builddir)/src/sxemacs
119 make_docfile = $(MAKE_DOCFILE)
120 BITCH = $(SXEMACS) -batch
121 BITCHENV = EMACSPACKAGEPATH= SOURCE_TREE_ROOT=$(abs_top_srcdir) BUILD_TREE_ROOT=$(abs_top_builddir)
122 BATCH = $(BITCHENV) $(BITCH)
123 RM = rm -f
124
125 #auto-autoloads.el: $(SXEMACS)
126 #       $(BATCH) -no-autoloads \
127 #               -l autoload -f batch-create-autoloads \
128 #               --relative-to $(srcdir) \
129 #               --autoload-dir-name . \
130 #               $(ase_la_SOURCES)
131 #
132 #auto-autoloads.elc: auto-autoloads.el
133 #       $(BATCH) -f batch-byte-compile auto-autoloads.el
134
135 ## The benchmark environment
136 testbmdir = $(top_srcdir)/tests/benchmark
137 bm_environment = $(BATCH) -batch -l ${testbmdir}/benchmark.el
138
139 _ase-heap_benchmarks: ase-heap.la
140         $(bm_environment) -l $(srcdir)/ase-heap-profs.el
141
142 benchmarks: _ase-heap_benchmarks
143
144 #
145 # Help the SXEmacs developers get nice post-processed source files
146
147 ## the libtool approach
148 SUFFIXES = .doc.c
149 .c.doc.c: $(MAKE_DOCFILE)
150         $(make_docfile) --modname $* -E $@ $<
151
152 ## Create preprocessor output (debugging purposes only)
153 .c.i:
154         $(COMPILE) -E -o $@ $<
155
156 ## Create assembler output (debugging purposes only)
157 .c.s:
158         $(COMPILE) -S -c $(cflags) $<