Makefile.am 2.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-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
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 		\
		 pipe_writers.hxx
42
43
44


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

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

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

Guillaume Leroi's avatar
Guillaume Leroi committed
70

Akim Demaille's avatar
Akim Demaille committed
71
72
73
74
75
76
## ------ ##
## argp.  ##
## ------ ##

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