summaryrefslogtreecommitdiff
path: root/build_shared/Makefile_build.am_fragment
diff options
context:
space:
mode:
Diffstat (limited to 'build_shared/Makefile_build.am_fragment')
-rw-r--r--build_shared/Makefile_build.am_fragment59
1 files changed, 19 insertions, 40 deletions
diff --git a/build_shared/Makefile_build.am_fragment b/build_shared/Makefile_build.am_fragment
index 7a8bef44..2707becf 100644
--- a/build_shared/Makefile_build.am_fragment
+++ b/build_shared/Makefile_build.am_fragment
@@ -2,36 +2,19 @@
## The gtkmm development team.
##
## **** Common rules for inclusion in Makefile.am ****
+## Included by Makefile_build_gensrc.am_fragment
##
-##
-## Used variable: Example content:
-##
-## sublib_name = glibmm
-## sublib_cflags = $(GLIBMM_CFLAGS)
-## files_built_*_cc =
-## files_built_*_h = proxy.h
-## files_extra_cc = array.cc class.cc closure.cc
-## files_extra_h = array.h boxedtype.h class.h
-## files_extra_all_cc = array.cc class.cc closure.cc
-## files_extra_all_h = array.h boxedtype.h class.h
-##
-## Returned variable: Usage example:
-##
-## files_all_*_cc libglibmm_la_SOURCES = $(files_all_*_cc)
-## common_ldflags libglibmm_la_LDFLAGS = $(common_ldflags)
-files_all_general_cc = $(files_built_general_cc) $(files_extra_cc)
-files_all_posix_cc = $(files_built_posix_cc)
-files_all_win32_cc = $(files_built_win32_cc)
+include $(srcdir)/../src/Makefile_list_of_hg.am_fragment
# Support for DLL on mingw using libtool > 1.4
-# When creating DLLs on win32, we need to explicitly add a few extra
+# When creating DLLs on win32, we need to explicitly add a few extra
# libraries at link time to resolve symbols (remember a dll is like an
# executable).
if PLATFORM_WIN32
extra_win32_defines = \
-D$(shell echo $(sublib_name) | tr [:lower:] [:upper:])_BUILD
-no_undefined = -no-undefined -Wl,--export-all-symbols
+no_undefined = -no-undefined -Wl,--export-all-symbols
win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
else
extra_win32_defines =
@@ -39,33 +22,29 @@ no_undefined =
win32_dlls_extra_libs =
endif
-common_ldflags = -version-info $(LIBGLIBMM_SO_VERSION) $(no_undefined)
+common_ldflags = -version-info $(sublib_libversion) $(no_undefined)
-all_includes = -I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_builddir) \
+# All modules can include all other modules,
+# for instance, so that gdkmm can use headers in pangomm.
+all_includes = -I$(top_builddir)/$(sublib_topdir) -I$(top_srcdir)/$(sublib_topdir) \
+ -I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_builddir) \
+ -I$(top_builddir)/gio -I$(top_srcdir)/gio \
$(sublib_cflags) $(GTHREAD_CFLAGS)
-extra_defines = -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines) \
- $(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
-
-dist_sources = $(files_built_all_cc) $(files_extra_all_cc) \
- $(files_built_all_h) $(files_extra_all_h)
+dist_sources = $(files_all_built_cc) $(files_all_extra_cc) $(files_all_built_h) $(files_all_extra_h)
DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
-DEFS = @DEFS@ $(strip $(extra_defines))
+
+DEFS = @DEFS@ -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines)
DEFAULT_INCLUDES =
-INCLUDES = $(strip $(all_includes))
+
+# DISABLE_DEPRECATED_CFLAGS and DISABLE_DEPRECATED_API_CFLAGS are empty unless the appropriate --enable-*=no options are specified to configure:
+INCLUDES = $(strip $(all_includes)) $(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
sublib_includedir = $(includedir)/$(sublib_libname)/$(sublib_name)
-if OS_WIN32
-sublib_include_HEADERS = $(files_built_general_h) \
- $(files_built_win32_h) \
- $(files_extra_h)
-else
-sublib_include_HEADERS = $(files_built_general_h) \
- $(files_built_posix_h) \
- $(files_extra_h)
-endif
+sublib_include_HEADERS = $(files_all_built_h) $(files_all_extra_h)
maintainer-clean-local:
- (cd $(srcdir) && rm -f $(files_built_all_cc) $(files_built_all_h))
+ (cd $(srcdir) && rm -f $(files_all_built_cc) $(files_all_built_h))
+