1## Process this file with automake to produce Makefile.in
2
3AM_CPPFLAGS = \
4	-DG_LOG_DOMAIN=\"Gimp-Tools\"	\
5	-I$(top_builddir)		\
6	-I$(top_srcdir)			\
7	-I$(top_builddir)/app		\
8	-I$(top_srcdir)/app		\
9	$(GEGL_CFLAGS)			\
10	$(GTK_CFLAGS)			\
11	-I$(includedir)
12
13noinst_LIBRARIES = libapptools.a
14
15libapptools_a_sources = \
16	tools-enums.h			\
17	tools-types.h			\
18	gimp-tool-options-manager.c	\
19	gimp-tool-options-manager.h	\
20	gimp-tools.c			\
21	gimp-tools.h			\
22	tool_manager.c			\
23	tool_manager.h			\
24	\
25	gimpairbrushtool.c		\
26	gimpairbrushtool.h		\
27	gimpalignoptions.c		\
28	gimpalignoptions.h		\
29	gimpaligntool.c			\
30	gimpaligntool.h			\
31	gimpbrightnesscontrasttool.c	\
32	gimpbrightnesscontrasttool.h	\
33	gimpbrushtool.c			\
34	gimpbrushtool.h			\
35	gimpbucketfilloptions.c		\
36	gimpbucketfilloptions.h		\
37	gimpbucketfilltool.c		\
38	gimpbucketfilltool.h		\
39	gimpbycolorselecttool.c		\
40	gimpbycolorselecttool.h		\
41	gimpcageoptions.c		\
42	gimpcageoptions.h		\
43	gimpcagetool.c			\
44	gimpcagetool.h			\
45	gimpcloneoptions-gui.c		\
46	gimpcloneoptions-gui.h		\
47	gimpclonetool.c			\
48	gimpclonetool.h			\
49	gimpcoloroptions.c		\
50	gimpcoloroptions.h		\
51	gimpcolortool.c			\
52	gimpcolortool.h			\
53	gimpcolorpickeroptions.c	\
54	gimpcolorpickeroptions.h	\
55	gimpcolorpickertool.c		\
56	gimpcolorpickertool.h		\
57	gimpconvolvetool.c		\
58	gimpconvolvetool.h		\
59	gimpcropoptions.c		\
60	gimpcropoptions.h		\
61	gimpcroptool.c			\
62	gimpcroptool.h			\
63	gimpcurvestool.c		\
64	gimpcurvestool.h		\
65	gimpdodgeburntool.c		\
66	gimpdodgeburntool.h		\
67	gimpdrawtool.c			\
68	gimpdrawtool.h			\
69	gimpeditselectiontool.c		\
70	gimpeditselectiontool.h		\
71	gimpellipseselecttool.c		\
72	gimpellipseselecttool.h		\
73	gimperasertool.c		\
74	gimperasertool.h		\
75	gimpfilteroptions.c		\
76	gimpfilteroptions.h		\
77	gimpfiltertool.c		\
78	gimpfiltertool.h		\
79	gimpfiltertool-settings.c	\
80	gimpfiltertool-settings.h	\
81	gimpfiltertool-widgets.c	\
82	gimpfiltertool-widgets.h	\
83	gimpflipoptions.c		\
84	gimpflipoptions.h		\
85	gimpfliptool.c			\
86	gimpfliptool.h			\
87	gimpforegroundselectoptions.c	\
88	gimpforegroundselectoptions.h	\
89	gimpforegroundselecttool.c	\
90	gimpforegroundselecttool.h	\
91	gimpforegroundselecttoolundo.c	\
92	gimpforegroundselecttoolundo.h	\
93	gimpfreeselecttool.c		\
94	gimpfreeselecttool.h		\
95	gimpfuzzyselecttool.c		\
96	gimpfuzzyselecttool.h		\
97	gimpgegltool.c			\
98	gimpgegltool.h			\
99	gimpgenerictransformtool.c	\
100	gimpgenerictransformtool.h	\
101	gimpgradientoptions.c		\
102	gimpgradientoptions.h		\
103	gimpgradienttool.c		\
104	gimpgradienttool.h		\
105	gimpgradienttool-editor.c	\
106	gimpgradienttool-editor.h	\
107	gimpguidetool.c			\
108	gimpguidetool.h			\
109	gimphandletransformoptions.c	\
110	gimphandletransformoptions.h	\
111	gimphandletransformtool.c	\
112	gimphandletransformtool.h	\
113	gimphealtool.c			\
114	gimphealtool.h			\
115	gimphistogramoptions.c		\
116	gimphistogramoptions.h		\
117	gimpinkoptions-gui.c		\
118	gimpinkoptions-gui.h		\
119	gimpinktool.c			\
120	gimpinktool.h			\
121	gimpiscissorsoptions.c		\
122	gimpiscissorsoptions.h		\
123	gimpiscissorstool.c		\
124	gimpiscissorstool.h		\
125	gimplevelstool.c		\
126	gimplevelstool.h		\
127	gimpoffsettool.c		\
128	gimpoffsettool.h		\
129	gimpoperationtool.c		\
130	gimpoperationtool.h		\
131	gimpmagnifyoptions.c		\
132	gimpmagnifyoptions.h		\
133	gimpmagnifytool.c		\
134	gimpmagnifytool.h		\
135	gimpmeasureoptions.c		\
136	gimpmeasureoptions.h		\
137	gimpmeasuretool.c		\
138	gimpmeasuretool.h		\
139	gimpmoveoptions.c		\
140	gimpmoveoptions.h		\
141	gimpmovetool.c			\
142	gimpmovetool.h			\
143	gimpmybrushoptions-gui.c	\
144	gimpmybrushoptions-gui.h	\
145	gimpmybrushtool.c		\
146	gimpmybrushtool.h		\
147	gimpnpointdeformationoptions.c	\
148	gimpnpointdeformationoptions.h	\
149	gimpnpointdeformationtool.c	\
150	gimpnpointdeformationtool.h	\
151	gimppaintbrushtool.c		\
152	gimppaintbrushtool.h		\
153	gimppaintoptions-gui.c		\
154	gimppaintoptions-gui.h		\
155	gimppainttool.c			\
156	gimppainttool.h			\
157	gimppainttool-paint.c		\
158	gimppainttool-paint.h		\
159	gimppenciltool.c		\
160	gimppenciltool.h		\
161	gimpperspectiveclonetool.c	\
162	gimpperspectiveclonetool.h	\
163	gimpperspectivetool.c		\
164	gimpperspectivetool.h		\
165	gimppolygonselecttool.c		\
166	gimppolygonselecttool.h		\
167	gimprectangleselecttool.c	\
168	gimprectangleselecttool.h	\
169	gimprectangleselectoptions.c	\
170	gimprectangleselectoptions.h	\
171	gimprectangleoptions.c		\
172	gimprectangleoptions.h		\
173	gimpregionselectoptions.c	\
174	gimpregionselectoptions.h	\
175	gimpregionselecttool.c		\
176	gimpregionselecttool.h		\
177	gimprotatetool.c		\
178	gimprotatetool.h		\
179	gimpsamplepointtool.c		\
180	gimpsamplepointtool.h		\
181	gimpscaletool.c			\
182	gimpscaletool.h			\
183	gimpseamlesscloneoptions.c	\
184	gimpseamlesscloneoptions.h	\
185	gimpseamlessclonetool.c		\
186	gimpseamlessclonetool.h		\
187	gimpselectionoptions.c		\
188	gimpselectionoptions.h		\
189	gimpselectiontool.c		\
190	gimpselectiontool.h		\
191	gimpsheartool.c			\
192	gimpsheartool.h			\
193	gimpsmudgetool.c		\
194	gimpsmudgetool.h		\
195	gimpsourcetool.c		\
196	gimpsourcetool.h		\
197	gimptextoptions.c		\
198	gimptextoptions.h		\
199	gimptexttool.c			\
200	gimptexttool.h			\
201	gimptexttool-editor.c		\
202	gimptexttool-editor.h		\
203	gimpthresholdtool.c		\
204	gimpthresholdtool.h		\
205	gimptilehandleriscissors.c	\
206	gimptilehandleriscissors.h	\
207	gimptool.c			\
208	gimptool.h			\
209	gimptool-progress.c		\
210	gimptool-progress.h		\
211	gimptoolcontrol.c		\
212	gimptoolcontrol.h		\
213	gimptooloptions-gui.c		\
214	gimptooloptions-gui.h		\
215	gimptools-utils.c		\
216	gimptools-utils.h		\
217	gimptransform3doptions.c	\
218	gimptransform3doptions.h	\
219	gimptransform3dtool.c		\
220	gimptransform3dtool.h		\
221	gimptransformgridoptions.c     	\
222	gimptransformgridoptions.h     	\
223	gimptransformgridtool.c     	\
224	gimptransformgridtool.h     	\
225	gimptransformgridtoolundo.c	\
226	gimptransformgridtoolundo.h	\
227	gimptransformoptions.c     	\
228	gimptransformoptions.h     	\
229	gimptransformtool.c		\
230	gimptransformtool.h		\
231	gimpunifiedtransformtool.c	\
232	gimpunifiedtransformtool.h	\
233	gimpvectoroptions.c		\
234	gimpvectoroptions.h		\
235	gimpvectortool.c		\
236	gimpvectortool.h		\
237	gimpwarpoptions.c		\
238	gimpwarpoptions.h		\
239	gimpwarptool.c			\
240	gimpwarptool.h
241
242libapptools_a_built_sources = tools-enums.c
243
244libapptools_a_SOURCES = $(libapptools_a_built_sources) $(libapptools_a_sources)
245
246#
247# rules to generate built sources
248#
249# setup autogeneration dependencies
250gen_sources = xgen-tec
251CLEANFILES = $(gen_sources)
252
253xgen-tec: $(srcdir)/tools-enums.h $(GIMP_MKENUMS) Makefile.am
254	$(AM_V_GEN) $(GIMP_MKENUMS) \
255		--fhead "#include \"config.h\"\n#include <gio/gio.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"core/core-enums.h\"\n#include \"tools-enums.h\"\n#include \"gimp-intl.h\"" \
256		--fprod "\n/* enumerations from \"@basename@\" */" \
257		--vhead "GType\n@enum_name@_get_type (void)\n{\n  static const G@Type@Value values[] =\n  {" \
258		--vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
259		--vtail "    { 0, NULL, NULL }\n  };\n" \
260		--dhead "  static const Gimp@Type@Desc descs[] =\n  {" \
261		--dprod "    { @VALUENAME@, @valuedesc@, @valuehelp@ },@if ('@valueabbrev@' ne 'NULL')@\n    /* Translators: this is an abbreviated version of @valueudesc@.\n       Keep it short. */\n    { @VALUENAME@, @valueabbrev@, NULL },@endif@" \
262		--dtail "    { 0, NULL, NULL }\n  };\n\n  static GType type = 0;\n\n  if (G_UNLIKELY (! type))\n    {\n      type = g_@type@_register_static (\"@EnumName@\", values);\n      gimp_type_set_translation_context (type, \"@enumnick@\");\n      gimp_@type@_set_value_descriptions (type, descs);\n    }\n\n  return type;\n}\n" \
263		$< > $@
264
265# copy the generated enum file back to the source directory only if it's
266# changed; otherwise, only update its timestamp, so that the recipe isn't
267# executed again on the next build, however, allow this to (harmlessly) fail,
268# to support building from a read-only source tree.
269$(srcdir)/tools-enums.c: xgen-tec
270	$(AM_V_GEN) if ! cmp -s $< $@; then \
271		cp $< $@; \
272	else \
273		touch $@ 2> /dev/null \
274		|| true; \
275	fi
276