]> git.tdb.fi Git - ext/sigc++-2.0.git/blob - sigc++/Makefile.am
Adjust the name of the library to match upstream
[ext/sigc++-2.0.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 adaptors/lambda
24
25 dist_noinst_DATA = $(sigc_m4)
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 = $(sigc_sources_cc)
33
34 EXTRA_libsigc_@SIGCXX_API_VERSION@_la_SOURCES = $(sigc_built_cc)
35
36 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
37 libsigc_@SIGCXX_API_VERSION@_la_LDFLAGS = -no-undefined -version-info 0:0:0
38
39 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
40 AM_CXXFLAGS = $(SIGC_WXXFLAGS)
41
42 BUILT_SOURCES = $(build_subdirs) $(sigc_built_h) $(sigc_built_cc)
43 MAINTAINERCLEANFILES = $(sigc_built_h) $(sigc_built_cc)
44
45 m4_dir = $(srcdir)/macros
46
47 $(build_subdirs):
48         $(AM_V_at)$(MKDIR_P) $@
49
50 signal.cc:                      \
51         signal.h                \
52         signal_base.h           \
53         functors/slot.h         \
54         functors/slot_base.h    \
55         functors/mem_fun.h      \
56         functors/functor_trait.h
57
58 adaptors/lambda/lambda.cc:              \
59         adaptors/lambda/select.h        \
60         adaptors/lambda/base.h          \
61         adaptors/adaptor_trait.h        \
62         adaptors/deduce_result_type.h   \
63         functors/ptr_fun.h              \
64         functors/mem_fun.h              \
65         functors/functor_trait.h
66
67 functors/slot.cc:               \
68         functors/slot.h         \
69         functors/slot_base.h    \
70         functors/functor_trait.h
71
72 %.h: macros/%.h.m4 $(m4_dir)/template.macros.m4 | $(build_subdirs)
73         $(AM_V_GEN)$(M4) -I $(m4_dir) -I macros $< >$@
74
75 %.cc: macros/%.cc.m4 $(m4_dir)/template.macros.m4 | $(build_subdirs)
76         $(AM_V_GEN)$(M4) -I $(m4_dir) -I macros $< >$@