Makefile.am 7.37 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
35
36
37
	gtkentry.c		\
	gtkeventbox.c		\
	gtkfilesel.c		\
	gtkfixed.c		\
	gtkframe.c		\
	gtkgamma.c		\
	gtkgc.c			\
scott's avatar
scott committed
38
	gtkhandlebox.c		\
Elliot Lee's avatar
Elliot Lee committed
39
40
41
42
43
44
45
46
47
48
	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
49
	gtkitemfactory.c	\
Elliot Lee's avatar
Elliot Lee committed
50
51
52
53
	gtklabel.c		\
	gtklist.c		\
	gtklistitem.c		\
	gtkmain.c		\
54
	gtkmarshal.c		\
Elliot Lee's avatar
Elliot Lee committed
55
56
57
58
59
60
61
62
63
	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
64
	gtkpacker.c		\
Elliot Lee's avatar
Elliot Lee committed
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
	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		\
80
	gtkspinbutton.c		\
Elliot Lee's avatar
Elliot Lee committed
81
	gtkstyle.c		\
Shawn Amundson's avatar
Shawn Amundson committed
82
	gtkstatusbar.c		\
Elliot Lee's avatar
Elliot Lee committed
83
84
	gtktable.c		\
	gtktext.c		\
85
	gtktipsquery.c		\
Elliot Lee's avatar
Elliot Lee committed
86
	gtktogglebutton.c	\
87
	gtktoolbar.c		\
Elliot Lee's avatar
Elliot Lee committed
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
	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
107
108
	gtkaccelgroup.h		\
	gtkaccellabel.h		\
Elliot Lee's avatar
Elliot Lee committed
109
110
111
112
113
	gtkadjustment.h		\
	gtkaspectframe.h	\
	gtkalignment.h		\
	gtkarrow.h		\
	gtkbin.h		\
Tim Janik's avatar
Tim Janik committed
114
	gtkbindings.h		\
Elliot Lee's avatar
Elliot Lee committed
115
116
117
118
119
	gtkbbox.h		\
	gtkbox.h		\
	gtkbutton.h		\
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
120
	gtkclist.h		\
Elliot Lee's avatar
Elliot Lee committed
121
	gtkcolorsel.h		\
122
	gtkcombo.h		\
Elliot Lee's avatar
Elliot Lee committed
123
	gtkcontainer.h		\
124
	gtkctree.h		\
Elliot Lee's avatar
Elliot Lee committed
125
126
	gtkcurve.h		\
	gtkdata.h		\
127
	gtkdebug.h              \
Elliot Lee's avatar
Elliot Lee committed
128
129
	gtkdialog.h		\
	gtkdrawingarea.h	\
130
	gtkeditable.h           \
Elliot Lee's avatar
Elliot Lee committed
131
132
133
	gtkentry.h		\
	gtkenums.h		\
	gtkeventbox.h		\
134
	gtkfeatures.h		\
Elliot Lee's avatar
Elliot Lee committed
135
136
137
138
139
	gtkfilesel.h		\
	gtkfixed.h		\
	gtkframe.h		\
	gtkgamma.h		\
	gtkgc.h			\
140
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
141
142
143
144
145
146
147
148
149
150
	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
151
	gtkitemfactory.h	\
Elliot Lee's avatar
Elliot Lee committed
152
153
154
155
	gtklabel.h		\
	gtklist.h		\
	gtklistitem.h		\
	gtkmain.h		\
156
	gtkmarshal.h		\
Elliot Lee's avatar
Elliot Lee committed
157
158
159
160
161
162
163
164
165
	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
166
	gtkpacker.h		\
Elliot Lee's avatar
Elliot Lee committed
167
168
169
	gtkpaned.h		\
	gtkpixmap.h		\
	gtkpreview.h		\
170
	gtkprivate.h		\
Elliot Lee's avatar
Elliot Lee committed
171
172
173
174
175
176
177
178
179
180
181
182
	gtkprogressbar.h	\
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
	gtkrange.h		\
	gtkrc.h			\
	gtkruler.h		\
	gtkscale.h		\
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
	gtksignal.h		\
183
	gtkspinbutton.h		\
Elliot Lee's avatar
Elliot Lee committed
184
	gtkstyle.h		\
Shawn Amundson's avatar
Shawn Amundson committed
185
	gtkstatusbar.h		\
Elliot Lee's avatar
Elliot Lee committed
186
187
	gtktable.h		\
	gtktext.h		\
188
	gtktipsquery.h		\
Elliot Lee's avatar
Elliot Lee committed
189
	gtktogglebutton.h	\
190
	gtktoolbar.h		\
Elliot Lee's avatar
Elliot Lee committed
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
	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

207
auto-files:
208
209
210
211
	rm -f $(srcdir)/gtk.defs
	make $(srcdir)/gtktypebuiltins_evals.c
	make $(srcdir)/gtktypebuiltins_ids.c
	make $(srcdir)/gtktypebuiltins_vars.c
212
213
	make $(srcdir)/gtktypebuiltins.h

214
# generate gtk.defs file from gtk-boxed.defs and gcc -E
215
$(srcdir)/gtk.defs: @MAINT@ makeenums.awk makeenums.h gtk-boxed.defs
216
217
218
	$(COMPILE) -E -DG_CODE_GENERATION $(srcdir)/makeenums.h $(CFLAGS) | \
	  awk -f $(srcdir)/makeenums.awk - defs > $@
	cat $(srcdir)/gtk-boxed.defs >> $@
Elliot Lee's avatar
Elliot Lee committed
219

220
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
221
$(srcdir)/gtktypebuiltins.h: @MAINT@ $(srcdir)/gtk.defs maketypes.awk
222
	awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs macros > $@
223
224

# generate type identifier variables (GTK_TYPE_WIDGET_FLAGS)
225
$(srcdir)/gtktypebuiltins_vars.c: @MAINT@ $(srcdir)/gtk.defs maketypes.awk
226
	awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs variables > $@
Elliot Lee's avatar
Elliot Lee committed
227

228
# generate type entries for type-id registration
229
$(srcdir)/gtktypebuiltins_ids.c: @MAINT@ $(srcdir)/gtk.defs maketypes.awk
230
	awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs entries > $@
231
232

# generate enum value arrays from gcc -E
233
$(srcdir)/gtktypebuiltins_evals.c: @MAINT@ makeenums.awk makeenums.h $(srcdir)/gtk.defs
234
235
	$(COMPILE) -E -DG_CODE_GENERATION $(srcdir)/makeenums.h $(CFLAGS) | \
	  awk -f $(srcdir)/makeenums.awk - arrays > $@
Tim Janik's avatar
Tim Janik committed
236
237

# special remake rules
238
239
240
241
242
243
244
245
246
247
248
249
#$(srcdir)/gtk.defs: @MAINT@ $(srcdir)/makeenums.awk
#$(srcdir)/gtk.defs: @MAINT@ $(srcdir)/makeenums.h
#$(srcdir)/gtk.defs: @MAINT@ $(srcdir)/gtk-boxed.defs
#$(srcdir)/gtktypebuiltins_vars.c: @MAINT@ $(srcdir)/maketypes.awk
#$(srcdir)/gtktypebuiltins_vars.c: @MAINT@ $(srcdir)/gtk.defs
#$(srcdir)/gtktypebuiltins_ids.c: @MAINT@ $(srcdir)/maketypes.awk
#$(srcdir)/gtktypebuiltins_ids.c: @MAINT@ $(srcdir)/gtk.defs
#$(srcdir)/gtktypebuiltins_evals.c: @MAINT@ $(srcdir)/makeenums.awk
#$(srcdir)/gtktypebuiltins_evals.c: @MAINT@ $(srcdir)/makeenums.h
#$(srcdir)/gtktypebuiltins_evals.c: @MAINT@ $(srcdir)/gtk.defs
#$(srcdir)/gtktypebuiltins.h: @MAINT@ $(srcdir)/maketypes.awk
#$(srcdir)/gtktypebuiltins.h: @MAINT@ $(srcdir)/gtk.defs
250
251
$(srcdir)/makeenums.h: @MAINT@ $(srcdir)/gtk.h
$(srcdir)/makeenums.h: @MAINT@ $(srcdir)/gtkprivate.h
Tim Janik's avatar
Tim Janik committed
252

Tim Janik's avatar
Tim Janik committed
253
libgtk_1_1_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
Elliot Lee's avatar
Elliot Lee committed
254
255
256
257
258

EXTRA_DIST = \
	line-arrow.xbm 		\
	line-wrap.xbm 		\
	testgtkrc 		\
259
	testgtkrc2 		\
260
	gtkfeatures.h.in	\
261
	makeenums.awk		\
262
	maketypes.awk		\
263
	makeenums.h		\
264
265
266
	gtktypebuiltins_vars.c	\
	gtktypebuiltins_ids.c	\
	gtktypebuiltins_evals.c	\
267
268
	gtk-boxed.defs		\
	gtk.defs		\
Elliot Lee's avatar
Elliot Lee committed
269
270
271
272
	test.xpm		\
	marble.xpm		\
	3DRings.xpm		\
	FilesQueue.xpm		\
273
274
275
276
	Modeller.xpm		\
	tree_plus.xpm		\
	tree_minus.xpm		\
	tree_plus.xbm		\
277
278
	tree_minus.xbm          \
        circles.xbm
Elliot Lee's avatar
Elliot Lee committed
279

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

Owen Taylor's avatar
Owen Taylor committed
282
noinst_PROGRAMS = testgtk testinput testselection testthreads simple 
283

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

Tim Janik's avatar
Tim Janik committed
286
287
DEPS =	\
	libgtk-@LT_RELEASE@.la				\
Owen Taylor's avatar
Owen Taylor committed
288
289
	$(top_builddir)/gdk/libgdk-@LT_RELEASE@.la

Tim Janik's avatar
Tim Janik committed
290
291
292
293
294
LDADDS = \
	libgtk-@LT_RELEASE@.la				\
	$(top_builddir)/gdk/libgdk-@LT_RELEASE@.la	\
	@x_ldflags@					\
	@x_libs@					\
Owen Taylor's avatar
Owen Taylor committed
295
	@GLIB_LIBS@                                     \
Elliot Lee's avatar
Elliot Lee committed
296
297
298
299
	-lm

testgtk_DEPENDENCIES = $(DEPS)
testinput_DEPENDENCIES = $(DEPS)
Owen Taylor's avatar
Owen Taylor committed
300
testthreads_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
301
302
303
testselection_DEPENDENCIES = $(DEPS)
simple_DEPENDENCIES = $(DEPS)

Tim Janik's avatar
Tim Janik committed
304
305
testgtk_LDADD = $(LDADDS)
testinput_LDADD = $(LDADDS)
Owen Taylor's avatar
Owen Taylor committed
306
testthreads_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
307
308
309
310
testselection_LDADD = $(LDADDS)
simple_LDADD = $(LDADDS)


311
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
312
313
314
315
316

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

test: testgtk
319
320
321
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute $$builddir/testgtk
322
323

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

gtkmarshal.c gtkmarshal.h: gtkmarshal.list
329
	srcdir=$(srcdir) perl $(srcdir)/genmarshal.pl