Fixed compilation issues
[distributed.git] / src / Makefile.am
blob11f9d155d45705e598467ed6e4d582860bd32801
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
25 SUBDIRS = gnulib .
28 ## User related targets
31 ## Programs
33 EXTRA_DIST =                                    \
34         config.h
36 bin_PROGRAMS =                                  \
37         beacon                                  \
38         distribute
40 beacon_SOURCES  =                               \
41         server/beacon.cxx
42 beacon_CPPFLAGS =                               \
43         $(EXTRA_CPPFLAGS)
44 beacon_LDADD    =                               \
45         libconf.a                               \
46         libfs.a                                 \
47         libnet.a                                \
48         libmisc.a                               \
49         libvm.a                                 \
50         gnulib/libgnu.a
51 beacon_LDFLAGS  =
52 if ENABLE_LUA
53 beacon_LDFLAGS +=                               \
54         $(LUA_LIBS)
55 endif
57 distribute_SOURCES =                            \
58         client/distribute.cxx
59 distribute_CPPFLAGS =                           \
60         $(EXTRA_CPPFLAGS)
61 distribute_LDADD =                              \
62         libconf.a                               \
63         libfs.a                                 \
64         libmisc.a                               \
65         libnet.a                                \
66         gnulib/libgnu.a
68 ## Libraries
70 noinst_LIBRARIES =                              \
71         libmisc.a                               \
72         libconf.a                               \
73         libfs.a                                 \
74         libnet.a                                \
75         libvm.a
77 libvm_a_SOURCES  =                              \
78         libs/vm/vm.h                            \
79         libs/vm/vm.cxx
80 libvm_a_CFLAGS   =
81 libvm_a_CPPFLAGS =                              \
82         $(EXTRA_CPPFLAGS)
83 libvm_a_LIBADD   =
85 if ENABLE_LUA
86 libvm_a_SOURCES +=                              \
87         libs/vm/lua.h                           \
88         libs/vm/lua.cxx
89 libvm_a_CFLAGS  += $(LUA_CFLAGS)
90 endif
92 libmisc_a_SOURCES =                             \
93         libs/misc/stream.h                      \
94         libs/misc/stream.cxx                    \
95         libs/misc/exception.h                   \
96         libs/misc/exception.cxx                 \
97         libs/misc/debug.h                       \
98         libs/misc/debug.cxx                     \
99         libs/misc/trace.h                       \
100         libs/misc/trace.cxx                     \
101         libs/misc/string.h                      \
102         libs/misc/string.cxx                    \
103         libs/misc/environment.h                 \
104         libs/misc/environment.cxx               \
105         libs/misc/constant.h                    \
106         libs/misc/utility.h                     \
107         libs/misc/thread.h                      \
108         libs/misc/thread.cxx
109 libmisc_a_CPPFLAGS =                            \
110         $(EXTRA_CPPFLAGS)
112 libnet_a_SOURCES =                              \
113         libs/net/uuid.h                         \
114         libs/net/uuid.cxx
115 libnet_a_CPPFLAGS =                             \
116         $(EXTRA_CPPFLAGS)
118 libconf_a_SOURCES =                             \
119         libs/conf/configuration.h               \
120         libs/conf/configuration.cxx
121 libconf_a_CPPFLAGS =                            \
122         $(EXTRA_CPPFLAGS)
124 libfs_a_SOURCES =                               \
125         libs/fs/file.h                          \
126         libs/fs/file.cxx                        \
127         libs/fs/directory.h                     \
128         libs/fs/directory.cxx
129 libfs_a_CPPFLAGS =                              \
130         $(EXTRA_CPPFLAGS)
133 ## Maintainer related targets
136 update-local:
138 maintainer-check-local: