2007-12-18 13:51:12 +00:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
|
2019-03-30 19:06:25 +00:00
|
|
|
EXTRA_DIST += \
|
|
|
|
gailutil.def \
|
|
|
|
meson.build
|
|
|
|
|
2007-12-18 13:51:12 +00:00
|
|
|
if OS_WIN32
|
2009-02-04 08:20:11 +00:00
|
|
|
export_symbols = -export-symbols $(srcdir)/gailutil.def
|
2013-08-23 14:15:29 +00:00
|
|
|
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' >>$@
|
2009-02-04 08:20:11 +00:00
|
|
|
install-def-file: gailutil.def
|
2013-08-23 14:15:29 +00:00
|
|
|
$(INSTALL) gailutil.def $(DESTDIR)$(libdir)
|
2009-02-04 08:20:11 +00:00
|
|
|
uninstall-def-file:
|
|
|
|
-rm $(DESTDIR)$(libdir)/gailutil.def
|
2007-12-18 13:51:12 +00:00
|
|
|
else
|
2009-02-04 08:20:11 +00:00
|
|
|
install-def-file:
|
|
|
|
uninstall-def-file:
|
2007-12-18 13:51:12 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
2011-02-10 19:41:02 +00:00
|
|
|
lib_LTLIBRARIES = libgailutil-3.la
|
2007-12-18 13:51:12 +00:00
|
|
|
|
|
|
|
util_c_sources = \
|
|
|
|
gailmisc.c \
|
|
|
|
gailtextutil.c
|
|
|
|
|
2010-05-10 21:02:48 +00:00
|
|
|
libgailutilincludedir=$(includedir)/gail-3.0/libgail-util
|
2007-12-18 13:51:12 +00:00
|
|
|
|
|
|
|
util_public_h_sources = \
|
|
|
|
gailmisc.h \
|
|
|
|
gailtextutil.h \
|
|
|
|
gail-util.h
|
|
|
|
|
2011-02-10 19:41:02 +00:00
|
|
|
libgailutil_3_la_SOURCES = \
|
2007-12-18 13:51:12 +00:00
|
|
|
$(util_c_sources)
|
|
|
|
|
|
|
|
libgailutilinclude_HEADERS = \
|
|
|
|
$(util_public_h_sources)
|
|
|
|
|
2011-02-10 19:41:02 +00:00
|
|
|
libgailutil_3_la_CPPFLAGS = \
|
2008-02-16 02:39:20 +00:00
|
|
|
-I$(top_srcdir) \
|
2007-12-18 13:51:12 +00:00
|
|
|
-I$(top_srcdir)/gdk \
|
|
|
|
-I$(top_builddir)/gdk \
|
|
|
|
-I$(top_srcdir)/gtk \
|
|
|
|
-I$(top_builddir)/gtk \
|
2008-08-15 11:37:00 +00:00
|
|
|
$(AM_CPPFLAGS) \
|
|
|
|
-DGDK_DISABLE_DEPRECATED\
|
|
|
|
-DGTK_DISABLE_DEPRECATED
|
2007-12-18 13:51:12 +00:00
|
|
|
|
2011-02-10 19:41:02 +00:00
|
|
|
libgailutil_3_la_CFLAGS = \
|
2007-12-18 13:51:12 +00:00
|
|
|
$(GTK_DEP_CFLAGS) \
|
|
|
|
$(GTK_DEBUG_FLAGS) \
|
|
|
|
$(AM_CFLAGS)
|
|
|
|
|
2011-02-10 19:41:02 +00:00
|
|
|
libgailutil_3_la_LIBADD = \
|
|
|
|
$(top_builddir)/gtk/libgtk-3.la \
|
|
|
|
$(top_builddir)/gdk/libgdk-3.la \
|
2007-12-18 13:51:12 +00:00
|
|
|
$(GTK_DEP_LIBS)
|
|
|
|
|
2011-02-10 19:41:02 +00:00
|
|
|
libgailutil_3_la_LDFLAGS = \
|
2007-12-20 14:31:01 +00:00
|
|
|
-version-info $(GAIL_LT_VERSION_INFO) \
|
2007-12-18 13:51:12 +00:00
|
|
|
$(no_undefined) \
|
|
|
|
$(LDFLAGS)
|
|
|
|
|
2011-02-10 19:41:02 +00:00
|
|
|
gailutil.lib: libgailutil-3.la gailutil.def
|
2010-05-10 21:02:48 +00:00
|
|
|
lib -machine:@LIB_EXE_MACHINE_FLAG@ -name:libgailutil-3.0-$(GAIL_LT_CURRENT_MINUS_AGE).dll -def:gailutil.def -out:$@
|
2007-12-18 13:51:12 +00:00
|
|
|
|
2009-02-04 08:20:11 +00:00
|
|
|
install-data-local: install-ms-lib install-def-file
|
2007-12-18 13:51:12 +00:00
|
|
|
|
2009-02-04 08:20:11 +00:00
|
|
|
uninstall-local: uninstall-ms-lib uninstall-def-file
|
2009-05-04 00:08:11 +00:00
|
|
|
|
2015-04-17 06:47:56 +00:00
|
|
|
# ------------------- MSVC Build Items ----------------
|
2015-08-25 09:41:55 +00:00
|
|
|
MSVCPROJS = gailutil-3
|
2015-04-17 06:47:56 +00:00
|
|
|
|
2015-08-25 09:41:55 +00:00
|
|
|
gailutil_3_FILES = $(libgailutil_3_la_SOURCES)
|
2015-04-17 06:47:56 +00:00
|
|
|
|
2015-08-25 09:41:55 +00:00
|
|
|
gailutil_3_EXCLUDES = dummy
|
|
|
|
gailutil_3_HEADERS_DIR = $(libgailutilincludedir)
|
2015-04-17 06:47:56 +00:00
|
|
|
|
2015-08-25 09:41:55 +00:00
|
|
|
gailutil_3_HEADERS_INST = $(libgailutilinclude_HEADERS)
|
2015-04-17 06:47:56 +00:00
|
|
|
|
2015-08-25 09:41:55 +00:00
|
|
|
gailutil_3_HEADERS_EXCLUDES = dummy
|
2015-04-17 06:47:56 +00:00
|
|
|
|
|
|
|
include $(top_srcdir)/build/Makefile.msvcproj
|
|
|
|
|
|
|
|
dist-hook: \
|
2015-08-25 09:41:55 +00:00
|
|
|
$(top_builddir)/build/win32/vs9/gailutil-3.vcproj \
|
|
|
|
$(top_builddir)/build/win32/vs9/gailutil-3.headers
|
2015-04-17 06:47:56 +00:00
|
|
|
|
2009-05-04 00:08:11 +00:00
|
|
|
-include $(top_srcdir)/git.mk
|