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

3
noinst_LIBRARIES = libappbase.a
4

5
libappbase_a_SOURCES = \
6
7
	base.c			\
	base.h			\
8
9
	base-enums.c		\
	base-enums.h		\
Michael Natterer's avatar
Michael Natterer committed
10
	base-types.h		\
11
12
13
14
	boundary.c		\
	boundary.h		\
	brush-scale.c		\
	brush-scale.h		\
15
16
	color-balance.c		\
	color-balance.h		\
17
18
	colorize.c		\
	colorize.h		\
19
20
	curves.c		\
	curves.h		\
21
22
	cpu-accel.c		\
	cpu-accel.h		\
23
24
	gimphistogram.c		\
	gimphistogram.h		\
25
26
	gimplut.c		\
	gimplut.h		\
27
28
	hue-saturation.c	\
	hue-saturation.h	\
29
30
	levels.c		\
	levels.h		\
31
32
	lut-funcs.c		\
	lut-funcs.h		\
33
34
35
36
37
38
39
40
	pixel-processor.c	\
	pixel-processor.h	\
	pixel-region.c		\
	pixel-region.h		\
	pixel-surround.c	\
	pixel-surround.h	\
	temp-buf.c		\
	temp-buf.h		\
41
42
	threshold.c		\
	threshold.h		\
43
44
45
46
47
48
49
50
	tile.c			\
	tile.h			\
	tile-private.h		\
	tile-cache.c		\
	tile-cache.h		\
	tile-manager.c		\
	tile-manager.h		\
	tile-manager-private.h	\
Michael Natterer's avatar
Michael Natterer committed
51
52
	tile-manager-crop.c	\
	tile-manager-crop.h	\
53
	tile-swap.c		\
54
	tile-swap.h
55

56
AM_CPPFLAGS = \
57
	-DG_LOG_DOMAIN=\"Gimp-Base\"	\
58
	@GTHREAD_CFLAGS@
59

Sven Neumann's avatar
Sven Neumann committed
60
61
AM_CCASFLAGS = \
	-I$(top_builddir)	\
62
63
	-I$(top_srcdir)		\
	-I$(top_builddir)/app	\
64
65
	-I$(top_srcdir)/app

66
INCLUDES = \
67
	-I$(top_builddir)	\
68
	-I$(top_srcdir)		\
69
	-I$(top_builddir)/app	\
70
71
	-I$(top_srcdir)/app	\
	$(GLIB_CFLAGS)		\
72
	-I$(includedir)
73

74
75
76
77
78
79
80
81
TESTS = test-cpu-accel

test_cpu_accel_SOURCES = test-cpu-accel.c

test_cpu_accel_LDADD = \
	libappbase.a	\
	$(GLIB_LIBS)

Sven Neumann's avatar
Sven Neumann committed
82
83
EXTRA_DIST = makefile.msc

84
85
EXTRA_PROGRAMS = test-cpu-accel

86
87
88
#
# rules to generate built sources
#
89
# setup autogeneration dependencies
90
gen_sources = xgen-bec
91
CLEANFILES = $(EXTRA_PROGRAMS) $(gen_sources)
92

93
94
$(srcdir)/base-enums.c: $(srcdir)/base-enums.h $(GIMP_MKENUMS)
	$(GIMP_MKENUMS) \
95
		--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"base-enums.h\"\n#include \"gimp-intl.h\"" \
96
		--fprod "\n/* enumerations from \"@filename@\" */" \
97
		--vhead "GType\n@enum_name@_get_type (void)\n{\n  static const G@Type@Value values[] =\n  {" \
98
99
100
101
102
		--vprod "    { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
		--vtail "    { 0, NULL, NULL }\n  };\n" \
		--dhead "  static const Gimp@Type@Desc descs[] =\n  {" \
		--dprod "    { @VALUENAME@, @valuedesc@, @valuehelp@ }," \
		--dtail "    { 0, NULL, NULL }\n  };\n\n  static GType type = 0;\n\n  if (! type)\n    {\n      type = g_@type@_register_static (\"@EnumName@\", values);\n      gimp_@type@_set_value_descriptions (type, descs);\n    }\n\n  return type;\n}\n" \
103
104
105
		$(srcdir)/base-enums.h > xgen-bec \
	&& cp xgen-bec $(@F) \
	&& rm -f xgen-bec