1 ## Copyright (c) 2009 Openismus GmbH <http://www.openismus.com/>
3 ## This file is part of libsigc++.
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.
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.
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/>.
18 AUTOMAKE_OPTIONS = subdir-objects
20 include $(srcdir)/filelist.am
22 # Subdirectories needed also in the build dir
23 build_subdirs = functors adaptors/lambda
25 dist_noinst_DATA = $(sigc_m4)
27 library_includedir = $(includedir)/$(SIGCXX_MODULE_NAME)/sigc++
28 nobase_library_include_HEADERS = sigc++.h $(sigc_public_h) $(sigc_built_h)
30 lib_LTLIBRARIES = libsigc-@SIGCXX_API_VERSION@.la
32 libsigc_@SIGCXX_API_VERSION@_la_SOURCES = $(sigc_sources_cc)
34 EXTRA_libsigc_@SIGCXX_API_VERSION@_la_SOURCES = $(sigc_built_cc)
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
39 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
40 AM_CXXFLAGS = $(SIGC_WXXFLAGS)
42 BUILT_SOURCES = $(build_subdirs) $(sigc_built_h) $(sigc_built_cc)
43 MAINTAINERCLEANFILES = $(sigc_built_h) $(sigc_built_cc)
45 m4_dir = $(srcdir)/macros
48 $(AM_V_at)$(MKDIR_P) $@
54 functors/slot_base.h \
56 functors/functor_trait.h
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 \
65 functors/functor_trait.h
69 functors/slot_base.h \
70 functors/functor_trait.h
72 %.h: macros/%.h.m4 $(m4_dir)/template.macros.m4 | $(build_subdirs)
73 $(AM_V_GEN)$(M4) -I $(m4_dir) -I macros $< >$@
75 %.cc: macros/%.cc.m4 $(m4_dir)/template.macros.m4 | $(build_subdirs)
76 $(AM_V_GEN)$(M4) -I $(m4_dir) -I macros $< >$@