Makefile.am 6.44 KB
Newer Older
1
## Vaucanson, a generic library for finite state machines.
2
## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008 The Vaucanson Group.
3
4
5
6
7
8
9
10
11
12
13
##
## 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.

14
include $(top_srcdir)/vaucanson.mk
15

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

19
20
bin_PROGRAMS = vcsn-char-b vcsn-char-z vcsn-char-fmp-b \
               vcsn-int-b vcsn-int-z vcsn-int-fmp-b \
Jerome Galtier's avatar
Jerome Galtier committed
21
22
23
	       vcsn-int-fmp-z vcsn-char-fmp-z \
	       vcsn-char-char-b vcsn-char-int-b \
	       vcsn-int-int-b vcsn-int-char-b
24
25
26
27
28

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


50
51
52
53
54
55
56
57
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
vcsn_char_b_LDADD = $(LDADD)				\
		    $(top_builddir)/lib/libvcsn-b.la	\
		    $(top_builddir)/lib/libkrat_exp.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
66
vcsn_char_z_LDADD = $(LDADD)				\
		  $(top_builddir)/lib/libvcsn-z.la	\
67
		  $(top_builddir)/lib/libkrat_exp.la
Akim Demaille's avatar
Akim Demaille committed
68

Jerome Galtier's avatar
Jerome Galtier committed
69
70
vcsn_char_fmp_b_SOURCES = $(COMMON_SOURCES) \
			   fmp_commands.cc
71
72
vcsn_char_fmp_b_CPPFLAGS = $(AM_CPPFLAGS) \
			    -DCONTEXT=fmp_transducer -DWITH_TWO_ALPHABETS \
Jerome Galtier's avatar
Jerome Galtier committed
73
			    -DIOAUT_CONTEXT=boolean_automaton \
74
                            -DIOAUT_NAME='"Boolean"' \
Jerome Galtier's avatar
Jerome Galtier committed
75
			    -DRW_CONTEXT=boolean_transducer -DVCSN_USE_LIB
76
77
vcsn_char_fmp_b_LDADD = $(LDADD) \
			 $(top_builddir)/lib/libvcsn-fmp-tdc.la \
Jerome Galtier's avatar
Jerome Galtier committed
78
			 $(top_builddir)/lib/libvcsn-b.la \
79
80
			 $(top_builddir)/lib/libkrat_exp.la

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

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

Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
104
105
106
107
108
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 \
109
110
                      -DNO_PREDEF_ALPHABETS -DVCSN_USE_LIB \
		      -DWITH_WEIGHTS
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
111
vcsn_int_z_LDADD = $(LDADD)				\
112
113
		    $(top_builddir)/lib/libkrat_exp.la  \
		    $(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
123
vcsn_int_fmp_b_LDADD = $(LDADD) \
			$(top_builddir)/lib/libkrat_exp.la \
Jerome Galtier's avatar
Jerome Galtier committed
124
			$(top_builddir)/lib/libvcsn-int-b.la \
125
			$(top_builddir)/lib/libvcsn-int-fmp-tdc.la
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
126

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

Jerome Galtier's avatar
Jerome Galtier committed
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
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 \
			      -DVCSN_USE_LIB
vcsn_char_char_b_LDADD = $(LDADD) \
			  $(top_builddir)/lib/libkrat_exp.la \
			  $(top_builddir)/lib/libvcsn-char-char-b.la

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 \
			     -DVCSN_USE_LIB
vcsn_char_int_b_LDADD = $(LDADD) \
			  $(top_builddir)/lib/libkrat_exp.la \
			  $(top_builddir)/lib/libvcsn-char-int-b.la

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 \
			    -DVCSN_USE_LIB
vcsn_int_int_b_LDADD = $(LDADD) \
			  $(top_builddir)/lib/libkrat_exp.la \
			  $(top_builddir)/lib/libvcsn-int-int-b.la

vcsn_int_char_b_SOURCES = $(COMMON_SOURCES) \
			    ratexp_commands.hh \
			    common_automaton_commands.hh \
			    b_commands.cc
vcsn_int_char_b_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=int_char_boolean_automaton \
			     -DVCSN_USE_LIB
vcsn_int_char_b_LDADD = $(LDADD) \
			  $(top_builddir)/lib/libkrat_exp.la \
			  $(top_builddir)/lib/libvcsn-int-char-b.la

Akim Demaille's avatar
Akim Demaille committed
180
181
182
183
184
185
## ------ ##
## argp.  ##
## ------ ##

# Be sure to fetch the argp we ship.
AM_CPPFLAGS += -I$(top_srcdir)/argp
186
LDADD = $(top_builddir)/argp/libargp.la