Imported Upstream version 2.99.2
[platform/upstream/libsigc++.git] / sigc++ / Makefile.am
1 ## Copyright (c) 2009  Openismus GmbH  <http://www.openismus.com/>
2 ##
3 ## This file is part of libsigc++.
4 ##
5 ## libsigc++ is free software: you can redistribute it and/or modify it
6 ## under the terms of the GNU Lesser General Public License as published
7 ## by the Free Software Foundation, either version 2.1 of the License,
8 ## or (at your option) any later version.
9 ##
10 ## libsigc++ is distributed in the hope that it will be useful, but
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 ## See the GNU Lesser General Public License for more details.
14 ##
15 ## You should have received a copy of the GNU Lesser General Public License
16 ## along with this library.  If not, see <http://www.gnu.org/licenses/>.
17
18 AUTOMAKE_OPTIONS = subdir-objects
19
20 include $(srcdir)/filelist.am
21
22 # Subdirectories needed also in the build dir
23 build_subdirs = functors
24
25 dist_noinst_DATA = $(sigc_m4) CMakeLists.txt
26
27 library_includedir = $(includedir)/$(SIGCXX_MODULE_NAME)/sigc++
28 nobase_library_include_HEADERS = sigc++.h $(sigc_public_h) $(sigc_built_h)
29
30 lib_LTLIBRARIES = libsigc-@SIGCXX_API_VERSION@.la
31
32 libsigc_@SIGCXX_API_VERSION@_la_SOURCES =       \
33         signal.cc                               \
34         signal_base.cc                          \
35         trackable.cc                            \
36         connection.cc                           \
37         functors/slot.cc                        \
38         functors/slot_base.cc
39
40 EXTRA_libsigc_@SIGCXX_API_VERSION@_la_SOURCES = $(sigc_built_cc)
41
42 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
43 libsigc_@SIGCXX_API_VERSION@_la_LDFLAGS = -no-undefined -version-info 0:0:0
44
45 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
46 AM_CXXFLAGS = $(SIGC_WXXFLAGS)
47
48 BUILT_SOURCES = $(build_subdirs) $(sigc_built_h) $(sigc_built_cc)
49 MAINTAINERCLEANFILES = $(sigc_built_h) $(sigc_built_cc)
50
51 m4_dir = $(srcdir)/macros
52
53 $(build_subdirs):
54         $(AM_V_at)$(MKDIR_P) $@
55
56 signal.cc:                      \
57         signal.h                \
58         signal_base.h           \
59         functors/slot.h         \
60         functors/slot_base.h    \
61         functors/mem_fun.h      \
62         functors/functor_trait.h
63
64 functors/slot.cc:               \
65         functors/slot.h         \
66         functors/slot_base.h    \
67         functors/functor_trait.h
68
69 %.h: macros/%.h.m4 $(m4_dir)/template.macros.m4 | $(build_subdirs)
70         $(AM_V_GEN)$(M4) -I $(m4_dir) -I macros $< >$@
71
72 %.cc: macros/%.cc.m4 $(m4_dir)/template.macros.m4 | $(build_subdirs)
73         $(AM_V_GEN)$(M4) -I $(m4_dir) -I macros $< >$@