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

3 4 5 6
AM_CPPFLAGS = \
	-DG_LOG_DOMAIN=\"Gimp-Display\"	\
	@GIMP_THREAD_FLAGS@ 		\
	@GIMP_MP_FLAGS@
7

8 9 10 11 12
INCLUDES = \
	-I$(top_srcdir)		\
	-I$(top_srcdir)/app	\
	$(GTK_CFLAGS)		\
	-I$(includedir)
13

14 15
noinst_LIBRARIES = libappdisplay.a

16
libappdisplay_a_sources = \
17
	display-enums.h				\
18
	display-types.h				\
19 20
	gimpcanvas.c				\
	gimpcanvas.h				\
21 22
	gimpdisplay.c				\
	gimpdisplay.h				\
23 24
	gimpdisplayoptions.c			\
	gimpdisplayoptions.h			\
25 26 27 28 29 30
	gimpdisplay-foreach.c			\
	gimpdisplay-foreach.h			\
	gimpdisplay-handlers.c			\
	gimpdisplay-handlers.h			\
	gimpdisplayshell.c			\
	gimpdisplayshell.h			\
31 32
	gimpdisplayshell-appearance.c		\
	gimpdisplayshell-appearance.h		\
33 34
	gimpdisplayshell-callbacks.c		\
	gimpdisplayshell-callbacks.h		\
35 36
	gimpdisplayshell-close.c		\
	gimpdisplayshell-close.h		\
37 38
	gimpdisplayshell-cursor.c		\
	gimpdisplayshell-cursor.h		\
39 40
	gimpdisplayshell-dnd.c			\
	gimpdisplayshell-dnd.h			\
41 42
	gimpdisplayshell-draw.c			\
	gimpdisplayshell-draw.h			\
43 44
	gimpdisplayshell-handlers.c		\
	gimpdisplayshell-handlers.h		\
45 46 47 48
	gimpdisplayshell-filter.c		\
	gimpdisplayshell-filter.h		\
	gimpdisplayshell-filter-dialog.c	\
	gimpdisplayshell-filter-dialog.h	\
49 50
	gimpdisplayshell-layer-select.c		\
	gimpdisplayshell-layer-select.h		\
51 52
	gimpdisplayshell-preview.c		\
	gimpdisplayshell-preview.h		\
53 54 55 56 57 58 59 60
	gimpdisplayshell-render.c		\
	gimpdisplayshell-render.h		\
	gimpdisplayshell-scale.c		\
	gimpdisplayshell-scale.h		\
	gimpdisplayshell-scroll.c		\
	gimpdisplayshell-scroll.h		\
	gimpdisplayshell-selection.c		\
	gimpdisplayshell-selection.h		\
61 62 63 64
	gimpdisplayshell-title.c		\
	gimpdisplayshell-title.h		\
	gimpdisplayshell-transform.c		\
	gimpdisplayshell-transform.h		\
Michael Natterer's avatar
Michael Natterer committed
65 66
	gimpnavigationview.c			\
	gimpnavigationview.h			\
Michael Natterer's avatar
Michael Natterer committed
67 68
	gimpprogress.c				\
	gimpprogress.h				\
69 70
	gimpscalecombobox.c			\
	gimpscalecombobox.h			\
71
	gimpstatusbar.c				\
72
	gimpstatusbar.h
73

74
libappdisplay_a_built_sources = display-enums.c
75

76 77 78 79
libappdisplay_a_SOURCES = \
	$(libappdisplay_a_built_sources)	\
	$(libappdisplay_a_sources)

80 81
EXTRA_DIST = makefile.msc

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

89 90
$(srcdir)/display-enums.c: $(srcdir)/display-enums.h $(GIMP_MKENUMS)
	$(GIMP_MKENUMS) \
91
		--fhead "#include \"config.h\"\n#include <glib-object.h>\n#include \"display-enums.h\"\n#include\"gimp-intl.h\"" \
92
		--fprod "\n/* enumerations from \"@filename@\" */" \
93
		--vhead "\nstatic const GEnumValue @enum_name@_enum_values[] =\n{" \
94
		--vprod "  { @VALUENAME@, @valuedesc@, \"@valuenick@\" }," \
95 96 97 98
		--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)/display-enums.h > xgen-dec \
	&& cp xgen-dec $(@F) \
	&& rm -f xgen-dec