gtk2/libgail-util/Makefile.am
Chun-wei Fan d836a52b68 build: Clean Up Visual Studio Project Generation
Use the common automake module from the previous commit in the
Makefile.am's, which means that the Makefile.am's in gdk/ and gtk/ can be
cleaned up as a result.  As a side effect, the property sheet that is used
to "install" the build results and headers can now be generated in terms of
the listing of headers to copy during 'make dist', where we can acquire
most of the list of headers to "install", so that we can largely avoid the
situation where the property sheet files are not updated in time for this,
causing missing headers when this build of GTK+ is being used.

Also use the Visual Studio Project file generation for the following
projects:
gtk3-demo
gtk3-demo-application
gtk3-icon-browser
gdk-win32
gdk-broadway
gail-util

So that the maintenace of these project files can be simplified as well.

https://bugzilla.gnome.org/show_bug.cgi?id=681965
2015-09-15 18:37:37 +08:00

103 lines
2.4 KiB
Makefile

include $(top_srcdir)/Makefile.decl
EXTRA_DIST += gailutil.def
if OS_WIN32
export_symbols = -export-symbols $(srcdir)/gailutil.def
gailutil.def: libgailutil-3.la
echo "LIBRARY libgailutil-$(GTK_MAJOR_VERSION)-$(GAIL_LT_CURRENT_MINUS_AGE)" >$@
echo "EXPORTS" >>$@
objdump -p .libs/libgailutil-$(GTK_MAJOR_VERSION)-$(GAIL_LT_CURRENT_MINUS_AGE).dll | sed -n -e 's/\t\[\s\+\([0-9]\+\)\]\s\([A-Za-z_][A-Za-z0-9_]\)/\2/p' >>$@
install-def-file: gailutil.def
$(INSTALL) gailutil.def $(DESTDIR)$(libdir)
uninstall-def-file:
-rm $(DESTDIR)$(libdir)/gailutil.def
else
install-def-file:
uninstall-def-file:
endif
if MS_LIB_AVAILABLE
noinst_DATA = gailutil.lib
install-ms-lib:
$(INSTALL) gailutil.lib $(DESTDIR)$(libdir)
uninstall-ms-lib:
-rm $(DESTDIR)$(libdir)/gailutil.lib
else
install-ms-lib:
uninstall-ms-lib:
endif
lib_LTLIBRARIES = libgailutil-3.la
util_c_sources = \
gailmisc.c \
gailtextutil.c
libgailutilincludedir=$(includedir)/gail-3.0/libgail-util
util_public_h_sources = \
gailmisc.h \
gailtextutil.h \
gail-util.h
libgailutil_3_la_SOURCES = \
$(util_c_sources)
libgailutilinclude_HEADERS = \
$(util_public_h_sources)
libgailutil_3_la_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/gdk \
-I$(top_builddir)/gdk \
-I$(top_srcdir)/gtk \
-I$(top_builddir)/gtk \
$(AM_CPPFLAGS) \
-DGDK_DISABLE_DEPRECATED\
-DGTK_DISABLE_DEPRECATED
libgailutil_3_la_CFLAGS = \
$(GTK_DEP_CFLAGS) \
$(GTK_DEBUG_FLAGS) \
$(AM_CFLAGS)
libgailutil_3_la_LIBADD = \
$(top_builddir)/gtk/libgtk-3.la \
$(top_builddir)/gdk/libgdk-3.la \
$(GTK_DEP_LIBS)
libgailutil_3_la_LDFLAGS = \
-version-info $(GAIL_LT_VERSION_INFO) \
$(no_undefined) \
$(LDFLAGS)
gailutil.lib: libgailutil-3.la gailutil.def
lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgailutil-3.0-$(GAIL_LT_CURRENT_MINUS_AGE).dll -def:gailutil.def -out:$@
install-data-local: install-ms-lib install-def-file
uninstall-local: uninstall-ms-lib uninstall-def-file
# ------------------- MSVC Build Items ----------------
MSVCPROJS = gailutil
gailutil_FILES = $(libgailutil_3_la_SOURCES)
gailutil_EXCLUDES = dummy
gailutil_HEADERS_DIR = $(libgailutilincludedir)
gailutil_HEADERS_INST = $(libgailutilinclude_HEADERS)
gailutil_HEADERS_EXCLUDES = dummy
include $(top_srcdir)/build/Makefile.msvcproj
dist-hook: \
$(top_builddir)/build/win32/vs9/gailutil.vcproj \
$(top_builddir)/build/win32/vs9/gailutil.headers
-include $(top_srcdir)/git.mk