2003-11-26 09:12:36 +08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
if PLATFORM_WIN32
|
|
|
|
no_undefined = -no-undefined
|
|
|
|
endif
|
|
|
|
|
2012-05-12 20:39:44 +08:00
|
|
|
if PLATFORM_OSX
|
|
|
|
xobjective_c = "-xobjective-c"
|
|
|
|
framework_cocoa = -framework Cocoa
|
|
|
|
endif
|
|
|
|
|
2003-11-26 09:12:36 +08:00
|
|
|
if OS_WIN32
|
|
|
|
gimpthumb_def = gimpthumb.def
|
|
|
|
libgimpthumb_export_symbols = -export-symbols gimpthumb.def
|
|
|
|
|
|
|
|
install-libtool-import-lib:
|
2004-01-22 11:51:46 +08:00
|
|
|
$(INSTALL) .libs/libgimpthumb-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
|
2004-04-16 05:09:23 +08:00
|
|
|
$(INSTALL) gimpthumb.def $(DESTDIR)$(libdir)
|
2003-11-26 09:12:36 +08:00
|
|
|
|
|
|
|
uninstall-libtool-import-lib:
|
2004-01-22 11:51:46 +08:00
|
|
|
-rm $(DESTDIR)$(libdir)/libgimpthumb-$(GIMP_API_VERSION).dll.a
|
2004-04-16 05:09:23 +08:00
|
|
|
-rm $(DESTDIR)$(libdir)/gimpthumb.def
|
2003-11-26 09:12:36 +08:00
|
|
|
else
|
|
|
|
install-libtool-import-lib:
|
|
|
|
uninstall-libtool-import-lib:
|
|
|
|
endif
|
|
|
|
|
|
|
|
if MS_LIB_AVAILABLE
|
2004-01-22 11:51:46 +08:00
|
|
|
noinst_DATA = gimpthumb-$(GIMP_API_VERSION).lib
|
2003-11-26 09:12:36 +08:00
|
|
|
|
|
|
|
install-ms-lib:
|
2004-01-22 11:51:46 +08:00
|
|
|
$(INSTALL) gimpthumb-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
|
2003-11-26 09:12:36 +08:00
|
|
|
|
|
|
|
uninstall-ms-lib:
|
2004-01-22 11:51:46 +08:00
|
|
|
-rm $(DESTDIR)$(libdir)/gimpthumb-$(GIMP_API_VERSION).lib
|
2003-11-26 09:12:36 +08:00
|
|
|
|
2004-01-22 11:51:46 +08:00
|
|
|
gimpthumb-@GIMP_API_VERSION@.lib: gimpthumb.def
|
|
|
|
lib -name:libgimpthumb-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpthumb.def -out:$@
|
2003-11-26 09:12:36 +08:00
|
|
|
|
|
|
|
else
|
|
|
|
install-ms-lib:
|
|
|
|
uninstall-ms-lib:
|
|
|
|
endif
|
|
|
|
|
2004-01-22 11:51:46 +08:00
|
|
|
libgimpthumbincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpthumb
|
2003-11-26 09:12:36 +08:00
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
2011-04-28 20:30:41 +08:00
|
|
|
-DG_LOG_DOMAIN=\"LibGimpThumb\" \
|
2013-06-06 02:48:37 +08:00
|
|
|
-DGIMP_THUMB_COMPILATION \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
$(GDK_PIXBUF_CFLAGS) \
|
|
|
|
$(GLIB_CFLAGS) \
|
|
|
|
-I$(includedir) \
|
2012-05-12 20:39:44 +08:00
|
|
|
$(xobjective_c)
|
2003-11-26 09:12:36 +08:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
gimpthumb.def
|
|
|
|
|
2012-05-04 21:37:43 +08:00
|
|
|
lib_LTLIBRARIES = libgimpthumb-@GIMP_API_VERSION@.la
|
2003-11-26 09:12:36 +08:00
|
|
|
|
2012-05-04 21:37:43 +08:00
|
|
|
libgimpthumb_@GIMP_API_VERSION@_la_SOURCES = \
|
2003-11-26 09:12:36 +08:00
|
|
|
gimpthumb.h \
|
|
|
|
gimpthumb-enums.c \
|
|
|
|
gimpthumb-enums.h \
|
2003-12-02 10:06:20 +08:00
|
|
|
gimpthumb-error.c \
|
|
|
|
gimpthumb-error.h \
|
2003-11-26 09:12:36 +08:00
|
|
|
gimpthumb-types.h \
|
|
|
|
gimpthumb-utils.c \
|
|
|
|
gimpthumb-utils.h \
|
|
|
|
gimpthumbnail.c \
|
|
|
|
gimpthumbnail.h
|
|
|
|
|
|
|
|
libgimpthumbinclude_HEADERS = \
|
|
|
|
gimpthumb.h \
|
|
|
|
gimpthumb-enums.h \
|
2003-12-02 10:06:20 +08:00
|
|
|
gimpthumb-error.h \
|
2003-11-26 09:12:36 +08:00
|
|
|
gimpthumb-types.h \
|
2003-11-27 00:49:53 +08:00
|
|
|
gimpthumb-utils.h \
|
2003-11-26 09:12:36 +08:00
|
|
|
gimpthumbnail.h
|
|
|
|
|
2012-05-04 21:37:43 +08:00
|
|
|
libgimpthumb_@GIMP_API_VERSION@_la_LDFLAGS = \
|
2004-01-22 11:51:46 +08:00
|
|
|
-version-info $(LT_VERSION_INFO) \
|
|
|
|
$(no_undefined) \
|
2012-05-12 20:39:44 +08:00
|
|
|
$(libgimpthumb_export_symbols) \
|
|
|
|
$(framework_cocoa)
|
2003-11-26 09:12:36 +08:00
|
|
|
|
2012-05-04 21:37:43 +08:00
|
|
|
libgimpthumb_@GIMP_API_VERSION@_la_LIBADD = \
|
|
|
|
$(GDK_PIXBUF_LIBS) \
|
|
|
|
$(GLIB_LIBS)
|
2003-11-26 09:12:36 +08:00
|
|
|
|
|
|
|
|
2007-06-06 17:16:48 +08:00
|
|
|
noinst_PROGRAMS = gimp-thumbnail-list
|
|
|
|
|
2007-07-27 21:34:57 +08:00
|
|
|
gimp_thumbnail_list_SOURCES = gimp-thumbnail-list.c
|
2007-06-06 17:16:48 +08:00
|
|
|
|
2009-05-25 01:42:39 +08:00
|
|
|
gimp_thumbnail_list_LDADD = \
|
|
|
|
libgimpthumb-$(GIMP_API_VERSION).la \
|
|
|
|
$(GDK_PIXBUF_LIBS) \
|
|
|
|
$(GLIB_LIBS)
|
2007-06-06 17:16:48 +08:00
|
|
|
|
|
|
|
|
2003-11-26 09:12:36 +08:00
|
|
|
install-data-local: install-ms-lib install-libtool-import-lib
|
|
|
|
|
|
|
|
uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# rules to generate built sources
|
|
|
|
#
|
|
|
|
# setup autogeneration dependencies
|
|
|
|
gen_sources = xgen-tec
|
|
|
|
CLEANFILES = $(gen_sources)
|
|
|
|
|
2007-06-07 21:19:44 +08:00
|
|
|
gimpthumb-enums.c: $(srcdir)/gimpthumb-enums.h $(GIMP_MKENUMS)
|
2003-11-26 09:12:36 +08:00
|
|
|
$(GIMP_MKENUMS) \
|
|
|
|
--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"gimpthumb-enums.h\"" \
|
|
|
|
--fprod "\n/* enumerations from \"@filename@\" */" \
|
2004-07-28 19:50:20 +08:00
|
|
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
|
|
|
--vprod " { @VALUENAME@, @valuedesc@, \"@valuenick@\" }," \
|
2008-11-04 05:38:13 +08:00
|
|
|
--vtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (G_UNLIKELY (! type))\n type = g_@type@_register_static (\"@EnumName@\", values);\n\n return type;\n}\n" \
|
2003-11-26 09:12:36 +08:00
|
|
|
$(srcdir)/gimpthumb-enums.h > xgen-tec \
|
|
|
|
&& cp xgen-tec $(@F) \
|
|
|
|
&& rm -f xgen-tec
|