add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / build_shared / Makefile_build.am_fragment
1 ## Copyright (c) 2001
2 ## The gtkmm development team.
3 ##
4 ## **** Common rules for inclusion in Makefile.am ****
5 ## Included by Makefile_build_gensrc.am_fragment
6 ##
7
8 include $(srcdir)/../src/Makefile_list_of_hg.am_fragment
9
10 # Support for DLL on mingw using libtool > 1.4
11 # When creating DLLs on win32, we need to explicitly add a few extra
12 # libraries at link time to resolve symbols (remember a dll is like an
13 # executable).
14 if PLATFORM_WIN32
15 extra_win32_defines = \
16         -D$(shell echo $(sublib_name) | tr [:lower:] [:upper:])_BUILD
17 no_undefined = -no-undefined -Wl,--export-all-symbols
18 win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
19 else
20 extra_win32_defines = 
21 no_undefined =
22 win32_dlls_extra_libs =
23 endif
24
25 common_ldflags  = -version-info $(sublib_libversion) $(no_undefined)
26
27 # All modules can include all other modules,
28 # for instance, so that gdkmm can use headers in pangomm.
29 all_includes    = -I$(top_builddir)/$(sublib_topdir)            -I$(top_srcdir)/$(sublib_topdir)        \
30                   -I$(top_builddir)/pango       -I$(top_srcdir)/pango   \
31                   -I$(top_builddir)/atk         -I$(top_srcdir)/atk     \
32                   -I$(top_builddir)/gdk         -I$(top_srcdir)/gdk     \
33                   -I$(top_builddir)/gtk         -I$(top_srcdir)/gtk     \
34                   $(sublib_cflags) $(GTHREAD_CFLAGS)
35
36 dist_sources    = $(files_all_built_cc) $(files_all_extra_cc) $(files_all_built_h) $(files_all_extra_h)
37 DISTFILES       = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
38
39
40 DEFS = @DEFS@ -DG_LOG_DOMAIN=\"$(sublib_name)\" $(extra_win32_defines)
41 DEFAULT_INCLUDES        =
42
43 # DISABLE_DEPRECATED_CFLAGS and DISABLE_DEPRECATED_API_CFLAGS are empty unless the appropriate --enable-*=no options are specified to configure:
44 INCLUDES = $(strip $(all_includes)) $(DISABLE_DEPRECATED_CFLAGS) $(DISABLE_DEPRECATED_API_CFLAGS)
45
46 sublib_includedir       = $(includedir)/$(sublib_libname)/$(sublib_name)
47 sublib_include_HEADERS  = $(files_all_built_h) $(files_all_extra_h)
48
49 maintainer-clean-local:
50         (cd $(srcdir) && rm -f $(files_all_built_cc) $(files_all_built_h))
51
52