## Process this file with automake to produce Makefile.in

noinst_LIBRARIES = libapptools.a

libapptools_a_sources = \
	tools-enums.h			\
	tools-types.h			\
	tools.c				\
	tools.h				\
	gimpairbrushtool.c		\
	gimpairbrushtool.h		\
	gimpblendoptions.c		\
	gimpblendoptions.h		\
	gimpblendtool.c			\
	gimpblendtool.h			\
	gimpbrightnesscontrasttool.c	\
	gimpbrightnesscontrasttool.h	\
	gimpbucketfilloptions.c		\
	gimpbucketfilloptions.h		\
	gimpbucketfilltool.c		\
	gimpbucketfilltool.h		\
	gimpbycolorselecttool.c		\
	gimpbycolorselecttool.h		\
	gimpclonetool.c			\
	gimpclonetool.h			\
	gimpcolorbalancetool.c		\
	gimpcolorbalancetool.h		\
	gimpcolorizetool.c		\
	gimpcolorizetool.h		\
	gimpcolorpickeroptions.c	\
	gimpcolorpickeroptions.h	\
	gimpcolorpickertool.c		\
	gimpcolorpickertool.h		\
	gimpconvolvetool.c		\
	gimpconvolvetool.h		\
	gimpcropoptions.c		\
	gimpcropoptions.h		\
	gimpcroptool.c			\
	gimpcroptool.h			\
	gimpcurvestool.c		\
	gimpcurvestool.h		\
	gimpdodgeburntool.c		\
	gimpdodgeburntool.h		\
	gimpdrawtool.c			\
	gimpdrawtool.h			\
	gimpeditselectiontool.c		\
	gimpeditselectiontool.h		\
	gimpellipseselecttool.c		\
	gimpellipseselecttool.h		\
	gimperasertool.c		\
	gimperasertool.h		\
	gimpflipoptions.c		\
	gimpflipoptions.h		\
	gimpfliptool.c			\
	gimpfliptool.h			\
	gimpfreeselecttool.c		\
	gimpfreeselecttool.h		\
	gimpfuzzyselecttool.c		\
	gimpfuzzyselecttool.h		\
	gimphistogramtool.c		\
	gimphistogramtool.h		\
	gimphuesaturationtool.c		\
	gimphuesaturationtool.h		\
	gimpimagemaptool.c		\
	gimpimagemaptool.h		\
	gimpinkoptions.c		\
	gimpinkoptions.h		\
	gimpinktool.c			\
	gimpinktool.h			\
	gimpinktool-blob.c		\
	gimpinktool-blob.h		\
	gimpiscissorstool.c		\
	gimpiscissorstool.h		\
	gimplevelstool.c		\
	gimplevelstool.h		\
	gimpmagnifyoptions.c		\
	gimpmagnifyoptions.h		\
	gimpmagnifytool.c		\
	gimpmagnifytool.h		\
	gimpmeasureoptions.c		\
	gimpmeasureoptions.h		\
	gimpmeasuretool.c		\
	gimpmeasuretool.h		\
	gimpmoveoptions.c		\
	gimpmoveoptions.h		\
	gimpmovetool.c			\
	gimpmovetool.h			\
	gimppaintbrushtool.c		\
	gimppaintbrushtool.h		\
	gimppainttool.c			\
	gimppainttool.h			\
	gimppenciltool.c		\
	gimppenciltool.h		\
	gimpperspectivetool.c		\
	gimpperspectivetool.h		\
	gimpposterizetool.c		\
	gimpposterizetool.h		\
	gimprectselecttool.c		\
	gimprectselecttool.h		\
	gimprotatetool.c		\
	gimprotatetool.h		\
	gimpscaletool.c			\
	gimpscaletool.h			\
	gimpselectionoptions.c		\
	gimpselectionoptions.h		\
	gimpselectiontool.c		\
	gimpselectiontool.h		\
	gimpsheartool.c			\
	gimpsheartool.h			\
	gimpsmudgetool.c		\
	gimpsmudgetool.h		\
	gimptextoptions.c		\
	gimptextoptions.h		\
	gimptexttool.c			\
	gimptexttool.h			\
	gimpthresholdtool.c		\
	gimpthresholdtool.h		\
	gimptool.c			\
	gimptool.h			\
	gimptoolcontrol.c		\
	gimptoolcontrol.h		\
	gimptransformoptions.c     	\
	gimptransformoptions.h     	\
	gimptransformtool.c		\
	gimptransformtool.h		\
	gimptransformtool-undo.c	\
	gimptransformtool-undo.h	\
	gimpvectoroptions.c		\
	gimpvectoroptions.h		\
	gimpvectortool.c		\
	gimpvectortool.h		\
	paint_options.c			\
	paint_options.h			\
	tool_options.c			\
	tool_options.h			\
	tool_manager.c			\
	tool_manager.h

libapptools_a_built_sources = tools-enums.c

libapptools_a_SOURCES = $(libapptools_a_built_sources) $(libapptools_a_sources)


AM_CPPFLAGS = \
	-DG_LOG_DOMAIN=\"Gimp-Tools\"	\
	@GIMP_THREAD_FLAGS@ 		\
	@GIMP_MP_FLAGS@

INCLUDES = \
	-I$(top_srcdir)		\
	-I$(top_srcdir)/app	\
	$(GTK_CFLAGS)		\
	-I$(includedir)


#
# rules to generate built sources
#
# setup autogeneration dependencies
gen_sources = xgen-tec
CLEANFILES = $(gen_sources)

$(srcdir)/tools-enums.c: $(srcdir)/tools-enums.h $(GIMP_MKENUMS)
	$(GIMP_MKENUMS) \
		--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"core/core-enums.h\"\n#include \"tools-enums.h\"\n#include \"gimp-intl.h\"" \
		--fprod "\n/* enumerations from \"@filename@\" */" \
		--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{" \
		--vprod "  { @VALUENAME@, @valuedesc@, \"@valuenick@\" }," \
		--vtail "  { 0, NULL, NULL }\n};\n\nGType\n@enum_name@_get_type (void)\n{\n  static GType enum_type = 0;\n\n  if (!enum_type)\n    enum_type = g_enum_register_static (\"@EnumName@\", @enum_name@_enum_values);\n\n  return enum_type;\n}\n" \
		$(srcdir)/tools-enums.h > xgen-tec \
	&& cp xgen-tec $(@F) \
	&& rm -f xgen-tec
