a313924b77
git-svn-id: svn://localhost/ardour2/trunk@2644 d708f5d6-7413-0410-9779-e7cbd77b26cf
72 lines
2.2 KiB
Plaintext
72 lines
2.2 KiB
Plaintext
## Copyright (c) 2001
|
|
## The gtkmm development team.
|
|
##
|
|
## **** Common rules for inclusion in Makefile.am ****
|
|
##
|
|
##
|
|
## 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)
|
|
|
|
# Support for DLL on mingw using libtool > 1.4
|
|
# 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
|
|
win32_dlls_extra_libs = $(sublib_win32_dlls_libs)
|
|
else
|
|
extra_win32_defines =
|
|
no_undefined =
|
|
win32_dlls_extra_libs =
|
|
endif
|
|
|
|
common_ldflags = -version-info $(LIBGLIBMM_SO_VERSION) $(no_undefined)
|
|
|
|
all_includes = -I$(top_builddir)/glib -I$(top_srcdir)/glib \
|
|
$(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)
|
|
DISTFILES = $(DIST_COMMON) $(dist_sources) $(TEXINFOS) $(EXTRA_DIST)
|
|
|
|
DEFS = @DEFS@ $(strip $(extra_defines))
|
|
DEFAULT_INCLUDES =
|
|
INCLUDES = $(strip $(all_includes))
|
|
|
|
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
|
|
|
|
maintainer-clean-local:
|
|
(cd $(srcdir) && rm -f $(files_built_all_cc) $(files_built_all_h))
|
|
|