2001-05-21 08:05:48 +08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2002-03-30 07:10:18 +08:00
|
|
|
if PLATFORM_WIN32
|
|
|
|
no_undefined = -no-undefined
|
|
|
|
endif
|
|
|
|
|
|
|
|
if OS_WIN32
|
2007-05-14 07:12:52 +08:00
|
|
|
ole32_lib = -lole32
|
2002-03-30 07:10:18 +08:00
|
|
|
gimpbase_def = gimpbase.def
|
|
|
|
libgimpbase_export_symbols = -export-symbols gimpbase.def
|
|
|
|
|
|
|
|
install-libtool-import-lib:
|
2004-01-22 11:51:46 +08:00
|
|
|
$(INSTALL) .libs/libgimpbase-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
|
2003-10-10 05:33:27 +08:00
|
|
|
$(INSTALL) gimpbase.def $(DESTDIR)$(libdir)
|
2002-03-30 07:10:18 +08:00
|
|
|
|
|
|
|
uninstall-libtool-import-lib:
|
2004-01-22 11:51:46 +08:00
|
|
|
-rm $(DESTDIR)$(libdir)/libgimpbase-$(GIMP_API_VERSION).dll.a
|
2003-10-10 05:33:27 +08:00
|
|
|
-rm $(DESTDIR)$(libdir)/gimpbase.def
|
2002-03-30 07:10:18 +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 = gimpbase-$(GIMP_API_VERSION).lib
|
2002-03-30 07:10:18 +08:00
|
|
|
|
|
|
|
install-ms-lib:
|
2004-01-22 11:51:46 +08:00
|
|
|
$(INSTALL) gimpbase-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
|
2002-03-30 07:10:18 +08:00
|
|
|
|
|
|
|
uninstall-ms-lib:
|
2004-01-22 11:51:46 +08:00
|
|
|
-rm $(DESTDIR)$(libdir)/gimpbase-$(GIMP_API_VERSION).lib
|
2002-03-30 07:10:18 +08:00
|
|
|
|
2004-01-22 11:51:46 +08:00
|
|
|
gimpbase-@GIMP_API_VERSION@.lib: gimpbase.def
|
|
|
|
lib -name:libgimpbase-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpbase.def -out:$@
|
2002-03-30 07:10:18 +08:00
|
|
|
|
|
|
|
else
|
|
|
|
install-ms-lib:
|
|
|
|
uninstall-ms-lib:
|
|
|
|
endif
|
|
|
|
|
2004-01-22 11:51:46 +08:00
|
|
|
libgimpbaseincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpbase
|
2001-05-21 08:05:48 +08:00
|
|
|
|
2002-06-08 07:00:46 +08:00
|
|
|
AM_CPPFLAGS = \
|
2002-03-30 07:10:18 +08:00
|
|
|
-DPREFIX=\""$(prefix)"\" \
|
2001-05-21 08:05:48 +08:00
|
|
|
-DGIMPDIR=\""$(gimpdir)"\" \
|
|
|
|
-DDATADIR=\""$(gimpdatadir)"\" \
|
2005-04-05 07:06:32 +08:00
|
|
|
-DLOCALEDIR=\""$(gimplocaledir)"\" \
|
2001-12-11 04:43:51 +08:00
|
|
|
-DPLUGINDIR=\""$(gimpplugindir)"\" \
|
2001-05-21 08:05:48 +08:00
|
|
|
-DSYSCONFDIR=\""$(gimpsysconfdir)"\" \
|
2005-11-06 09:06:41 +08:00
|
|
|
-DGIMP_PACKAGE=\""@PACKAGE@"\" \
|
|
|
|
-DGIMP_DATA_VERSION=\"$(GIMP_DATA_VERSION)\" \
|
|
|
|
-DGIMP_SYSCONF_VERSION=\"$(GIMP_SYSCONF_VERSION)\" \
|
|
|
|
-DGIMP_PLUGIN_VERSION=\"$(GIMP_PLUGIN_VERSION)\" \
|
2007-06-25 20:41:59 +08:00
|
|
|
-DG_LOG_DOMAIN=\"LibGimpBase\"
|
2001-05-21 08:05:48 +08:00
|
|
|
|
2006-06-02 17:58:03 +08:00
|
|
|
AM_CCASFLAGS = \
|
|
|
|
-I$(top_builddir) \
|
|
|
|
-I$(top_srcdir)
|
|
|
|
|
2002-06-08 07:00:46 +08:00
|
|
|
INCLUDES = \
|
2007-06-25 20:41:59 +08:00
|
|
|
-I$(top_srcdir) \
|
|
|
|
$(GLIB_CFLAGS) \
|
|
|
|
$(BINRELOC_CFLAGS) \
|
2002-06-08 07:00:46 +08:00
|
|
|
-I$(includedir)
|
2001-05-21 08:05:48 +08:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2003-08-27 06:56:30 +08:00
|
|
|
makefile.msc \
|
2001-05-21 08:05:48 +08:00
|
|
|
gimpbase.def
|
|
|
|
|
2004-03-21 04:45:17 +08:00
|
|
|
lib_LTLIBRARIES = libgimpbase-2.0.la
|
2001-05-21 08:05:48 +08:00
|
|
|
|
2001-05-22 08:36:38 +08:00
|
|
|
# help `make' along by giving another name for the file, which it knows
|
|
|
|
# how to build
|
|
|
|
../libgimpbase/gimpversion.h: gimpversion.h
|
|
|
|
@:
|
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
|
|
|
|
libgimpbase_sources = \
|
2001-05-21 08:05:48 +08:00
|
|
|
gimpbase.h \
|
2004-07-29 20:33:15 +08:00
|
|
|
gimpbaseenums.h \
|
2001-05-21 08:05:48 +08:00
|
|
|
gimpbasetypes.h \
|
2004-07-29 20:33:15 +08:00
|
|
|
gimpbasetypes.c \
|
2002-10-23 22:55:07 +08:00
|
|
|
gimplimits.h \
|
2006-01-31 00:10:56 +08:00
|
|
|
gimpparam.h \
|
2002-10-23 22:55:07 +08:00
|
|
|
gimpversion.h \
|
|
|
|
\
|
2003-11-16 06:53:28 +08:00
|
|
|
gimpbase-private.c \
|
|
|
|
gimpbase-private.h \
|
2004-09-03 08:06:21 +08:00
|
|
|
gimpchecks.c \
|
|
|
|
gimpchecks.h \
|
2006-06-02 17:58:03 +08:00
|
|
|
gimpcpuaccel.c \
|
|
|
|
gimpcpuaccel.h \
|
2002-10-23 22:55:07 +08:00
|
|
|
gimpdatafiles.c \
|
|
|
|
gimpdatafiles.h \
|
2001-05-21 08:05:48 +08:00
|
|
|
gimpenv.c \
|
|
|
|
gimpenv.h \
|
2004-07-28 00:39:00 +08:00
|
|
|
gimpmemsize.c \
|
|
|
|
gimpmemsize.h \
|
2001-05-21 08:05:48 +08:00
|
|
|
gimpparasite.c \
|
|
|
|
gimpparasite.h \
|
|
|
|
gimpparasiteio.c \
|
|
|
|
gimpparasiteio.h \
|
|
|
|
gimpprotocol.c \
|
|
|
|
gimpprotocol.h \
|
2006-08-29 22:46:32 +08:00
|
|
|
gimprectangle.c \
|
|
|
|
gimprectangle.h \
|
2005-11-06 09:06:41 +08:00
|
|
|
gimpreloc.c \
|
|
|
|
gimpreloc.h \
|
2002-10-23 22:55:07 +08:00
|
|
|
gimpsignal.c \
|
|
|
|
gimpsignal.h \
|
2003-11-16 06:53:28 +08:00
|
|
|
gimpunit.c \
|
|
|
|
gimpunit.h \
|
2003-02-06 06:15:39 +08:00
|
|
|
gimputils.c \
|
|
|
|
gimputils.h \
|
2003-11-05 13:19:14 +08:00
|
|
|
gimpwin32-io.h \
|
2001-05-21 08:05:48 +08:00
|
|
|
gimpwire.c \
|
2007-10-31 21:09:46 +08:00
|
|
|
gimpwire.h
|
2001-05-21 08:05:48 +08:00
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
libgimpbase_built_sources = \
|
|
|
|
gimpbaseenums.c
|
|
|
|
|
|
|
|
libgimpbase_2_0_la_SOURCES = $(libgimpbase_sources) $(libgimpbase_built_sources)
|
|
|
|
|
|
|
|
|
2002-06-08 07:00:46 +08:00
|
|
|
libgimpbaseinclude_HEADERS = \
|
2001-05-21 08:05:48 +08:00
|
|
|
gimpbase.h \
|
2004-07-29 20:33:15 +08:00
|
|
|
gimpbaseenums.h \
|
2001-05-21 08:05:48 +08:00
|
|
|
gimpbasetypes.h \
|
2006-06-03 05:31:56 +08:00
|
|
|
gimpcpuaccel.h \
|
2001-05-21 08:05:48 +08:00
|
|
|
gimplimits.h \
|
2006-01-31 00:10:56 +08:00
|
|
|
gimpparam.h \
|
2002-10-23 22:55:07 +08:00
|
|
|
gimpversion.h \
|
|
|
|
\
|
2004-09-03 08:06:21 +08:00
|
|
|
gimpchecks.h \
|
2002-10-23 22:55:07 +08:00
|
|
|
gimpdatafiles.h \
|
|
|
|
gimpenv.h \
|
2004-07-28 00:39:00 +08:00
|
|
|
gimpmemsize.h \
|
2001-05-21 08:05:48 +08:00
|
|
|
gimpparasite.h \
|
|
|
|
gimpparasiteio.h \
|
2006-08-29 22:46:32 +08:00
|
|
|
gimprectangle.h \
|
2003-11-16 06:53:28 +08:00
|
|
|
gimpsignal.h \
|
|
|
|
gimpunit.h \
|
|
|
|
gimputils.h
|
2001-06-08 01:20:50 +08:00
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
|
2004-03-21 04:45:17 +08:00
|
|
|
libgimpbase_2_0_la_LDFLAGS = \
|
2004-01-22 11:51:46 +08:00
|
|
|
-version-info $(LT_VERSION_INFO) \
|
|
|
|
$(no_undefined) \
|
2007-05-15 00:31:50 +08:00
|
|
|
$(libgimpbase_export_symbols) \
|
|
|
|
$(CARBON_LDFLAGS)
|
2001-05-21 08:05:48 +08:00
|
|
|
|
2004-03-21 04:45:17 +08:00
|
|
|
libgimpbase_2_0_la_DEPENDENCIES = $(gimpbase_def)
|
2002-03-30 07:10:18 +08:00
|
|
|
|
2007-05-14 07:12:52 +08:00
|
|
|
libgimpbase_2_0_la_LIBADD = $(GLIB_LIBS) $(ole32_lib)
|
2002-03-30 07:10:18 +08:00
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
|
2002-03-30 07:10:18 +08:00
|
|
|
install-data-local: install-ms-lib install-libtool-import-lib
|
|
|
|
|
|
|
|
uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib
|
2004-07-29 20:33:15 +08:00
|
|
|
|
2006-06-02 17:58:03 +08:00
|
|
|
#
|
|
|
|
# test programs, not to be built by default and never installed
|
|
|
|
#
|
|
|
|
|
|
|
|
TESTS = test-cpu-accel
|
|
|
|
|
|
|
|
test_cpu_accel_SOURCES = test-cpu-accel.c
|
|
|
|
|
|
|
|
test_cpu_accel_DEPENDENCIES = \
|
|
|
|
$(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
|
|
|
|
|
|
|
|
test_cpu_accel_LDADD = \
|
|
|
|
$(GLIB_LIBS) \
|
|
|
|
$(test_cpu_accel_DEPENDENCIES)
|
|
|
|
|
|
|
|
|
|
|
|
EXTRA_PROGRAMS = test-cpu-accel
|
|
|
|
|
2004-07-29 20:33:15 +08:00
|
|
|
|
|
|
|
#
|
|
|
|
# rules to generate built sources
|
|
|
|
#
|
|
|
|
|
|
|
|
gen_sources = xgen-bec
|
2006-06-02 17:58:03 +08:00
|
|
|
CLEANFILES = $(EXTRA_PROGRAMS) $(gen_sources)
|
2004-07-29 20:33:15 +08:00
|
|
|
|
|
|
|
$(srcdir)/gimpbaseenums.c: $(srcdir)/gimpbaseenums.h $(GIMP_MKENUMS)
|
|
|
|
$(GIMP_MKENUMS) \
|
2007-10-31 21:09:46 +08:00
|
|
|
--fhead "#include \"config.h\"\n#include <glib-object.h>\n#undef GIMP_DISABLE_DEPRECATED\n#include \"gimpbasetypes.h\"\n#include \"libgimp/libgimp-intl.h\"" \
|
2004-07-29 20:33:15 +08:00
|
|
|
--fprod "\n/* enumerations from \"@filename@\" */" \
|
|
|
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static const G@Type@Value values[] =\n {" \
|
2004-10-26 01:55:25 +08:00
|
|
|
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
|
|
|
|
--vtail " { 0, NULL, NULL }\n };\n" \
|
|
|
|
--dhead " static const Gimp@Type@Desc descs[] =\n {" \
|
|
|
|
--dprod " { @VALUENAME@, @valuedesc@, @valuehelp@ }," \
|
|
|
|
--dtail " { 0, NULL, NULL }\n };\n\n static GType type = 0;\n\n if (! type)\n {\n type = g_@type@_register_static (\"@EnumName@\", values);\n gimp_type_set_translation_domain (type, GETTEXT_PACKAGE \"-libgimp\");\n gimp_@type@_set_value_descriptions (type, descs);\n }\n\n return type;\n}\n" \
|
2004-07-29 20:33:15 +08:00
|
|
|
$(srcdir)/gimpbaseenums.h > xgen-bec \
|
|
|
|
&& cp xgen-bec $(@F) \
|
|
|
|
&& rm -f xgen-bec
|
2007-05-06 21:54:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
DISTCLEANFILES = gimpversion.h
|