[0fcc80]: gtkextra / Makefile.am Maximize Restore History

Download this file

Makefile.am    352 lines (297 with data), 12.3 kB

  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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
# Makefile.am for gtk+extra
#AUTOMAKE_OPTIONS = 1.7
gtarget=@gdktarget@
if PLATFORM_WIN32
no_undefined = -no-undefined
endif
if OS_WIN32
gtkextra_def = gtkextra.def
gtkextra_win32_symbols = -export-symbols $(gtkextra_def)
#Not yet supported
#gtkextra_win32res_lo = gtkextra-win32res.lo
gtkextra_win32res_lo =
gtkextra-win32res.lo : gtkextra-win32.rc
$(LT_COMPILE_RESOURCE) gtkextra-win32.rc gtkextra-win32res.lo
install-libtool-import-lib:
$(INSTALL) .libs/libgtkextra-win32-3.0.dll.a $(DESTDIR)$(libdir)
uninstall-libtool-import-lib:
-rm $(DESTDIR)$(libdir)/libgtkextra-win32-3.0.dll.a
install-exec-local: install-libtool-import-lib
else
install-libtool-import-lib:
uninstall-libtool-import-lib:
endif
if MS_LIB_AVAILABLE
noinst_DATA = gtkextra-win32-3.0.lib
gtkextra-win32-3.0.lib: libgtkextra-win32-3.0.la gtkextra.def
lib -name:libgtkextra-win32-3.0-@LT_CURRENT_MINUS_AGE@.dll -def:gtkextra.def -out:$@
install-ms-lib:
$(INSTALL) gtkextra-win32-3.0.lib $(DESTDIR)$(libdir)
uninstall-ms-lib:
-rm $(DESTDIR)$(libdir)/gtkextra-win32-3.0.lib
else
install-ms-lib:
uninstall-ms-lib:
endif
# libtool stuff: set version and export symbols for resolving
# since automake doesn't support conditionalized libsomething_la_LDFLAGS
# we use the general approach here
libgtkextraincludedir = $(includedir)/gtkextra-3.0/gtkextra
AM_LDFLAGS = \
-version-info $(LIBGTKEXTRA_SO_VERSION) \
-export-dynamic \
-rpath $(libdir) \
$(no_undefined) \
$(GTK_LIBS)
#
# setup source file variables
#
gtkextra_public_h_sources = \
gtkbordercombo.h \
gtkcharsel.h \
gtkcheckitem.h \
gtkcolorcombo.h \
gtkcombobutton.h \
gtkdataentry.h \
gtkdataformat.h \
gtkdirtree.h \
gtkextra.h \
gtkextraicons.h \
gtkfilelist.h \
gtkfileicons.h \
gtkfontcombo.h \
gtkiconfilesel.h \
gtkiconlist.h \
gtkitementry.h \
gtkplot.h \
gtkplotarray.h \
gtkplot3d.h \
gtkplotdt.h \
gtkplotpolar.h \
gtkplotdata.h \
gtkplotpixmap.h \
gtkplotbar.h \
gtkplotbox.h \
gtkplotbubble.h \
gtkplotcandle.h \
gtkplotflux.h \
gtkplotsurface.h \
gtkplotcairo.h \
gtkplotcanvas.h \
gtkplotcsurface.h \
gtkplotpc.h \
gtkplotgdk.h \
gtkplotps.h \
gtkplotprint.h \
gtkplotsegment.h \
gtkpsfont.h \
gtksheet.h \
gtksheetcolumn.h \
gtktogglecombo.h \
gtkplotcanvasline.h \
gtkplotcanvasrectangle.h \
gtkplotcanvasellipse.h \
gtkplotcanvastext.h \
gtkplotcanvaspixmap.h \
gtkplotcanvasplot.h
gtkextra_c_sources = \
gtkbordercombo.c \
gtkcharsel.c \
gtkcheckitem.c \
gtkcolorcombo.c \
gtkcombobutton.c \
gtkdataentry.c \
gtkdataformat.c \
gtkdirtree.c \
gtkextra.c \
gtkfilelist.c \
gtkfontcombo.c \
gtkiconlist.c \
gtkitementry.c \
gtkiconfilesel.c \
gtkplot.c \
gtkplotarray.c \
gtkplot3d.c \
gtkplotdt.c \
gtkplotpolar.c \
gtkplotdata.c \
gtkplotpixmap.c \
gtkplotbar.c \
gtkplotbox.c \
gtkplotbubble.c \
gtkplotcandle.c \
gtkplotflux.c \
gtkplotsurface.c \
gtkplotcsurface.c \
gtkplotcairo.c \
gtkplotcanvas.c \
gtkplotpc.c \
gtkplotgdk.c \
gtkplotps.c \
gtkplotprint.c \
gtkplotsegment.c \
gtkpsfont.c \
gtksheet.c \
gtksheetcolumn.c \
gtktogglecombo.c \
gtkplotcanvasline.c \
gtkplotcanvasrectangle.c \
gtkplotcanvasellipse.c \
gtkplotcanvastext.c \
gtkplotcanvaspixmap.c \
gtkplotcanvasplot.c
gtkextra_private_h_sources = \
gtkextra-compat.h \
icons.h \
pixmaps.h
gtkextra_built_public_sources = \
gtkextra-marshal.h \
gtkextratypebuiltins.h
gtkextra_built_sources = \
gtkextra-marshal.c \
gtkextratypebuiltins.c \
${gtkextra_built_public_sources}
gtkextra_extra_sources = \
gtkextrafeatures.h.in \
gtkextra-marshal.list
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) $(GTK_CFLAGS)
# target platform:
lib_LTLIBRARIES = $(gtkextratargetlib)
gtkextraincludedir = $(includedir)/gtkextra-3.0/gtkextra
gtkextrainclude_HEADERS = $(gtkextra_public_h_sources)
nodist_gtkextrainclude_HEADERS = $(gtkextra_built_public_sources) gtkextrafeatures.h
libgtkextra_x11_3_0_la_SOURCES = $(gtkextra_c_sources)
nodist_libgtkextra_x11_3_0_la_SOURCES = $(gtkextra_built_sources)
libgtkextra_linux_fb_3_0_la_SOURCES = $(gtkextra_c_sources)
nodist_libgtkextra_linux_fb_3_0_la_SOURCES = $(gtkextra_built_sources)
libgtkextra_win32_3_0_la_SOURCES = $(gtkextra_c_sources)
nodist_libgtkextra_win32_3_0_la_SOURCES = $(gtkextra_built_sources)
libgtkextra_win32_3_0_la_LIBADD = $(gtkextra_win32res_lo)
libgtkextra_win32_3_0_la_DEPENDENCIES = $(gtkextra_def) $(gtkextra_win32res_lo)
if USE_WIN32
libgtkextra_target_ldflags = $(gtkextra_win32_symbols) -lwsock32
endif
EXTRA_LTLIBRARIES = libgtkextra-x11-3.0.la libgtkextra-linux-fb-3.0.la libgtkextra-win32-3.0.la
MAINTAINERCLEANFILES = $(gtkextra_built_sources)
CLEANFILES = $(gtkextra_built_sources)
EXTRA_DIST = $(gtkextra_private_h_sources) $(gtkextra_extra_sources)
#EXTRA_DIST += $(gtkextra_built_sources)
EXTRA_DIST += gtkextra.def Makefile.mingw sat.xpm sg_small.xpm cloud.xpm suncloud.xpm testgtkplotdt.in
$(libgtkextra_x11_3_0_la_OBJECTS) $(libgtkextra_linux_fb_3_0_la_OBJECTS) $(libgtkextra_win32_3_0_la_OBJECTS): ${gtkextra_built_public_sources} ${gtkextra_built_private_headers}
gtkextra-marshal.h: $(builddir)/gtkextra-marshal.list
( @GLIB_GENMARSHAL@ --prefix=gtkextra $(srcdir)/gtkextra-marshal.list --header > gtkextra-marshal.tmp \
&& mv gtkextra-marshal.tmp gtkextra-marshal.h ) \
|| ( rm -f gtkextra-marshal.tmp && exit 1 )
gtkextra-marshal.c: $(builddir)/gtkextra-marshal.h
( @GLIB_GENMARSHAL@ --prefix=gtkextra $(srcdir)/gtkextra-marshal.list --body > gtkextra-marshal.tmp \
&& mv gtkextra-marshal.tmp gtkextra-marshal.c ) \
|| ( rm -f gtkextra-marshal.tmp && exit 1 )
gtkextratypebuiltins.h: $(gtkextra_public_h_sources)
( cd $(srcdir) && glib-mkenums \
--fhead "#ifndef __GTKEXTRA_TYPE_BUILTINS_H__\n#define __GTKEXTRA_TYPE_BUILTINS_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
--fprod "/* enumerations from \"@filename@\" */\n" \
--vhead "GType @enum_name@_get_type (void);\n#define GTK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n#endif /* __GTKEXTRA_TYPE_BUILTINS_H__ */" \
$(gtkextra_public_h_sources) ) > $(builddir)/gtkextratypebuiltins.h
gtkextratypebuiltins.c: $(gtkextra_public_h_sources)
( cd $(srcdir) && glib-mkenums \
--fhead "#define GTKEXTRA_ENABLE_BROKEN\n#include \"gtkextra.h\"" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
$(gtkextra_public_h_sources) ) > $(builddir)/gtkextratypebuiltins.c
# test programs, not to be installed
noinst_PROGRAMS = testgtksheet testgtkiconlist testgtkfilesel testgtkplot testgtkfont testgtkplotcanvas testrealtime testiterator testpolar testgtkplot3d testcontour testbubbles testflux testboxes testcandles testimage testpixmap testcharsel testdt testgtkplotdt testsegment
DEPS = $(gtkextratargetlib)
LDADDS = $(gtkextratargetlib) $(GTK_LIBS)
testgtksheet_DEPENDENCIES = $(DEPS)
testgtkplot_DEPENDENCIES = $(DEPS)
testdt_DEPENDENCIES = $(DEPS)
testgtkplotdt_DEPENDENCIES = $(DEPS)
testpolar_DEPENDENCIES = $(DEPS)
testgtkplot3d_DEPENDENCIES = $(DEPS)
testcontour_DEPENDENCIES = $(DEPS)
testrealtime_DEPENDENCIES = $(DEPS)
testgtkfilesel_DEPENDENCIES = $(DEPS)
testgtkiconlist_DEPENDENCIES = $(DEPS)
testgtkfont_DEPENDENCIES = $(DEPS)
testbubbles_DEPENDENCIES = $(DEPS)
testflux_DEPENDENCIES = $(DEPS)
testboxes_DEPENDENCIES = $(DEPS)
testcandles_DEPENDENCIES = $(DEPS)
testpixmap_DEPENDENCIES = $(DEPS)
testimage_DEPENDENCIES = $(DEPS)
testcharsel_DEPENDENCIES = $(DEPS)
testiterator_DEPENDENCIES = $(DEPS)
testsegment_DEPENDENCIES = $(DEPS)
testgtkplotcanvas_DEPENDENCIES = $(DEPS)
testgtksheet_LDADD = $(LDADDS)
testgtkplot_LDADD = $(LDADDS)
testdt_LDADD = $(LDADDS)
testgtkplotdt_LDADD = $(LDADDS)
testimage_LDADD = $(LDADDS)
testcharsel_LDADD = $(LDADDS)
testpixmap_LDADD = $(LDADDS)
testpolar_LDADD = $(LDADDS)
testgtkplot3d_LDADD = $(LDADDS)
testcontour_LDADD = $(LDADDS)
testrealtime_LDADD = $(LDADDS)
testgtkfilesel_LDADD = $(LDADDS)
testgtkiconlist_LDADD = $(LDADDS)
testgtkfont_LDADD = $(LDADDS)
testbubbles_LDADD = $(LDADDS)
testflux_LDADD = $(LDADDS)
testboxes_LDADD = $(LDADDS)
testcandles_LDADD = $(LDADDS)
testiterator_LDADD = $(LDADDS)
testsegment_LDADD = $(LDADDS)
testgtkplotcanvas_LDADD = $(LDADDS)
# gobject-introspection (begin)
if ENABLE_INTROSPECTION
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS = GtkExtra-3.0.gir
INTROSPECTION_SCANNER_ARGS = --accept-unprefixed --identifier-prefix="Gtk" --symbol-prefix="gtk" --warn-all --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
introspection_sources = $(gtkextra_c_sources) $(gtkextra_public_h_sources)
GtkExtra-3.0.gir: $(gtkextratargetlib)
GtkExtra_3_0_gir_NAMESPACE = GtkExtra
GtkExtra_3_0_gir_VERSION = $(GTK_EXTRA_VERSION)
GtkExtra_3_0_gir_INCLUDES = GLib-2.0 GObject-2.0 Gtk-2.0
GtkExtra_3_0_gir_CFLAGS = $(AM_CPPFLAGS)
GtkExtra_3_0_gir_LIBS = $(gtkextratargetlib)
GtkExtra_3_0_gir_FILES = $(introspection_sources)
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(gir_DATA) # $(typelib_DATA)
endif
# gobject-introspection (end)
files:
@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
echo $$p; \
done
#test: testgtksheet testgtkiconlist testgtkfilesel testgtkplot testgtkfont testrealtime testpolar testgtkplot3d testcontour testbubbles testflux testboxes testcandles testimage testpixmap testcharsel testdt testgtkplotdt testiterator
# builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; export HAVE_PROGRESSBAR=1; \
# cd $$builddir; cd $(srcdir); \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtksheet; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtkplot; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtkpolar; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtkplot3d; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtkbubble; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtkflux; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testcontour; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtkiconlist; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtkfilesel; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtkfont; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testrealtime; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testiterator; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testimage; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testcandles; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testpixmap; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testcharsel; \
# $(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testdt \
# $$builddir/testgtkplotdt.in > $$builddir/testgtkplotdt.out; echo
clean-local:
rm -rf gtkextrafeatures.h