gimp/app/base/Makefile.am
Michael Natterer 163a3f4155 More color correction stuff cleanup:
2002-09-04  Michael Natterer  <mitch@gimp.org>

	More color correction stuff cleanup:

	* app/base/Makefile.am
	* app/base/base-types.h
	* app/base/levels.[ch]: new files containing levels_lut_func(), a
	new "Levels" parameter struct and the "auto levels" stuff.

	* app/base/lut-funcs.[ch]: removed the levels stuff here, added
	lots of g_return_if_fail().

	* app/base/color-balance.[ch]
	* app/base/hue-saturation.[ch]: added init() and reset() functions
	so we don't need to duplicate this code in the tool and the pdb
	wrappers.

	* app/base/curves.[ch]: s/gint/GimpHistogramChannel/g, made
	curves_channel_reset() initialize the curves array.

	* app/tools/gimpcolorbalancetool.[ch]: use the new functions,
	moved the "Range" frame to the top, added a per-range "Reset"
	button, made the global "Reset" button reset all ranges and
	the "Preserve Luminosity" toggle.

	* app/tools/gimpcurvestool.[ch]: don't initialize the curves
	array manually, as curves_channel_reset() does that,
	s/gint/GimpHistogramChannel/g.

	* app/tools/gimphuesaturationtool.c: use the new functions, added
	a per-channel "Reset" button and made the global "Reset" button
	reset all channels, cleaned up the GUI update function.

	* app/tools/gimplevelstool.[ch]: changed to use the new Levels
	parameter struct and it's utility functions. Removed stuff
	which now lives in base/levels.c

	* app/tools/gimpimagemaptool.c: align the "Preview" button
	bottom-left, not bottom-right.

	* tools/pdbgen/pdb/color.pdb: use the new stuff and removed
	uglyness because using the "Levels" struct makes the code more
	straightforward.

	* app/pdb/color_cmds.c: regenerated.
2002-09-04 15:25:15 +00:00

100 lines
2.2 KiB
Makefile

## Process this file with automake to produce Makefile.in
noinst_LIBRARIES = libappbase.a
if HAVE_ASM_MMX
mmx_sources = detect-mmx.S
else
mmx_sources =
endif
libappbase_a_SOURCES = \
base.c \
base.h \
base-enums.c \
base-enums.h \
base-types.h \
base-config.c \
base-config.h \
boundary.c \
boundary.h \
brush-scale.c \
brush-scale.h \
color-balance.c \
color-balance.h \
curves.c \
curves.h \
$(mmx_sources) \
detect-mmx.h \
gimphistogram.c \
gimphistogram.h \
gimplut.c \
gimplut.h \
hue-saturation.c \
hue-saturation.h \
levels.c \
levels.h \
lut-funcs.c \
lut-funcs.h \
pixel-processor.c \
pixel-processor.h \
pixel-region.c \
pixel-region.h \
pixel-surround.c \
pixel-surround.h \
temp-buf.c \
temp-buf.h \
threshold.c \
threshold.h \
tile.c \
tile.h \
tile-private.h \
tile-cache.c \
tile-cache.h \
tile-manager.c \
tile-manager.h \
tile-manager-private.h \
tile-manager-crop.c \
tile-manager-crop.h \
tile-swap.c \
tile-swap.h
EXTRA_DIST = makefile.msc
AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"Gimp-Base\" \
@GIMP_THREAD_FLAGS@ \
@GIMP_MP_FLAGS@
# for automake-1.5
AM_ASFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/app
# for automake-1.6
AM_CCASFLAGS = $(AM_ASFLAGS)
INCLUDES = \
-I$(top_srcdir) \
-I$(top_srcdir)/app \
$(GLIB_CFLAGS) \
-I$(includedir)
#
# rules to generate built sources
#
# setup autogeneration dependancies
gen_sources = xgen-bec
CLEANFILES = $(gen_sources)
$(srcdir)/base-enums.c: $(srcdir)/base-enums.h $(GIMP_MKENUMS)
$(GIMP_MKENUMS) \
--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"base-enums.h\"\n#include \"libgimp/gimpintl.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)/base-enums.h > xgen-bec \
&& cp xgen-bec $(@F) \
&& rm -f xgen-bec