Makefile.am 7.34 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

gtkincludedir = $(includedir)/gtk
4
DEFS += -DG_LOG_DOMAIN=\"Gtk\"
Elliot Lee's avatar
Elliot Lee committed
5

6
lib_LTLIBRARIES = libgtk.la
Elliot Lee's avatar
Elliot Lee committed
7

8
libgtk_la_SOURCES = \
Tim Janik's avatar
Tim Janik committed
9
10
	gtkaccelgroup.c		\
	gtkaccellabel.c		\
Elliot Lee's avatar
Elliot Lee committed
11
12
	gtkadjustment.c		\
	gtkalignment.c		\
13
	gtkarg.c		\
Elliot Lee's avatar
Elliot Lee committed
14
	gtkarrow.c		\
15
	gtkaspectframe.c	\
Elliot Lee's avatar
Elliot Lee committed
16
	gtkbin.c		\
Tim Janik's avatar
Tim Janik committed
17
	gtkbindings.c		\
Elliot Lee's avatar
Elliot Lee committed
18
19
20
21
22
	gtkbbox.c		\
	gtkbox.c		\
	gtkbutton.c		\
	gtkcheckbutton.c	\
	gtkcheckmenuitem.c	\
23
	gtkclist.c		\
Elliot Lee's avatar
Elliot Lee committed
24
	gtkcolorsel.c		\
25
	gtkcombo.c		\
Elliot Lee's avatar
Elliot Lee committed
26
	gtkcontainer.c		\
27
	gtkctree.c		\
Elliot Lee's avatar
Elliot Lee committed
28
29
30
31
	gtkcurve.c		\
	gtkdata.c		\
	gtkdialog.c		\
	gtkdrawingarea.c	\
32
	gtkeditable.c           \
Elliot Lee's avatar
Elliot Lee committed
33
34
35
36
	gtkentry.c		\
	gtkeventbox.c		\
	gtkfilesel.c		\
	gtkfixed.c		\
37
	gtkfontsel.c            \
Elliot Lee's avatar
Elliot Lee committed
38
39
40
	gtkframe.c		\
	gtkgamma.c		\
	gtkgc.c			\
scott's avatar
scott committed
41
	gtkhandlebox.c		\
Elliot Lee's avatar
Elliot Lee committed
42
43
44
45
46
47
48
49
50
51
	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
52
	gtkitemfactory.c	\
Elliot Lee's avatar
Elliot Lee committed
53
54
55
56
	gtklabel.c		\
	gtklist.c		\
	gtklistitem.c		\
	gtkmain.c		\
57
	gtkmarshal.c		\
Elliot Lee's avatar
Elliot Lee committed
58
59
60
61
62
63
64
65
66
	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
67
	gtkpacker.c		\
Elliot Lee's avatar
Elliot Lee committed
68
69
70
	gtkpaned.c		\
	gtkpixmap.c		\
	gtkpreview.c		\
71
	gtkprogress.c		\
Elliot Lee's avatar
Elliot Lee committed
72
73
74
75
76
77
78
79
80
81
82
83
	gtkprogressbar.c	\
	gtkradiobutton.c	\
	gtkradiomenuitem.c	\
	gtkrange.c		\
	gtkrc.c			\
	gtkruler.c		\
	gtkscale.c		\
	gtkscrollbar.c		\
	gtkscrolledwindow.c	\
	gtkselection.c		\
	gtkseparator.c		\
	gtksignal.c		\
84
	gtkspinbutton.c		\
Elliot Lee's avatar
Elliot Lee committed
85
	gtkstyle.c		\
Shawn Amundson's avatar
Shawn Amundson committed
86
	gtkstatusbar.c		\
Elliot Lee's avatar
Elliot Lee committed
87
	gtktable.c		\
88
	gtktearoffmenuitem.c    \
Elliot Lee's avatar
Elliot Lee committed
89
	gtktext.c		\
90
	gtktipsquery.c		\
Elliot Lee's avatar
Elliot Lee committed
91
	gtktogglebutton.c	\
92
	gtktoolbar.c		\
Elliot Lee's avatar
Elliot Lee committed
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
	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

110
111
# Source headers are are non-autogenerated headers
source_headers = \
Elliot Lee's avatar
Elliot Lee committed
112
	gtk.h			\
Tim Janik's avatar
Tim Janik committed
113
114
	gtkaccelgroup.h		\
	gtkaccellabel.h		\
Elliot Lee's avatar
Elliot Lee committed
115
116
	gtkadjustment.h		\
	gtkalignment.h		\
117
	gtkarg.h		\
Elliot Lee's avatar
Elliot Lee committed
118
	gtkarrow.h		\
119
	gtkaspectframe.h	\
Elliot Lee's avatar
Elliot Lee committed
120
	gtkbin.h		\
Tim Janik's avatar
Tim Janik committed
121
	gtkbindings.h		\
Elliot Lee's avatar
Elliot Lee committed
122
123
124
125
126
	gtkbbox.h		\
	gtkbox.h		\
	gtkbutton.h		\
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
127
	gtkclist.h		\
Elliot Lee's avatar
Elliot Lee committed
128
	gtkcolorsel.h		\
129
	gtkcombo.h		\
Elliot Lee's avatar
Elliot Lee committed
130
	gtkcontainer.h		\
131
	gtkctree.h		\
Elliot Lee's avatar
Elliot Lee committed
132
133
	gtkcurve.h		\
	gtkdata.h		\
134
	gtkdebug.h              \
Elliot Lee's avatar
Elliot Lee committed
135
136
	gtkdialog.h		\
	gtkdrawingarea.h	\
137
	gtkeditable.h           \
Elliot Lee's avatar
Elliot Lee committed
138
139
140
141
142
	gtkentry.h		\
	gtkenums.h		\
	gtkeventbox.h		\
	gtkfilesel.h		\
	gtkfixed.h		\
143
	gtkfontsel.h		\
Elliot Lee's avatar
Elliot Lee committed
144
145
146
	gtkframe.h		\
	gtkgamma.h		\
	gtkgc.h			\
147
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
148
149
150
151
152
153
154
155
156
157
	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
158
	gtkitemfactory.h	\
Elliot Lee's avatar
Elliot Lee committed
159
160
161
162
163
164
165
166
167
168
169
170
171
	gtklabel.h		\
	gtklist.h		\
	gtklistitem.h		\
	gtkmain.h		\
	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
172
	gtkpacker.h		\
Elliot Lee's avatar
Elliot Lee committed
173
174
175
	gtkpaned.h		\
	gtkpixmap.h		\
	gtkpreview.h		\
176
	gtkprivate.h		\
177
	gtkprogress.h		\
Elliot Lee's avatar
Elliot Lee committed
178
179
180
181
182
183
184
185
186
187
188
189
	gtkprogressbar.h	\
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
	gtkrange.h		\
	gtkrc.h			\
	gtkruler.h		\
	gtkscale.h		\
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
	gtksignal.h		\
190
	gtkspinbutton.h		\
Elliot Lee's avatar
Elliot Lee committed
191
	gtkstyle.h		\
Shawn Amundson's avatar
Shawn Amundson committed
192
	gtkstatusbar.h		\
Elliot Lee's avatar
Elliot Lee committed
193
	gtktable.h		\
194
	gtktearoffmenuitem.h    \
Elliot Lee's avatar
Elliot Lee committed
195
	gtktext.h		\
196
	gtktipsquery.h		\
Elliot Lee's avatar
Elliot Lee committed
197
	gtktogglebutton.h	\
198
	gtktoolbar.h		\
Elliot Lee's avatar
Elliot Lee committed
199
200
201
202
203
204
205
206
207
208
209
210
211
	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		\
212
213
214
215
	gtkwindow.h

gtkinclude_HEADERS = 		\
	$(source_headers) 	\
216
	gtkfeatures.h		\
217
	gtkmarshal.h		\
Elliot Lee's avatar
Elliot Lee committed
218
219
	gtktypebuiltins.h

220
221
222
223
224
225
226
BUILT_SOURCES = \
	gtktypebuiltins.h 		\
	gtktypebuiltins_evals.c 	\
	gtktypebuiltins_ids.c 		\
        gtktypebuiltins_vars.c 		\
	gtkmarshal.c 			\
        gtkmarshal.h 
227

228
229
230
231
# More headers to use when autogenerating.
gdk_headers = \
	$(top_srcdir)/gdk/gdktypes.h \
	$(top_srcdir)/gdk/gdkrgb.h
232
233

# generate gtk.defs file from gtk-boxed.defs and *.h
234
gtk.defs: @REBUILD@ makeenums.pl gtk-boxed.defs $(source_headers) $(gdk_headers)
235
	src_headers=`echo $(source_headers) | sed s%gtk%$(srcdir)/gtk%g` ; \
236
	srcdir=$(srcdir) \
237
238
	  perl $(srcdir)/makeenums.pl defs $$src_headers \
               $(gdk_headers) > gd.tmp
239
240
241
	cat $(srcdir)/gtk-boxed.defs >> gd.tmp
	cp gd.tmp $(srcdir)/gtk.defs
	rm -f gd.tmp
Elliot Lee's avatar
Elliot Lee committed
242

243
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
244
gtktypebuiltins.h: @REBUILD@ gtk.defs maketypes.awk
245
246
247
	awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs macros > gtb.tmp
	cp gtb.tmp $(srcdir)/gtktypebuiltins.h
	rm -f gtb.tmp
248
249

# generate type identifier variables (GTK_TYPE_WIDGET_FLAGS)
250
gtktypebuiltins_vars.c: @REBUILD@ gtk.defs maketypes.awk
251
252
253
	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
254

255
# generate type entries for type-id registration
256
gtktypebuiltins_ids.c: @REBUILD@ gtk.defs maketypes.awk
257
258
259
	awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs entries > gtbi.tmp
	cp gtbi.tmp $(srcdir)/gtktypebuiltins_ids.c
	rm -f gtbi.tmp
260

261
# generate enum value arrays
262
gtktypebuiltins_evals.c: @REBUILD@ makeenums.pl gtk.defs
263
264
	srcdir=$(srcdir) \
	  perl $(srcdir)/makeenums.pl arrays $(srcdir)/gtk*.h \
265
266
267
               $(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
268

269
gtkmarshal.c gtkmarshal.h: @REBUILD@ gtkmarshal.list genmarshal.pl
270
271
	srcdir=$(srcdir) perl $(srcdir)/genmarshal.pl

272
# ???
Tim Janik's avatar
Tim Janik committed
273
# special remake rules
274
# makeenums.h: @REBUILD@ gtk.h gtkprivate.h
Tim Janik's avatar
Tim Janik committed
275

276
277
libgtk_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE)
Elliot Lee's avatar
Elliot Lee committed
278
279
280
281

EXTRA_DIST = \
	line-arrow.xbm 		\
	line-wrap.xbm 		\
Tim Janik's avatar
Tim Janik committed
282
	testgtk.1 		\
Elliot Lee's avatar
Elliot Lee committed
283
	testgtkrc 		\
284
	testgtkrc2 		\
285
	gtkfeatures.h.in	\
Tim Janik's avatar
Tim Janik committed
286
	makeenums.pl		\
287
	makeenums.awk		\
288
	maketypes.awk		\
289
	makeenums.h		\
290
	gtkargcollector.c	\
291
292
293
	gtktypebuiltins_vars.c	\
	gtktypebuiltins_ids.c	\
	gtktypebuiltins_evals.c	\
294
295
	gtk-boxed.defs		\
	gtk.defs		\
Tim Janik's avatar
Tim Janik committed
296
297
	genmarshal.pl		\
	gtkmarshal.list		\
Elliot Lee's avatar
Elliot Lee committed
298
299
300
301
	test.xpm		\
	marble.xpm		\
	3DRings.xpm		\
	FilesQueue.xpm		\
302
303
304
305
	Modeller.xpm		\
	tree_plus.xpm		\
	tree_minus.xpm		\
	tree_plus.xbm		\
306
307
	tree_minus.xbm          \
        circles.xbm
Elliot Lee's avatar
Elliot Lee committed
308

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

311
noinst_PROGRAMS = testgtk testinput testselection testthreads testrgb simple 
312

Tim Janik's avatar
Tim Janik committed
313
DEPS =	\
314
315
	libgtk.la					\
	$(top_builddir)/gdk/libgdk.la
Owen Taylor's avatar
Owen Taylor committed
316

Tim Janik's avatar
Tim Janik committed
317
LDADDS = \
318
319
	libgtk.la					\
	$(top_builddir)/gdk/libgdk.la			\
Tim Janik's avatar
Tim Janik committed
320
321
	@x_ldflags@					\
	@x_libs@					\
Owen Taylor's avatar
Owen Taylor committed
322
	@GLIB_LIBS@                                     \
Elliot Lee's avatar
Elliot Lee committed
323
324
325
326
	-lm

testgtk_DEPENDENCIES = $(DEPS)
testinput_DEPENDENCIES = $(DEPS)
Owen Taylor's avatar
Owen Taylor committed
327
testthreads_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
328
testselection_DEPENDENCIES = $(DEPS)
329
testrgb_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
330
331
simple_DEPENDENCIES = $(DEPS)

Tim Janik's avatar
Tim Janik committed
332
333
testgtk_LDADD = $(LDADDS)
testinput_LDADD = $(LDADDS)
Owen Taylor's avatar
Owen Taylor committed
334
testthreads_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
335
testselection_LDADD = $(LDADDS)
336
testrgb_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
337
338
simple_LDADD = $(LDADDS)

339
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
340
341
342
343
344

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

test: testgtk
347
348
349
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute $$builddir/testgtk
350
351

test-debug: testgtk
352
353
354
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtk