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
25 dist_noinst_DATA = $(sigc_m4) CMakeLists.txt
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 = \
40 EXTRA_libsigc_@SIGCXX_API_VERSION@_la_SOURCES = $(sigc_built_cc)
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
45 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
46 AM_CXXFLAGS = $(SIGC_WXXFLAGS)
48 BUILT_SOURCES = $(build_subdirs) $(sigc_built_h) $(sigc_built_cc)
49 MAINTAINERCLEANFILES = $(sigc_built_h) $(sigc_built_cc)
51 m4_dir = $(srcdir)/macros
54 $(AM_V_at)$(MKDIR_P) $@
60 functors/slot_base.h \
62 functors/functor_trait.h
66 functors/slot_base.h \
67 functors/functor_trait.h
69 %.h: macros/%.h.m4 $(m4_dir)/template.macros.m4 | $(build_subdirs)
70 $(AM_V_GEN)$(M4) -I $(m4_dir) -I macros $< >$@
72 %.cc: macros/%.cc.m4 $(m4_dir)/template.macros.m4 | $(build_subdirs)
73 $(AM_V_GEN)$(M4) -I $(m4_dir) -I macros $< >$@