app: s/sprintf/g_snprintf/ in xcf_save_image()
[gimp.git] / libgimpcolor / Makefile.am
blob767f3b9076e5e0eab923675945e7ef96ce5af692
1 ## Process this file with automake to produce Makefile.in
3 libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
5 if PLATFORM_WIN32
6 no_undefined = -no-undefined
7 endif
9 if PLATFORM_WIN32
10 else
11 libm = -lm
12 endif
14 if OS_WIN32
15 gimpcolor_def = gimpcolor.def
16 libgimpcolor_export_symbols = -export-symbols $(srcdir)/gimpcolor.def
18 install-libtool-import-lib:
19         $(INSTALL) .libs/libgimpcolor-$(GIMP_API_VERSION).dll.a $(DESTDIR)$(libdir)
20         $(INSTALL) $(srcdir)/gimpcolor.def $(DESTDIR)$(libdir)
22 uninstall-libtool-import-lib:
23         -rm $(DESTDIR)$(libdir)/libgimpcolor-$(GIMP_API_VERSION).dll.a
24         -rm $(DESTDIR)$(libdir)/gimpcolor.def
25 else
26 install-libtool-import-lib:
27 uninstall-libtool-import-lib:
28 endif
30 if MS_LIB_AVAILABLE
31 noinst_DATA = gimpcolor-$(GIMP_API_VERSION).lib
33 install-ms-lib:
34         $(INSTALL) gimpcolor-$(GIMP_API_VERSION).lib $(DESTDIR)$(libdir)
36 uninstall-ms-lib:
37         -rm $(DESTDIR)$(libdir)/gimpcolor-$(GIMP_API_VERSION).lib
39 gimpcolor-@GIMP_API_VERSION@.lib: gimpcolor.def
40         lib -name:libgimpcolor-$(GIMP_API_VERSION)-@LT_CURRENT_MINUS_AGE@.dll -def:gimpcolor.def -out:$@
42 else
43 install-ms-lib:
44 uninstall-ms-lib:
45 endif
47 libgimpcolorincludedir = $(includedir)/gimp-$(GIMP_API_VERSION)/libgimpcolor
49 AM_CPPFLAGS = \
50         -DG_LOG_DOMAIN=\"LibGimpColor\" \
51         -DGIMP_COLOR_COMPILATION        \
52         -I$(top_srcdir)                 \
53         $(GEGL_CFLAGS)                  \
54         $(CAIRO_CFLAGS)                 \
55         $(GDK_PIXBUF_CFLAGS)            \
56         $(LCMS_CFLAGS)                  \
57         -I$(includedir)
59 EXTRA_DIST = \
60         gimpcolor.def
62 lib_LTLIBRARIES = libgimpcolor-@GIMP_API_VERSION@.la
64 libgimpcolor_@GIMP_API_VERSION@_la_SOURCES = \
65         gimpcolor.h                     \
66         gimpcolortypes.h                \
67         gimpadaptivesupersample.c       \
68         gimpadaptivesupersample.h       \
69         gimpbilinear.c                  \
70         gimpbilinear.h                  \
71         gimpcairo.c                     \
72         gimpcairo.h                     \
73         gimpcmyk.c                      \
74         gimpcmyk.h                      \
75         gimpcolormanaged.c              \
76         gimpcolormanaged.h              \
77         gimpcolorprofile.c              \
78         gimpcolorprofile.h              \
79         gimpcolorspace.c                \
80         gimpcolorspace.h                \
81         gimpcolortransform.c            \
82         gimpcolortransform.h            \
83         gimphsl.c                       \
84         gimphsl.h                       \
85         gimphsv.c                       \
86         gimphsv.h                       \
87         gimppixbuf.c                    \
88         gimppixbuf.h                    \
89         gimprgb.c                       \
90         gimprgb.h                       \
91         gimprgb-parse.c
93 libgimpcolorinclude_HEADERS = \
94         gimpcolor.h                     \
95         gimpcolortypes.h                \
96         gimpadaptivesupersample.h       \
97         gimpbilinear.h                  \
98         gimpcairo.h                     \
99         gimpcmyk.h                      \
100         gimpcolormanaged.h              \
101         gimpcolorprofile.h              \
102         gimpcolorspace.h                \
103         gimpcolortransform.h            \
104         gimphsl.h                       \
105         gimphsv.h                       \
106         gimppixbuf.h                    \
107         gimprgb.h
109 libgimpcolor_@GIMP_API_VERSION@_la_LDFLAGS = \
110         -version-info $(LT_VERSION_INFO)        \
111         $(no_undefined)                         \
112         $(libgimpcolor_export_symbols)
114 EXTRA_libgimpcolor_@GIMP_API_VERSION@_la_DEPENDENCIES = $(gimpcolor_def)
116 libgimpcolor_@GIMP_API_VERSION@_la_LIBADD = \
117         $(libgimpbase)          \
118         $(GEGL_LIBS)            \
119         $(CAIRO_LIBS)           \
120         $(GDK_PIXBUF_LIBS)      \
121         $(LCMS_LIBS)            \
122         $(libm)
126 # test programs, not to be built by default and never installed
129 TESTS = test-color-parser$(EXEEXT)
131 EXTRA_PROGRAMS = test-color-parser
133 test_color_parser_DEPENDENCIES = \
134         $(libgimpbase)  \
135         $(top_builddir)/libgimpcolor/libgimpcolor-$(GIMP_API_VERSION).la
137 test_color_parser_LDADD = \
138         $(CAIRO_LIBS)           \
139         $(GLIB_LIBS)            \
140         $(test_color_parser_DEPENDENCIES)
143 CLEANFILES = $(EXTRA_PROGRAMS)
146 install-data-local: install-ms-lib install-libtool-import-lib
148 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib