Makefile.am 7.02 KB
Newer Older
1
## Vaucanson, a generic library for finite state machines.
2
3
## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008,
## 2009 The Vaucanson Group.
4
5
6
7
8
9
10
11
12
13
14
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
## as published by the Free Software Foundation; either version 2
## of the License, or (at your option) any later version.
##
## The complete GNU General Public Licence Notice can be found as the
## `COPYING' file in the root directory.
##
## The Vaucanson Group consists of people listed in the `AUTHORS' file.

15
include $(top_srcdir)/vaucanson.mk
16

17
AM_CPPFLAGS += $(CXXFLAGS_OPTIMIZE)
18
AM_LDFLAGS += $(TERMLIBS)
19

20
21
22
23
24
bin_PROGRAMS = vcsn-char-b vcsn-char-z vcsn-char-r vcsn-char-fmp-b 	\
               vcsn-int-b vcsn-int-z vcsn-int-fmp-b 			\
	       vcsn-int-fmp-z vcsn-char-fmp-z 				\
	       vcsn-char-char-b vcsn-int-int-b 				\
	       vcsn-char-int-b vcsn-char-zmin vcsn-char-zmax
25
26
27
28
29

COMMON_SOURCES = commands.hh			\
		 commands_macros.hh		\
		 common_commands.hh		\
		 common.hh			\
30
31
		 edition_commands.hh		\
		 edition_commands.hxx		\
Guillaume Leroi's avatar
Guillaume Leroi committed
32
		 library_commands.hh		\
33
34
		 getters.hh			\
		 getters.hxx			\
35
36
		 interface.cc			\
		 interface.hh			\
37
		 main.cc			\
38
		 predefined_alphabets.hh	\
39
		 predefined_alphabets.hxx	\
40
41
42
43
44
45
46
		 pipe.hh			\
		 pipe.hxx			\
		 pipe_command_sequence.hh	\
		 pipe_command_sequence.hxx	\
		 pipe_getters.hh		\
		 pipe_getters.hxx		\
		 pipe_writers.hh		\
47
48
49
		 pipe_writers.hxx		\
		 parser_options.hh		\
		 parser_options.hxx
50
51


52
53
54
55
56
vcsn_char_b_SOURCES = $(COMMON_SOURCES)			\
		      ratexp_commands.hh		\
	              common_automaton_commands.hh	\
                      b_commands.cc
vcsn_char_b_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=boolean_automaton -DVCSN_USE_LIB
57
vcsn_char_b_LDADD = $(LDADD) $(top_builddir)/lib/libvcsn-b.la
58

59
60
61
62
vcsn_char_z_SOURCES = $(COMMON_SOURCES)			\
		      ratexp_commands.hh		\
                      common_automaton_commands.hh 	\
                      z_commands.cc
63
64
vcsn_char_z_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=z_automaton -DVCSN_USE_LIB \
			-DWITH_WEIGHTS
65
vcsn_char_z_LDADD = $(LDADD) $(top_builddir)/lib/libvcsn-z.la
Akim Demaille's avatar
Akim Demaille committed
66

67
68
69
70
71
72
vcsn_char_r_SOURCES = $(COMMON_SOURCES)			\
		      ratexp_commands.hh		\
                      common_automaton_commands.hh 	\
                      r_commands.cc
vcsn_char_r_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=r_automaton -DVCSN_USE_LIB \
			-DWITH_WEIGHTS
73
vcsn_char_r_LDADD = $(LDADD) $(top_builddir)/lib/libvcsn-r.la
74

Jerome Galtier's avatar
Jerome Galtier committed
75
76
vcsn_char_fmp_b_SOURCES = $(COMMON_SOURCES) \
			   fmp_commands.cc
77
78
vcsn_char_fmp_b_CPPFLAGS = $(AM_CPPFLAGS) \
			    -DCONTEXT=fmp_transducer -DWITH_TWO_ALPHABETS \
Jerome Galtier's avatar
Jerome Galtier committed
79
			    -DIOAUT_CONTEXT=boolean_automaton \
80
                            -DIOAUT_NAME='"Boolean"' \
Jerome Galtier's avatar
Jerome Galtier committed
81
			    -DRW_CONTEXT=boolean_transducer -DVCSN_USE_LIB
82
83
vcsn_char_fmp_b_LDADD = $(LDADD) \
			 $(top_builddir)/lib/libvcsn-fmp-tdc.la \
84
			 $(top_builddir)/lib/libvcsn-b.la
85

Jerome Galtier's avatar
Jerome Galtier committed
86
87
vcsn_char_fmp_z_SOURCES = $(COMMON_SOURCES) \
			   fmp_commands.cc
88
89
vcsn_char_fmp_z_CPPFLAGS = $(AM_CPPFLAGS) \
			    -DCONTEXT=z_fmp_transducer -DWITH_TWO_ALPHABETS \
Jerome Galtier's avatar
Jerome Galtier committed
90
			    -DIOAUT_CONTEXT=z_automaton \
91
                            -DIOAUT_NAME='"Z"' \
Jerome Galtier's avatar
Jerome Galtier committed
92
			    -DRW_CONTEXT=z_transducer -DVCSN_USE_LIB \
93
94
			    -DWITH_WEIGHTS
vcsn_char_fmp_z_LDADD = $(LDADD) \
Jerome Galtier's avatar
Jerome Galtier committed
95
			 $(top_builddir)/lib/libvcsn-z-fmp-tdc.la \
96
			 $(top_builddir)/lib/libvcsn-z.la
97

98
99
100
101
vcsn_int_b_SOURCES = $(COMMON_SOURCES)			\
		      ratexp_commands.hh		\
	              common_automaton_commands.hh	\
                      b_commands.cc
102
vcsn_int_b_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=int_boolean_automaton \
103
                      -DNO_PREDEF_ALPHABETS -DVCSN_USE_LIB
104
vcsn_int_b_LDADD = $(LDADD) $(top_builddir)/lib/libvcsn-int-b.la
105

Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
106
107
108
109
110
vcsn_int_z_SOURCES = $(COMMON_SOURCES)			\
		      ratexp_commands.hh		\
	              common_automaton_commands.hh	\
                      z_commands.cc
vcsn_int_z_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=int_z_automaton \
111
112
                      -DNO_PREDEF_ALPHABETS -DVCSN_USE_LIB \
		      -DWITH_WEIGHTS
113
vcsn_int_z_LDADD = $(LDADD) $(top_builddir)/lib/libvcsn-int-z.la
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
114

Jerome Galtier's avatar
Jerome Galtier committed
115
116
vcsn_int_fmp_b_SOURCES = $(COMMON_SOURCES) \
			  fmp_commands.cc
117
118
vcsn_int_fmp_b_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=int_fmp_transducer \
			   -DNO_PREDEF_ALPHABETS -DWITH_TWO_ALPHABETS \
Jerome Galtier's avatar
Jerome Galtier committed
119
			   -DIOAUT_CONTEXT=int_boolean_automaton \
120
                           -DIOAUT_NAME='"Boolean"' \
Jerome Galtier's avatar
Jerome Galtier committed
121
			   -DRW_CONTEXT=int_boolean_transducer -DVCSN_USE_LIB
122
vcsn_int_fmp_b_LDADD = $(LDADD) \
Jerome Galtier's avatar
Jerome Galtier committed
123
			$(top_builddir)/lib/libvcsn-int-b.la \
124
			$(top_builddir)/lib/libvcsn-int-fmp-tdc.la
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
125

Jerome Galtier's avatar
Jerome Galtier committed
126
127
vcsn_int_fmp_z_SOURCES = $(COMMON_SOURCES) \
			  fmp_commands.cc
128
129
130
vcsn_int_fmp_z_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=int_z_fmp_transducer \
			   -DNO_PREDEF_ALPHABETS -DWITH_TWO_ALPHABETS \
			   -DIOAUT_CONTEXT=int_z_automaton \
131
                           -DIOAUT_NAME='"Z"' \
Jerome Galtier's avatar
Jerome Galtier committed
132
133
			   -DRW_CONTEXT=int_z_transducer -DWITH_WEIGHTS \
			   -DVCSN_USE_LIB
134
vcsn_int_fmp_z_LDADD = $(LDADD) \
Jerome Galtier's avatar
Jerome Galtier committed
135
			$(top_builddir)/lib/libvcsn-int-z.la \
136
			$(top_builddir)/lib/libvcsn-int-z-fmp-tdc.la
Guillaume Leroi's avatar
Guillaume Leroi committed
137

Jerome Galtier's avatar
Jerome Galtier committed
138
139
140
141
142
vcsn_char_char_b_SOURCES = $(COMMON_SOURCES) \
			    ratexp_commands.hh \
			    common_automaton_commands.hh \
			    b_commands.cc
vcsn_char_char_b_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=char_char_boolean_automaton \
143
			      -DVCSN_USE_LIB -DNO_PREDEF_ALPHABETS \
144
			      -DFIRST_PROJECTION_CONTEXT=boolean_automaton \
145
146
			      -DSECOND_PROJECTION_CONTEXT=boolean_automaton \
			      -DNO_SECOND_OPERATOR
147
vcsn_char_char_b_LDADD = $(LDADD) $(top_builddir)/lib/libvcsn-char-char-b.la
Jerome Galtier's avatar
Jerome Galtier committed
148

149
150
151
152
153
vcsn_char_int_b_SOURCES = $(COMMON_SOURCES) \
			    ratexp_commands.hh \
			    common_automaton_commands.hh \
			    b_commands.cc
vcsn_char_int_b_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=char_int_boolean_automaton \
154
			      -DVCSN_USE_LIB -DNO_PREDEF_ALPHABETS \
155
156
			      -DFIRST_PROJECTION_CONTEXT=boolean_automaton \
			      -DSECOND_PROJECTION_CONTEXT=int_boolean_automaton
157
vcsn_char_int_b_LDADD = $(LDADD) $(top_builddir)/lib/libvcsn-char-int-b.la
158

Jerome Galtier's avatar
Jerome Galtier committed
159
160
161
162
163
vcsn_int_int_b_SOURCES = $(COMMON_SOURCES) \
			    ratexp_commands.hh \
			    common_automaton_commands.hh \
			    b_commands.cc
vcsn_int_int_b_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=int_int_boolean_automaton \
164
			    -DVCSN_USE_LIB -DNO_PREDEF_ALPHABETS \
165
			    -DFIRST_PROJECTION_CONTEXT=int_boolean_automaton \
166
167
			    -DSECOND_PROJECTION_CONTEXT=int_boolean_automaton \
			    -DNO_SECOND_OPERATOR
168
vcsn_int_int_b_LDADD = $(LDADD) $(top_builddir)/lib/libvcsn-int-int-b.la
169
170


171
172
173
174
175
176

vcsn_char_zmin_SOURCES = $(COMMON_SOURCES)			\
		      ratexp_commands.hh			\
	              common_automaton_commands.hh		\
                      b_commands.cc
vcsn_char_zmin_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=z_min_plus_automaton -DVCSN_USE_LIB
177
vcsn_char_zmin_LDADD = $(LDADD) $(top_builddir)/lib/libvcsn-z-min.la
178
179
180
181
182
183

vcsn_char_zmax_SOURCES = $(COMMON_SOURCES)			\
		      ratexp_commands.hh			\
	              common_automaton_commands.hh		\
                      b_commands.cc
vcsn_char_zmax_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=z_max_plus_automaton -DVCSN_USE_LIB
184
vcsn_char_zmax_LDADD = $(LDADD) $(top_builddir)/lib/libvcsn-z-max.la
185
186
187



188
LDADD = $(top_builddir)/gnulib/libgnu.la $(top_builddir)/lib/libvcsn-common.la
189
AM_CPPFLAGS += -I$(top_srcdir)/gnulib