Makefile.am 4.43 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
21
bin_PROGRAMS = vcsn-char-b vcsn-char-z vcsn-char-fmp-b \
               vcsn-int-b vcsn-int-z vcsn-int-fmp-b \
	       vcsn-int-fmp-z vcsn-char-fmp-z
22
23
24
25
26

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


48
49
50
51
52
53
54
55
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
56

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

67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
vcsn_char_fmp_b_SOURCES = $(COMMON_SOURCES) fmp_commands.cc
vcsn_char_fmp_b_CPPFLAGS = $(AM_CPPFLAGS) \
			    -DCONTEXT=fmp_transducer -DWITH_TWO_ALPHABETS \
			    -DIOAUT_CONTEXT=boolean_automaton	       \
			    -DRW_CONTEXT=boolean_transducer
vcsn_char_fmp_b_LDADD = $(LDADD) \
			 $(top_builddir)/lib/libvcsn-fmp-tdc.la \
			 $(top_builddir)/lib/libkrat_exp.la

vcsn_char_fmp_z_SOURCES = $(COMMON_SOURCES) fmp_commands.cc
vcsn_char_fmp_z_CPPFLAGS = $(AM_CPPFLAGS) \
			    -DCONTEXT=z_fmp_transducer -DWITH_TWO_ALPHABETS \
			    -DIOAUT_CONTEXT=z_automaton	       \
			    -DRW_CONTEXT=z_transducer \
			    -DWITH_WEIGHTS
vcsn_char_fmp_z_LDADD = $(LDADD) \
			 $(top_builddir)/lib/libvcsn-fmp-tdc.la \
			 $(top_builddir)/lib/libkrat_exp.la
85

86
87
88
89
vcsn_int_b_SOURCES = $(COMMON_SOURCES)			\
		      ratexp_commands.hh		\
	              common_automaton_commands.hh	\
                      b_commands.cc
90
vcsn_int_b_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=int_boolean_automaton \
91
                      -DNO_PREDEF_ALPHABETS -DVCSN_USE_LIB
92
vcsn_int_b_LDADD = $(LDADD)				\
93
94
		    $(top_builddir)/lib/libkrat_exp.la  \
		    $(top_builddir)/lib/libvcsn-int-b.la
95

Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
96
97
98
99
100
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 \
101
102
                      -DNO_PREDEF_ALPHABETS -DVCSN_USE_LIB \
		      -DWITH_WEIGHTS
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
103
vcsn_int_z_LDADD = $(LDADD)				\
104
105
		    $(top_builddir)/lib/libkrat_exp.la  \
		    $(top_builddir)/lib/libvcsn-int-z.la
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
106

107
108
109
110
111
112
113
vcsn_int_fmp_b_SOURCES = $(COMMON_SOURCES) fmp_commands.cc
vcsn_int_fmp_b_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=int_fmp_transducer \
			   -DNO_PREDEF_ALPHABETS -DWITH_TWO_ALPHABETS \
			   -DIOAUT_CONTEXT=int_boolean_automaton
vcsn_int_fmp_b_LDADD = $(LDADD) \
			$(top_builddir)/lib/libkrat_exp.la \
			$(top_builddir)/lib/libvcsn-int-fmp-tdc.la
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
114

115
116
117
118
119
120
121
122
vcsn_int_fmp_z_SOURCES = $(COMMON_SOURCES) fmp_commands.cc
vcsn_int_fmp_z_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=int_z_fmp_transducer \
			   -DNO_PREDEF_ALPHABETS -DWITH_TWO_ALPHABETS \
			   -DIOAUT_CONTEXT=int_z_automaton \
			   -DWITH_WEIGHTS
vcsn_int_fmp_z_LDADD = $(LDADD) \
			$(top_builddir)/lib/libkrat_exp.la \
			$(top_builddir)/lib/libvcsn-int-z-fmp-tdc.la
Guillaume Leroi's avatar
Guillaume Leroi committed
123

Akim Demaille's avatar
Akim Demaille committed
124
125
126
127
128
129
## ------ ##
## argp.  ##
## ------ ##

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