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

noinst_LIBRARIES = libappdisplay.a

5
libappdisplay_a_sources = \
6
	display-enums.h				\
7
	display-types.h				\
8 9
	gimpcanvas.c				\
	gimpcanvas.h				\
10 11
	gimpdisplay.c				\
	gimpdisplay.h				\
12 13
	gimpdisplayoptions.c			\
	gimpdisplayoptions.h			\
14 15 16 17 18 19
	gimpdisplay-foreach.c			\
	gimpdisplay-foreach.h			\
	gimpdisplay-handlers.c			\
	gimpdisplay-handlers.h			\
	gimpdisplayshell.c			\
	gimpdisplayshell.h			\
20 21
	gimpdisplayshell-appearance.c		\
	gimpdisplayshell-appearance.h		\
22 23
	gimpdisplayshell-autoscroll.c		\
	gimpdisplayshell-autoscroll.h		\
24 25
	gimpdisplayshell-callbacks.c		\
	gimpdisplayshell-callbacks.h		\
26 27
	gimpdisplayshell-close.c		\
	gimpdisplayshell-close.h		\
28 29
	gimpdisplayshell-coords.c		\
	gimpdisplayshell-coords.h		\
30 31
	gimpdisplayshell-cursor.c		\
	gimpdisplayshell-cursor.h		\
32 33
	gimpdisplayshell-dnd.c			\
	gimpdisplayshell-dnd.h			\
34 35
	gimpdisplayshell-draw.c			\
	gimpdisplayshell-draw.h			\
36 37
	gimpdisplayshell-handlers.c		\
	gimpdisplayshell-handlers.h		\
38 39 40 41
	gimpdisplayshell-filter.c		\
	gimpdisplayshell-filter.h		\
	gimpdisplayshell-filter-dialog.c	\
	gimpdisplayshell-filter-dialog.h	\
42 43
	gimpdisplayshell-layer-select.c		\
	gimpdisplayshell-layer-select.h		\
44 45
	gimpdisplayshell-preview.c		\
	gimpdisplayshell-preview.h		\
46 47 48 49 50 51 52 53
	gimpdisplayshell-render.c		\
	gimpdisplayshell-render.h		\
	gimpdisplayshell-scale.c		\
	gimpdisplayshell-scale.h		\
	gimpdisplayshell-scroll.c		\
	gimpdisplayshell-scroll.h		\
	gimpdisplayshell-selection.c		\
	gimpdisplayshell-selection.h		\
54 55 56 57
	gimpdisplayshell-title.c		\
	gimpdisplayshell-title.h		\
	gimpdisplayshell-transform.c		\
	gimpdisplayshell-transform.h		\
58 59
	gimpnavigationeditor.c			\
	gimpnavigationeditor.h			\
60 61
	gimpscalecombobox.c			\
	gimpscalecombobox.h			\
62
	gimpstatusbar.c				\
63
	gimpstatusbar.h
64

65
libappdisplay_a_built_sources = display-enums.c
66

67 68 69 70
libappdisplay_a_SOURCES = \
	$(libappdisplay_a_built_sources)	\
	$(libappdisplay_a_sources)

71 72 73 74 75 76 77 78 79 80
AM_CPPFLAGS = \
	-DG_LOG_DOMAIN=\"Gimp-Display\"	\
	@GTHREAD_CFLAGS@

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

81 82
EXTRA_DIST = makefile.msc

83 84 85
#
# rules to generate built sources
#
86
# setup autogeneration dependencies
87 88 89
gen_sources = xgen-dec
CLEANFILES = $(gen_sources)

90 91
$(srcdir)/display-enums.c: $(srcdir)/display-enums.h $(GIMP_MKENUMS)
	$(GIMP_MKENUMS) \
92
		--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"libgimpbase/gimpbase.h\"\n#include \"display-enums.h\"\n#include\"gimp-intl.h\"" \
93
		--fprod "\n/* enumerations from \"@filename@\" */" \
94
		--vhead "GType\n@enum_name@_get_type (void)\n{\n  static const G@Type@Value values[] =\n  {" \
95 96 97 98 99
		--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" \
100 101 102
		$(srcdir)/display-enums.h > xgen-dec \
	&& cp xgen-dec $(@F) \
	&& rm -f xgen-dec