Makefile.am 2.23 KB
Newer Older
1 2
## Process this file with automake to produce Makefile.in

3 4 5 6 7 8 9 10
AM_CPPFLAGS = \
	-DG_LOG_DOMAIN=\"Gimp-Base\"

INCLUDES = \
	-I$(top_builddir)	\
	-I$(top_srcdir)		\
	-I$(top_builddir)/app	\
	-I$(top_srcdir)/app	\
11
	$(CAIRO_CFLAGS)		\
12 13 14
	$(GLIB_CFLAGS)		\
	-I$(includedir)

15
noinst_LIBRARIES = libappbase.a
16

17
libappbase_a_SOURCES = \
18 19
	base.c			\
	base.h			\
20 21
	base-enums.c		\
	base-enums.h		\
Michael Natterer's avatar
Michael Natterer committed
22
	base-types.h		\
23 24
	base-utils.c		\
	base-utils.h		\
25 26
	color-balance.c		\
	color-balance.h		\
27 28
	cpercep.c		\
	cpercep.h		\
29 30
	gimphistogram.c		\
	gimphistogram.h		\
31 32
	gimplut.c		\
	gimplut.h		\
33 34
	hue-saturation.c	\
	hue-saturation.h	\
35 36
	levels.c		\
	levels.h		\
37 38
	lut-funcs.c		\
	lut-funcs.h		\
39 40 41 42 43 44
	pixel-processor.c	\
	pixel-processor.h	\
	pixel-region.c		\
	pixel-region.h		\
	pixel-surround.c	\
	pixel-surround.h	\
45 46
	siox.c			\
	siox.h			\
47 48 49 50 51 52 53 54 55
	temp-buf.c		\
	temp-buf.h		\
	tile.c			\
	tile.h			\
	tile-private.h		\
	tile-cache.c		\
	tile-cache.h		\
	tile-manager.c		\
	tile-manager.h		\
56 57 58
	tile-manager-preview.c	\
	tile-manager-preview.h	\
	tile-manager-private.h	\
59 60
	tile-pyramid.c		\
	tile-pyramid.h		\
61 62
	tile-rowhints.c		\
	tile-rowhints.h		\
63
	tile-swap.c		\
64
	tile-swap.h
65

66 67 68
#
# rules to generate built sources
#
69
# setup autogeneration dependencies
70
gen_sources = xgen-bec
71
CLEANFILES = $(gen_sources)
72

73
base-enums.c: $(srcdir)/base-enums.h $(GIMP_MKENUMS)
74
	$(GIMP_MKENUMS) \
75
		--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"base-enums.h\"\n#include \"gimp-intl.h\"" \
76
		--fprod "\n/* enumerations from \"@filename@\" */" \
77
		--vhead "GType\n@enum_name@_get_type (void)\n{\n  static const G@Type@Value values[] =\n  {" \
78 79 80 81
		--vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
		--vtail "    { 0, NULL, NULL }\n  };\n" \
		--dhead "  static const Gimp@Type@Desc descs[] =\n  {" \
		--dprod "    { @VALUENAME@, @valuedesc@, @valuehelp@ }," \
82
		--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" \
83 84 85
		$(srcdir)/base-enums.h > xgen-bec \
	&& cp xgen-bec $(@F) \
	&& rm -f xgen-bec