Makefile.am 3.25 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
bin_PROGRAMS = vcsn-char-b vcsn-char-z vcsn-char-fmp \
Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
20
               vcsn-int-b vcsn-int-z
21
22
23
24
25

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


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

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

65
66
vcsn_char_fmp_SOURCES = $(COMMON_SOURCES) fmp_commands.cc
#vcsn_char_fmp_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=fmp_transducer 	\
67
#		    -DWITH_TWO_ALPHABETS -DVCSN_USE_LIB
68
vcsn_char_fmp_CPPFLAGS = $(AM_CPPFLAGS) \
69
70
71
		         -DCONTEXT=fmp_transducer -DWITH_TWO_ALPHABETS \
			 -DIOAUT_CONTEXT=boolean_automaton	       \
			 -DRW_CONTEXT=boolean_transducer
72
73
74
vcsn_char_fmp_LDADD = $(LDADD) \
		      $(top_builddir)/lib/libvcsn-fmp-tdc.la \
		      $(top_builddir)/lib/libkrat_exp.la
75

76
77
78
79
vcsn_int_b_SOURCES = $(COMMON_SOURCES)			\
		      ratexp_commands.hh		\
	              common_automaton_commands.hh	\
                      b_commands.cc
80
81
vcsn_int_b_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=int_boolean_automaton \
                      -DNO_PREDEF_ALPHABETS
82
83
84
vcsn_int_b_LDADD = $(LDADD)				\
		    $(top_builddir)/lib/libkrat_exp.la

Alexandre Duret-Lutz's avatar
Alexandre Duret-Lutz committed
85
86
87
88
89
90
91
92
93
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 \
                      -DNO_PREDEF_ALPHABETS
vcsn_int_z_LDADD = $(LDADD)				\
		    $(top_builddir)/lib/libkrat_exp.la

Guillaume Leroi's avatar
Guillaume Leroi committed
94

Akim Demaille's avatar
Akim Demaille committed
95
96
97
98
99
100
## ------ ##
## argp.  ##
## ------ ##

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