File: Makefile.am

package info (click to toggle)
gdl 0.7.11-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,184 kB
  • ctags: 2,021
  • sloc: ansic: 12,944; sh: 9,155; xml: 3,656; makefile: 214
file content (200 lines) | stat: -rw-r--r-- 4,793 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
INCLUDES = \
	-DG_LOG_DOMAIN=\"Gdl\"				\
	-DGDL_GLADEDIR=\""$(gladedir)"\"		\
	-I$(includedir) -I$(top_srcdir)			\
	$(WARN_CFLAGS) $(DEPRECATED_FLAGS)		\
	$(GDL_DEPENDENCIES_CFLAGS) $(XML_CFLAGS) 	\
	$(GNOME_CFLAGS)					\
	$(EXTRA_CPPFLAGS)

lib_LTLIBRARIES = libgdl-1.la

BUILT_SOURCES = \
	libgdlmarshal.c \
	libgdlmarshal.h \
	libgdltypebuiltins.c \
	libgdltypebuiltins.h \
	gdl-stock-icons.h

CLEANFILES =					\
	libgdltypebuiltins.c			\
	libgdltypebuiltins.h			\
	libgdlmarshal.c				\
	libgdlmarshal.h

libgdl_headers = \
	gdl.h \
	gdl-tools.h \
	gdl-dock-object.h \
	gdl-dock-master.h \
	gdl-dock.h \
	gdl-dock-item.h \
	gdl-dock-notebook.h \
	gdl-dock-paned.h \
	gdl-dock-tablabel.h \
	gdl-dock-layout.h \
	gdl-dock-placeholder.h \
	gdl-dock-bar.h \
	gdl-combo-button.h \
	gdl-switcher.h \
	gdl-stock.h \
	gdl-stock-icons.h

libgdl_1_la_SOURCES = \
	$(libgdl_headers) \
	gdl-i18n.h \
	gdl-i18n.c \
	gdl-dock-object.c \
	gdl-dock-master.c \
	gdl-dock.c \
	gdl-dock-item.c \
	gdl-dock-item-grip.h \
	gdl-dock-item-grip.c \
	gdl-dock-notebook.c \
	gdl-dock-paned.c \
	gdl-dock-tablabel.c \
	gdl-dock-layout.c \
	gdl-dock-placeholder.c \
	gdl-dock-bar.c \
	gdl-combo-button.c \
	gdl-switcher.c \
	gdl-stock.c \
	libgdltypebuiltins.h \
	libgdltypebuiltins.c \
	libgdlmarshal.h \
	libgdlmarshal.c

libgdl_1_la_LIBADD = \
	$(GDL_DEPENDENCIES_LIBS) \
	$(XML_LIBS) \
	$(GNOME_LIBS)

libgdl_1_la_LDFLAGS = $(EXTRA_LDFLAGS)

libgdl_gnome_headers = \
	gdl-icons.h

if HAVE_GNOME
lib_LTLIBRARIES += libgdl-gnome-1.la
endif

libgdl_gnome_1_la_SOURCES = \
	$(libgdl_gnome_headers) \
	gdl-icons.c

libgdl_gnome_1_la_LIBADD = \
	libgdl-1.la \
	$(GDL_DEPENDENCIES_LIBS) \
	$(XML_LIBS) \
	$(GNOME_LIBS)
	
libgdl_gnome_1_la_LDFLAGS = $(EXTRA_LDFLAGS)

noinst_PROGRAMS=test-dock test-combo-button

test_dock_sources=test-dock.c
test_dock_LDADD=libgdl-1.la $(XML_LIBS)

test_combo_button_SOURCES = test-combo-button.c
test_combo_button_LDADD = libgdl-1.la

if HAVE_GNOME
	
noinst_PROGRAMS += test-dataview

test_dataview_SOURCES = \
	gdl-data-view.h \
	gdl-data-view.c \
	gdl-data-frame.h \
	gdl-data-frame.c \
	gdl-data-model.h \
	gdl-data-model.c \
	gdl-data-model-test.h \
	gdl-data-model-test.c \
	gdl-data-row.h \
	gdl-data-row.c \
	test-dataview.c

test_dataview_LDADD = libgdl-1.la libgdl-gnome-1.la

endif

libgdlincludedir = $(includedir)/libgdl-1.0/gdl
libgdlinclude_HEADERS = \
	$(libgdl_headers) \
	libgdltypebuiltins.h

libgdl_gnomeincludedir = $(includedir)/libgdl-1.0/gdl
libgdl_gnomeinclude_HEADERS = \
	$(libgdl_gnome_headers)

gladedir = $(datadir)/gdl/glade
glade_DATA = layout.glade

STOCK_ICONS = \
	stock_close_icon stock-close-12.png \
	stock_menu_left_icon stock-menu-left-12.png \
	stock_menu_right_icon stock-menu-right-12.png

STOCK_IMAGES = \
	stock-close-12.png \
	stock-menu-left-12.png \
	stock-menu-right-12.png

EXTRA_DIST = libgdlmarshal.list \
	tree-expand.xpm \
	tree-contract.xpm \
	layout.glade \
	program.xpm static.xpm shared.xpm \
	$(STOCK_IMAGES)

# enumerations code generation

libgdltypebuiltins.c: $(libgdl_headers)
	@GLIB_MKENUMS@ \
			--fhead "#include <glib-object.h>\n" \
			--fhead "#include \"libgdltypebuiltins.h\"\n\n" \
			--fprod "\n/* enumerations from \"@filename@\" */" \
			--vhead "static const G@Type@Value _@enum_name@_values[] = {" \
			--vprod "  { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
			--vtail "  { 0, NULL, NULL }\n};\n\n" \
			--vtail "GType\n@enum_name@_get_type (void)\n{\n" \
			--vtail "  static GType type = 0;\n\n" \
			--vtail "  if (!type)\n" \
			--vtail "    type = g_@type@_register_static (\"@EnumName@\", _@enum_name@_values);\n\n" \
			--vtail "  return type;\n}\n\n" \
		$(libgdl_headers) > xgen-gtbec \
	&& cp xgen-gtbec $(@F) \
	&& rm -f xgen-gtbec

libgdltypebuiltins.h: $(libgdl_headers)
	@GLIB_MKENUMS@ \
			--fhead "#ifndef __LIBGDLTYPEBUILTINS_H__\n" \
			--fhead "#define __LIBGDLTYPEBUILTINS_H__ 1\n\n" \
			--fhead "#include <gdl/gdl.h>\n\n" \
			--fhead "G_BEGIN_DECLS\n\n" \
			--ftail "G_END_DECLS\n\n" \
			--ftail "#endif /* __LIBGDLTYPEBUILTINS_H__ */\n" \
			--fprod "\n/* --- @filename@ --- */" \
			--eprod "#define GDL_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n" \
			--eprod "GType @enum_name@_get_type (void);\n" \
		$(libgdl_headers) > xgen-gth \
	&& cp xgen-gth $(@F) \
	&& rm -f xgen-gth

libgdlmarshal.h: libgdlmarshal.list
	@GLIB_GENMARSHAL@ \
		--prefix=gdl_marshal $(srcdir)/libgdlmarshal.list --header > xgen-gmc \
	&& cp xgen-gmc $(@F) \
	&& rm -f xgen-gmc

libgdlmarshal.c: libgdlmarshal.h
	echo "#include \"libgdlmarshal.h\"" > xgen-gmc \
	&& @GLIB_GENMARSHAL@ \
		--prefix=gdl_marshal $(srcdir)/libgdlmarshal.list --body >> xgen-gmc \
	&& cp xgen-gmc $(@F) \
	&& rm -f xgen-gmc

gdl-stock-icons.h: $(STOCK_IMAGES)
	gdk-pixbuf-csource --raw --build-list $(STOCK_ICONS) > $@