app: s/sprintf/g_snprintf/ in xcf_save_image()
[gimp.git] / libgimpmodule / Makefile.am
blob4a3bd5ecae49d242177f00ff057cbbcda0dd2861
1 ## Process this file with automake to produce Makefile.in
3 libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
4 libgimpconfig = $(top_builddir)/libgimpconfig/libgimpconfig-$(GIMP_API_VERSION).la
6 if PLATFORM_WIN32
7 no_undefined = -no-undefined
8 endif
10 if OS_WIN32
11 gimpmodule_def = gimpmodule.def
12 libgimpmodule_export_symbols = -export-symbols $(srcdir)/gimpmodule.def
14 install-libtool-import-lib:
15         $(INSTALL) .libs/libgimpmodule-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
16         $(INSTALL) $(srcdir)/gimpmodule.def $(DESTDIR)$(libdir)
18 uninstall-libtool-import-lib:
19         -rm $(DESTDIR)$(libdir)/libgimpmodule-$(GIMP_API_VERSION).dll.a
20         -rm $(DESTDIR)$(libdir)/gimpmodule.def
21 else
22 install-libtool-import-lib:
23 uninstall-libtool-import-lib:
24 endif
26 if MS_LIB_AVAILABLE
27 noinst_DATA = gimpmodule-$(GIMP_API_VERSION).lib
29 install-ms-lib:
30         $(INSTALL) gimpmodule-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
32 uninstall-ms-lib:
33         -rm $(DESTDIR)$(libdir)/gimpmodule-$(GIMP_API_VERSION).lib
35 gimpmodule-@GIMP_API_VERSION@.lib: gimpmodule.def
36         lib -name:libgimpmodule-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpmodule.def -out:$@
38 else
39 install-ms-lib:
40 uninstall-ms-lib:
41 endif
43 libgimpmoduleincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpmodule
45 AM_CPPFLAGS = \
46         -DG_LOG_DOMAIN=\"LibGimpModule\"        \
47         -DGIMP_MODULE_COMPILATION               \
48         -I$(top_srcdir)                         \
49         $(GIO_CFLAGS)                           \
50         $(GLIB_CFLAGS)                          \
51         $(GMODULE_NO_EXPORT_CFLAGS)             \
52         -I$(includedir)
54 EXTRA_DIST = \
55         gimpmodule.def
57 lib_LTLIBRARIES = libgimpmodule-@GIMP_API_VERSION@.la
59 libgimpmodule_@GIMP_API_VERSION@_la_SOURCES = \
60         gimpmoduletypes.h       \
61         gimpmodule.c            \
62         gimpmodule.h            \
63         gimpmoduledb.c          \
64         gimpmoduledb.h
66 libgimpmoduleinclude_HEADERS = \
67         gimpmoduletypes.h       \
68         gimpmodule.h            \
69         gimpmoduledb.h
71 libgimpmodule_@GIMP_API_VERSION@_la_LDFLAGS = \
72         -version-info $(LT_VERSION_INFO)        \
73         $(no_undefined)                         \
74         $(libgimpmodule_export_symbols)
76 EXTRA_libgimpmodule_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimpmodule_def)
78 libgimpmodule_@GIMP_API_VERSION@_la_LIBADD = \
79         $(libgimpbase)                  \
80         $(libgimpconfig)                \
81         $(GMODULE_NO_EXPORT_LIBS)       \
82         $(GIO_LIBS)                     \
83         $(GLIB_LIBS)
85 install-data-local: install-ms-lib install-libtool-import-lib
87 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib