Fixed build rules
[distributed.git] / src / Makefile.am
blob1d05a22a15a67f219afe5b28ce3538851e9b3a07
1 ##
2 ## Input file for automake
3 ##
4 ## Copyright (C) 2008 Francesco Salvestrini
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2 of the License, or
9 ## (at your option) any later version.
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License along
17 ## with this program; if not, write to the Free Software Foundation, Inc.,
18 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 include $(top_srcdir)/Makefile.maint
23 AUTOMAKE_OPTIONS = subdir-objects
26 ## User related targets
29 ## Programs
31 EXTRA_DIST =                                    \
32         config.h
34 bin_PROGRAMS =                                  \
35         beacon                                  \
36         distribute
38 beacon_SOURCES  =                               \
39         server/beacon.cxx
40 beacon_CPPFLAGS =                               \
41         $(EXTRA_CPPFLAGS)
42 beacon_LDADD    =                               \
43         libconf.a                               \
44         libfile.a                               \
45         libmisc.a                               \
46         libnet.a                                \
47         libvm.a
48 beacon_LDFLAGS  =
49 if ENABLE_LUA
50 beacon_LDFLAGS +=                               \
51         $(LUA_LIBS)
52 endif
54 distribute_SOURCES =                            \
55         client/distribute.cxx
56 distribute_CPPFLAGS =                           \
57         $(EXTRA_CPPFLAGS)
58 distribute_LDADD =                              \
59         libconf.a                               \
60         libfile.a                               \
61         libmisc.a                               \
62         libnet.a
64 ## Libraries
66 noinst_LIBRARIES =                              \
67         libmisc.a                               \
68         libconf.a                               \
69         libfile.a                               \
70         libnet.a                                \
71         libvm.a
73 libvm_a_SOURCES  =                              \
74         libs/vm/vm.h                            \
75         libs/vm/vm.cxx
76 libvm_a_CFLAGS   =
77 libvm_a_CPPFLAGS =                              \
78         $(EXTRA_CPPFLAGS)
79 libvm_a_LIBADD   =
81 if ENABLE_LUA
82 libvm_a_SOURCES +=                              \
83         libs/vm/lua.h                           \
84         libs/vm/lua.cxx
85 libvm_a_CFLAGS  += $(LUA_CFLAGS)
86 endif
88 libmisc_a_SOURCES =                             \
89         libs/misc/exception.h                   \
90         libs/misc/debug.h                       \
91         libs/misc/debug.cxx                     \
92         libs/misc/trace.h                       \
93         libs/misc/trace.cxx                     \
94         libs/misc/string.h                      \
95         libs/misc/string.cxx                    \
96         libs/misc/environment.h                 \
97         libs/misc/environment.cxx               \
98         libs/misc/constant.h                    \
99         libs/misc/utility.h                     \
100         libs/misc/thread.h                      \
101         libs/misc/thread.cxx
102 libmisc_a_CPPFLAGS =                            \
103         $(EXTRA_CPPFLAGS)
105 libnet_a_SOURCES =                              \
106         libs/net/uuid.h                         \
107         libs/net/uuid.cxx
108 libnet_a_CPPFLAGS =                             \
109         $(EXTRA_CPPFLAGS)
111 libconf_a_SOURCES =                             \
112         libs/conf/configuration.h               \
113         libs/conf/configuration.cxx
114 libconf_a_CPPFLAGS =                            \
115         $(EXTRA_CPPFLAGS)
117 libfile_a_SOURCES =                             \
118         libs/file/utils.h                       \
119         libs/file/utils.cxx
120 libfile_a_CPPFLAGS =                            \
121         $(EXTRA_CPPFLAGS)
124 ## Maintainer related targets
127 update-local:
129 maintainer-check-local: