Makefile.am 6.89 KB
Newer Older
Tim Janik's avatar
Tim Janik committed
1
### Process this file with automake to produce Makefile.in
Elliot Lee's avatar
Elliot Lee committed
2
3
4

gtkincludedir = $(includedir)/gtk

Tim Janik's avatar
Tim Janik committed
5
lib_LTLIBRARIES = libgtk-1.1.la
Elliot Lee's avatar
Elliot Lee committed
6

Tim Janik's avatar
Tim Janik committed
7
libgtk_1_1_la_SOURCES = \
Tim Janik's avatar
Tim Janik committed
8
9
	gtkaccelgroup.c		\
	gtkaccellabel.c		\
Elliot Lee's avatar
Elliot Lee committed
10
11
12
13
14
	gtkadjustment.c		\
	gtkaspectframe.c	\
	gtkalignment.c		\
	gtkarrow.c		\
	gtkbin.c		\
Tim Janik's avatar
Tim Janik committed
15
	gtkbindings.c		\
Elliot Lee's avatar
Elliot Lee committed
16
17
18
19
20
	gtkbbox.c		\
	gtkbox.c		\
	gtkbutton.c		\
	gtkcheckbutton.c	\
	gtkcheckmenuitem.c	\
21
	gtkclist.c		\
Elliot Lee's avatar
Elliot Lee committed
22
	gtkcolorsel.c		\
23
	gtkcombo.c		\
Elliot Lee's avatar
Elliot Lee committed
24
	gtkcontainer.c		\
25
	gtkctree.c		\
Elliot Lee's avatar
Elliot Lee committed
26
27
28
29
	gtkcurve.c		\
	gtkdata.c		\
	gtkdialog.c		\
	gtkdrawingarea.c	\
30
	gtkeditable.c           \
Elliot Lee's avatar
Elliot Lee committed
31
32
33
34
	gtkentry.c		\
	gtkeventbox.c		\
	gtkfilesel.c		\
	gtkfixed.c		\
35
	gtkfontsel.c            \
Elliot Lee's avatar
Elliot Lee committed
36
37
38
	gtkframe.c		\
	gtkgamma.c		\
	gtkgc.c			\
scott's avatar
scott committed
39
	gtkhandlebox.c		\
Elliot Lee's avatar
Elliot Lee committed
40
41
42
43
44
45
46
47
48
49
	gtkhbbox.c		\
	gtkhbox.c		\
	gtkhpaned.c		\
	gtkhruler.c		\
	gtkhscale.c		\
	gtkhscrollbar.c		\
	gtkhseparator.c		\
	gtkimage.c		\
	gtkinputdialog.c	\
	gtkitem.c		\
Tim Janik's avatar
Tim Janik committed
50
	gtkitemfactory.c	\
Elliot Lee's avatar
Elliot Lee committed
51
52
53
54
	gtklabel.c		\
	gtklist.c		\
	gtklistitem.c		\
	gtkmain.c		\
55
	gtkmarshal.c		\
Elliot Lee's avatar
Elliot Lee committed
56
57
58
59
60
61
62
63
64
	gtkmenu.c		\
	gtkmenubar.c		\
	gtkmenufactory.c	\
	gtkmenuitem.c		\
	gtkmenushell.c		\
	gtkmisc.c		\
	gtknotebook.c		\
	gtkobject.c		\
	gtkoptionmenu.c		\
CDT 1998 Shawn T. Amundson's avatar
CDT 1998 Shawn T. Amundson committed
65
	gtkpacker.c		\
Elliot Lee's avatar
Elliot Lee committed
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
	gtkpaned.c		\
	gtkpixmap.c		\
	gtkpreview.c		\
	gtkprogressbar.c	\
	gtkradiobutton.c	\
	gtkradiomenuitem.c	\
	gtkrange.c		\
	gtkrc.c			\
	gtkruler.c		\
	gtkscale.c		\
	gtkscrollbar.c		\
	gtkscrolledwindow.c	\
	gtkselection.c		\
	gtkseparator.c		\
	gtksignal.c		\
81
	gtkspinbutton.c		\
Elliot Lee's avatar
Elliot Lee committed
82
	gtkstyle.c		\
Shawn Amundson's avatar
Shawn Amundson committed
83
	gtkstatusbar.c		\
Elliot Lee's avatar
Elliot Lee committed
84
85
	gtktable.c		\
	gtktext.c		\
86
	gtktipsquery.c		\
Elliot Lee's avatar
Elliot Lee committed
87
	gtktogglebutton.c	\
88
	gtktoolbar.c		\
Elliot Lee's avatar
Elliot Lee committed
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
	gtktooltips.c		\
	gtktree.c		\
	gtktreeitem.c		\
	gtktypeutils.c		\
	gtkvbbox.c		\
	gtkvbox.c		\
	gtkviewport.c		\
	gtkvpaned.c		\
	gtkvruler.c		\
	gtkvscale.c		\
	gtkvscrollbar.c		\
	gtkvseparator.c		\
	gtkwidget.c		\
	gtkwindow.c		\
	fnmatch.c		\
	fnmatch.h

gtkinclude_HEADERS = \
	gtk.h			\
Tim Janik's avatar
Tim Janik committed
108
109
	gtkaccelgroup.h		\
	gtkaccellabel.h		\
Elliot Lee's avatar
Elliot Lee committed
110
111
112
113
114
	gtkadjustment.h		\
	gtkaspectframe.h	\
	gtkalignment.h		\
	gtkarrow.h		\
	gtkbin.h		\
Tim Janik's avatar
Tim Janik committed
115
	gtkbindings.h		\
Elliot Lee's avatar
Elliot Lee committed
116
117
118
119
120
	gtkbbox.h		\
	gtkbox.h		\
	gtkbutton.h		\
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
121
	gtkclist.h		\
Elliot Lee's avatar
Elliot Lee committed
122
	gtkcolorsel.h		\
123
	gtkcombo.h		\
Elliot Lee's avatar
Elliot Lee committed
124
	gtkcontainer.h		\
125
	gtkctree.h		\
Elliot Lee's avatar
Elliot Lee committed
126
127
	gtkcurve.h		\
	gtkdata.h		\
128
	gtkdebug.h              \
Elliot Lee's avatar
Elliot Lee committed
129
130
	gtkdialog.h		\
	gtkdrawingarea.h	\
131
	gtkeditable.h           \
Elliot Lee's avatar
Elliot Lee committed
132
133
134
	gtkentry.h		\
	gtkenums.h		\
	gtkeventbox.h		\
135
	gtkfeatures.h		\
Elliot Lee's avatar
Elliot Lee committed
136
137
	gtkfilesel.h		\
	gtkfixed.h		\
138
	gtkfontsel.h		\
Elliot Lee's avatar
Elliot Lee committed
139
140
141
	gtkframe.h		\
	gtkgamma.h		\
	gtkgc.h			\
142
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
143
144
145
146
147
148
149
150
151
152
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.h		\
	gtkhruler.h		\
	gtkhscale.h		\
	gtkhscrollbar.h		\
	gtkhseparator.h		\
	gtkimage.h		\
	gtkinputdialog.h	\
	gtkitem.h		\
Tim Janik's avatar
Tim Janik committed
153
	gtkitemfactory.h	\
Elliot Lee's avatar
Elliot Lee committed
154
155
156
157
	gtklabel.h		\
	gtklist.h		\
	gtklistitem.h		\
	gtkmain.h		\
158
	gtkmarshal.h		\
Elliot Lee's avatar
Elliot Lee committed
159
160
161
162
163
164
165
166
167
	gtkmenu.h		\
	gtkmenubar.h		\
	gtkmenufactory.h	\
	gtkmenuitem.h		\
	gtkmenushell.h		\
	gtkmisc.h		\
	gtknotebook.h		\
	gtkobject.h		\
	gtkoptionmenu.h		\
CDT 1998 Shawn T. Amundson's avatar
CDT 1998 Shawn T. Amundson committed
168
	gtkpacker.h		\
Elliot Lee's avatar
Elliot Lee committed
169
170
171
	gtkpaned.h		\
	gtkpixmap.h		\
	gtkpreview.h		\
172
	gtkprivate.h		\
Elliot Lee's avatar
Elliot Lee committed
173
174
175
176
177
178
179
180
181
182
183
184
	gtkprogressbar.h	\
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
	gtkrange.h		\
	gtkrc.h			\
	gtkruler.h		\
	gtkscale.h		\
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
	gtksignal.h		\
185
	gtkspinbutton.h		\
Elliot Lee's avatar
Elliot Lee committed
186
	gtkstyle.h		\
Shawn Amundson's avatar
Shawn Amundson committed
187
	gtkstatusbar.h		\
Elliot Lee's avatar
Elliot Lee committed
188
189
	gtktable.h		\
	gtktext.h		\
190
	gtktipsquery.h		\
Elliot Lee's avatar
Elliot Lee committed
191
	gtktogglebutton.h	\
192
	gtktoolbar.h		\
Elliot Lee's avatar
Elliot Lee committed
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
	gtktooltips.h		\
	gtktree.h		\
	gtktreeitem.h		\
	gtktypeutils.h		\
	gtkvbbox.h		\
	gtkvbox.h		\
	gtkviewport.h		\
	gtkvpaned.h		\
	gtkvruler.h		\
	gtkvscale.h		\
	gtkvscrollbar.h		\
	gtkvseparator.h		\
	gtkwidget.h		\
	gtkwindow.h             \
	gtktypebuiltins.h

209
.PHONY: auto-files auto-files-1
210
auto-files:
211
	rm -f $(srcdir)/gtk.defs
212
	$(MAKE) auto-files-1
213

214
215
216
217
218
219
auto-files-1: gtk.defs
auto-files-1: gtktypebuiltins_evals.c gtktypebuiltins_ids.c
auto-files-1: gtktypebuiltins_vars.c gtktypebuiltins.h

# generate gtk.defs file from gtk-boxed.defs and *.h
gtk.defs: @MAINT@ makeenums.pl gtk-boxed.defs
220
221
	srcdir=$(srcdir) \
	  perl $(srcdir)/makeenums.pl defs $(srcdir)/gtk*.h \
222
223
224
225
               $(top_srcdir)/gdk/gdk*.h > gd.tmp
	cat $(srcdir)/gtk-boxed.defs >> gd.tmp
	cp gd.tmp $(srcdir)/gtk.defs
	rm -f gd.tmp
Elliot Lee's avatar
Elliot Lee committed
226

227
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
228
229
230
231
gtktypebuiltins.h: @MAINT@ gtk.defs maketypes.awk
	awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs macros > gtb.tmp
	cp gtb.tmp $(srcdir)/gtktypebuiltins.h
	rm -f gtb.tmp
232
233

# generate type identifier variables (GTK_TYPE_WIDGET_FLAGS)
234
235
236
237
gtktypebuiltins_vars.c: @MAINT@ gtk.defs maketypes.awk
	awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs variables > gtbv.tmp
	cp gtbv.tmp $(srcdir)/gtktypebuiltins_vars.c
	rm -f gtbv.tmp
Elliot Lee's avatar
Elliot Lee committed
238

239
# generate type entries for type-id registration
240
241
242
243
gtktypebuiltins_ids.c: @MAINT@ gtk.defs maketypes.awk
	awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs entries > gtbi.tmp
	cp gtbi.tmp $(srcdir)/gtktypebuiltins_ids.c
	rm -f gtbi.tmp
244

245
# generate enum value arrays
246
gtktypebuiltins_evals.c: @MAINT@ makeenums.pl gtk.defs
247
248
	srcdir=$(srcdir) \
	  perl $(srcdir)/makeenums.pl arrays $(srcdir)/gtk*.h \
249
250
251
               $(top_srcdir)/gdk/gdk*.h > gtbe.tmp
	cp gtbe.tmp $(srcdir)/gtktypebuiltins_evals.c
	rm -f gtbe.tmp
Tim Janik's avatar
Tim Janik committed
252

253
gtkmarshal.c gtkmarshal.h: @MAINT@ gtkmarshal.list genmarshal.pl
254
255
	srcdir=$(srcdir) perl $(srcdir)/genmarshal.pl

256
# ???
Tim Janik's avatar
Tim Janik committed
257
# special remake rules
258
makeenums.h: @MAINT@ gtk.h gtkprivate.h
Tim Janik's avatar
Tim Janik committed
259

Tim Janik's avatar
Tim Janik committed
260
libgtk_1_1_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
Elliot Lee's avatar
Elliot Lee committed
261
262
263
264
265

EXTRA_DIST = \
	line-arrow.xbm 		\
	line-wrap.xbm 		\
	testgtkrc 		\
266
	testgtkrc2 		\
267
	gtkfeatures.h.in	\
268
	makeenums.awk		\
269
	maketypes.awk		\
270
	makeenums.h		\
271
272
273
	gtktypebuiltins_vars.c	\
	gtktypebuiltins_ids.c	\
	gtktypebuiltins_evals.c	\
274
275
	gtk-boxed.defs		\
	gtk.defs		\
Elliot Lee's avatar
Elliot Lee committed
276
277
278
279
	test.xpm		\
	marble.xpm		\
	3DRings.xpm		\
	FilesQueue.xpm		\
280
281
282
283
	Modeller.xpm		\
	tree_plus.xpm		\
	tree_minus.xpm		\
	tree_plus.xbm		\
284
285
	tree_minus.xbm          \
        circles.xbm
Elliot Lee's avatar
Elliot Lee committed
286

Owen Taylor's avatar
Owen Taylor committed
287
INCLUDES = -I$(top_srcdir) @GLIB_CFLAGS@ @x_cflags@
Elliot Lee's avatar
Elliot Lee committed
288

Owen Taylor's avatar
Owen Taylor committed
289
noinst_PROGRAMS = testgtk testinput testselection testthreads simple 
290

Tim Janik's avatar
Tim Janik committed
291
# FIXME, we currently rely on linking against libglib-1.1
Elliot Lee's avatar
Elliot Lee committed
292

Tim Janik's avatar
Tim Janik committed
293
294
DEPS =	\
	libgtk-@LT_RELEASE@.la				\
Owen Taylor's avatar
Owen Taylor committed
295
296
	$(top_builddir)/gdk/libgdk-@LT_RELEASE@.la

Tim Janik's avatar
Tim Janik committed
297
298
299
300
301
LDADDS = \
	libgtk-@LT_RELEASE@.la				\
	$(top_builddir)/gdk/libgdk-@LT_RELEASE@.la	\
	@x_ldflags@					\
	@x_libs@					\
Owen Taylor's avatar
Owen Taylor committed
302
	@GLIB_LIBS@                                     \
Elliot Lee's avatar
Elliot Lee committed
303
304
305
306
	-lm

testgtk_DEPENDENCIES = $(DEPS)
testinput_DEPENDENCIES = $(DEPS)
Owen Taylor's avatar
Owen Taylor committed
307
testthreads_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
308
309
310
testselection_DEPENDENCIES = $(DEPS)
simple_DEPENDENCIES = $(DEPS)

Tim Janik's avatar
Tim Janik committed
311
312
testgtk_LDADD = $(LDADDS)
testinput_LDADD = $(LDADDS)
Owen Taylor's avatar
Owen Taylor committed
313
testthreads_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
314
315
316
testselection_LDADD = $(LDADDS)
simple_LDADD = $(LDADDS)

317
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
318
319
320
321
322

files:
	@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
	  echo $$p; \
	done
323
324

test: testgtk
325
326
327
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute $$builddir/testgtk
328
329

test-debug: testgtk
330
331
332
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtk