Makefile.am 2.03 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
## Vaucanson, a generic library for finite state machines.
## Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 The Vaucanson Group.
##
## 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)

Guillaume Leroi's avatar
Guillaume Leroi committed
19
Progs = vcsn-b vcsn-z vcsn-tdc
20
21
22
23
24
25

if VCSN_TAF_KIT
  bin_PROGRAMS = $(Progs)
else
  EXTRA_PROGRAMS = $(Progs)
endif
26
27
28
29
30

COMMON_SOURCES = commands.hh			\
		 commands_macros.hh		\
		 common_commands.hh		\
		 common.hh			\
31
32
		 edition_commands.hh		\
		 edition_commands.hxx		\
Guillaume Leroi's avatar
Guillaume Leroi committed
33
		 library_commands.hh		\
34
35
		 getters.hh			\
		 getters.hxx			\
36
37
		 interface.cc			\
		 interface.hh			\
38
39
40
41
42
43
44
45
		 main.cc			\
		 predefined_alphabets.hh


vcsn_b_CPPFLAGS = $(AM_CPPFLAGS)					\
		  -DCONTEXT_HEADER="<vaucanson/boolean_automaton.hh>"   \
		  -DCONTEXT_NAMESPACE="vcsn::boolean_automaton"

46
47
48
49
vcsn_z_CPPFLAGS = $(AM_CPPFLAGS)					\
		  -DCONTEXT_HEADER="<vaucanson/z_automaton.hh>"   	\
		  -DCONTEXT_NAMESPACE="vcsn::z_automaton"

Guillaume Leroi's avatar
Guillaume Leroi committed
50
51
52
53
vcsn_tdc_CPPFLAGS = $(AM_CPPFLAGS)					\
		    -DCONTEXT_HEADER="<vaucanson/fmp_transducer.hh>"	\
		    -DCONTEXT_NAMESPACE="vcsn::fmp_transducer"		\
		    -DWITH_TWO_ALPHABETS
54
55

vcsn_b_SOURCES = $(COMMON_SOURCES)		\
56
		 ratexp_commands.hh common_automaton_commands.hh b_commands.cc
57
58

vcsn_z_SOURCES = $(COMMON_SOURCES)		\
59
		 ratexp_commands.hh common_automaton_commands.hh z_commands.cc
Akim Demaille's avatar
Akim Demaille committed
60

Guillaume Leroi's avatar
Guillaume Leroi committed
61
62
63
vcsn_tdc_SOURCES = $(COMMON_SOURCES)		\
		   tdc_commands.cc

Akim Demaille's avatar
Akim Demaille committed
64
65
66
67
68
69
70
## ------ ##
## argp.  ##
## ------ ##

# Be sure to fetch the argp we ship.
AM_CPPFLAGS += -I$(top_srcdir)/argp
vcsn_b_LDADD = $(top_builddir)/argp/libargp.la
71
72
vcsn_z_LDADD = $(top_builddir)/argp/libargp.la
vcsn_tdc_LDADD = $(top_builddir)/argp/libargp.la