Fixed distcheck target
[distributed.git] / src / Makefile.am
blob1a35ddc60741307a344d07289b6cfbcfdcfb905c
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         libmisc.a                               \
48         libnet.a                                \
49         libvm.a
50 beacon_LDFLAGS  =
51 if ENABLE_LUA
52 beacon_LDFLAGS +=                               \
53         $(LUA_LIBS)
54 endif
56 distribute_SOURCES =                            \
57         client/distribute.cxx
58 distribute_CPPFLAGS =                           \
59         $(EXTRA_CPPFLAGS)
60 distribute_LDADD =                              \
61         libconf.a                               \
62         libfs.a                                 \
63         libmisc.a                               \
64         libnet.a
66 ## Libraries
68 noinst_LIBRARIES =                              \
69         libmisc.a                               \
70         libconf.a                               \
71         libfs.a                                 \
72         libnet.a                                \
73         libvm.a
75 libvm_a_SOURCES  =                              \
76         libs/vm/vm.h                            \
77         libs/vm/vm.cxx
78 libvm_a_CFLAGS   =
79 libvm_a_CPPFLAGS =                              \
80         $(EXTRA_CPPFLAGS)
81 libvm_a_LIBADD   =
83 if ENABLE_LUA
84 libvm_a_SOURCES +=                              \
85         libs/vm/lua.h                           \
86         libs/vm/lua.cxx
87 libvm_a_CFLAGS  += $(LUA_CFLAGS)
88 endif
90 libmisc_a_SOURCES =                             \
91         libs/misc/stream.h                      \
92         libs/misc/stream.cxx                    \
93         libs/misc/exception.h                   \
94         libs/misc/exception.cxx                 \
95         libs/misc/debug.h                       \
96         libs/misc/debug.cxx                     \
97         libs/misc/trace.h                       \
98         libs/misc/trace.cxx                     \
99         libs/misc/string.h                      \
100         libs/misc/string.cxx                    \
101         libs/misc/environment.h                 \
102         libs/misc/environment.cxx               \
103         libs/misc/constant.h                    \
104         libs/misc/utility.h                     \
105         libs/misc/thread.h                      \
106         libs/misc/thread.cxx
107 libmisc_a_CPPFLAGS =                            \
108         $(EXTRA_CPPFLAGS)
110 libnet_a_SOURCES =                              \
111         libs/net/uuid.h                         \
112         libs/net/uuid.cxx
113 libnet_a_CPPFLAGS =                             \
114         $(EXTRA_CPPFLAGS)
116 libconf_a_SOURCES =                             \
117         libs/conf/configuration.h               \
118         libs/conf/configuration.cxx
119 libconf_a_CPPFLAGS =                            \
120         $(EXTRA_CPPFLAGS)
122 libfs_a_SOURCES =                               \
123         libs/fs/file.h                          \
124         libs/fs/file.cxx                        \
125         libs/fs/directory.h                     \
126         libs/fs/directory.cxx
127 libfs_a_CPPFLAGS =                              \
128         $(EXTRA_CPPFLAGS)
131 ## Maintainer related targets
134 update-local:
136 maintainer-check-local: