Makefile.am 2.46 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
20
21
22
23
24

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


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

55
56
57
58
59
60
61
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	\
62
		  $(top_builddir)/lib/libkrat_exp.la
Akim Demaille's avatar
Akim Demaille committed
63

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

Guillaume Leroi's avatar
Guillaume Leroi committed
73

Akim Demaille's avatar
Akim Demaille committed
74
75
76
77
78
79
## ------ ##
## argp.  ##
## ------ ##

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