Makefile.am 2.3 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-b vcsn-z vcsn-tdc
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


vcsn_b_SOURCES = $(COMMON_SOURCES)		\
47
		 ratexp_commands.hh common_automaton_commands.hh b_commands.cc
48
vcsn_b_CPPFLAGS = $(AM_CPPFLAGS) \
49
		  -DCONTEXT=boolean_automaton -DVCSN_USE_LIB
50
51
vcsn_b_LDADD 	= $(LDADD) \
		  $(top_builddir)/lib/libvcsn-b.la \
52
		  $(top_builddir)/lib/libkrat_exp.la
53
54

vcsn_z_SOURCES = $(COMMON_SOURCES)		\
55
		 ratexp_commands.hh common_automaton_commands.hh z_commands.cc
56
vcsn_z_CPPFLAGS = $(AM_CPPFLAGS) \
57
		  -DCONTEXT=z_automaton -DVCSN_USE_LIB
58
59
vcsn_z_LDADD 	= $(LDADD) \
		  $(top_builddir)/lib/libvcsn-z.la \
60
		  $(top_builddir)/lib/libkrat_exp.la
Akim Demaille's avatar
Akim Demaille committed
61

Guillaume Leroi's avatar
Guillaume Leroi committed
62
63
vcsn_tdc_SOURCES = $(COMMON_SOURCES)		\
		   tdc_commands.cc
64
65
#vcsn_tdc_CPPFLAGS = $(AM_CPPFLAGS) -DCONTEXT=fmp_transducer 	\
#		    -DWITH_TWO_ALPHABETS -DVCSN_USE_LIB
66
vcsn_tdc_CPPFLAGS = $(AM_CPPFLAGS) \
67
		    -DCONTEXT=fmp_transducer -DWITH_TWO_ALPHABETS 
68
69
vcsn_tdc_LDADD 	= $(LDADD) \
		  $(top_builddir)/lib/libvcsn-tdc.la \
70
		  $(top_builddir)/lib/libkrat_exp.la
71

Guillaume Leroi's avatar
Guillaume Leroi committed
72

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

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