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

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

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

115
libgtk_la_SOURCES = \
116
	$(static_SOURCES)	\
117 118
	gtkmarshal.c

119
# Source headers which are non-autogenerated headers
120
source_headers = \
Elliot Lee's avatar
Elliot Lee committed
121
	gtk.h			\
Tim Janik's avatar
Tim Janik committed
122 123
	gtkaccelgroup.h		\
	gtkaccellabel.h		\
Elliot Lee's avatar
Elliot Lee committed
124 125
	gtkadjustment.h		\
	gtkalignment.h		\
126
	gtkarg.h		\
Elliot Lee's avatar
Elliot Lee committed
127
	gtkarrow.h		\
128
	gtkaspectframe.h	\
Elliot Lee's avatar
Elliot Lee committed
129
	gtkbin.h		\
Tim Janik's avatar
Tim Janik committed
130
	gtkbindings.h		\
Elliot Lee's avatar
Elliot Lee committed
131 132 133
	gtkbbox.h		\
	gtkbox.h		\
	gtkbutton.h		\
134
	gtkcalendar.h		\
Elliot Lee's avatar
Elliot Lee committed
135 136
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
137
	gtkclist.h		\
Elliot Lee's avatar
Elliot Lee committed
138
	gtkcolorsel.h		\
139
	gtkcombo.h		\
140
	gtkcompat.h		\
Elliot Lee's avatar
Elliot Lee committed
141
	gtkcontainer.h		\
142
	gtkctree.h		\
Elliot Lee's avatar
Elliot Lee committed
143 144
	gtkcurve.h		\
	gtkdata.h		\
145
	gtkdebug.h              \
Elliot Lee's avatar
Elliot Lee committed
146
	gtkdialog.h		\
147
	gtkdnd.h		\
Elliot Lee's avatar
Elliot Lee committed
148
	gtkdrawingarea.h	\
149
	gtkeditable.h           \
Elliot Lee's avatar
Elliot Lee committed
150 151 152 153 154
	gtkentry.h		\
	gtkenums.h		\
	gtkeventbox.h		\
	gtkfilesel.h		\
	gtkfixed.h		\
155
	gtkfontsel.h		\
Elliot Lee's avatar
Elliot Lee committed
156 157 158
	gtkframe.h		\
	gtkgamma.h		\
	gtkgc.h			\
159
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
160 161 162 163 164 165 166 167 168
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.h		\
	gtkhruler.h		\
	gtkhscale.h		\
	gtkhscrollbar.h		\
	gtkhseparator.h		\
	gtkimage.h		\
	gtkinputdialog.h	\
169
	gtkintl.h		\
170
	gtkinvisible.h		\
Elliot Lee's avatar
Elliot Lee committed
171
	gtkitem.h		\
Tim Janik's avatar
Tim Janik committed
172
	gtkitemfactory.h	\
Elliot Lee's avatar
Elliot Lee committed
173
	gtklabel.h		\
174
	gtklayout.h             \
Elliot Lee's avatar
Elliot Lee committed
175 176 177 178 179 180 181 182 183 184 185 186
	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
187
	gtkpacker.h		\
Elliot Lee's avatar
Elliot Lee committed
188 189
	gtkpaned.h		\
	gtkpixmap.h		\
190
	gtkplug.h		\
Elliot Lee's avatar
Elliot Lee committed
191
	gtkpreview.h		\
192
	gtkprivate.h		\
193
	gtkprogress.h		\
Elliot Lee's avatar
Elliot Lee committed
194 195 196 197 198 199 200 201 202 203 204 205
	gtkprogressbar.h	\
	gtkradiobutton.h	\
	gtkradiomenuitem.h	\
	gtkrange.h		\
	gtkrc.h			\
	gtkruler.h		\
	gtkscale.h		\
	gtkscrollbar.h		\
	gtkscrolledwindow.h	\
	gtkselection.h		\
	gtkseparator.h		\
	gtksignal.h		\
206
	gtksocket.h		\
207
	gtkspinbutton.h		\
Elliot Lee's avatar
Elliot Lee committed
208
	gtkstyle.h		\
Shawn Amundson's avatar
Shawn Amundson committed
209
	gtkstatusbar.h		\
Elliot Lee's avatar
Elliot Lee committed
210
	gtktable.h		\
211
	gtktearoffmenuitem.h    \
Elliot Lee's avatar
Elliot Lee committed
212
	gtktext.h		\
213
	gtkthemes.h		\
214
	gtktipsquery.h		\
Elliot Lee's avatar
Elliot Lee committed
215
	gtktogglebutton.h	\
216
	gtktoolbar.h		\
Elliot Lee's avatar
Elliot Lee committed
217 218 219 220 221 222 223 224 225 226 227 228 229
	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		\
230 231 232 233
	gtkwindow.h

gtkinclude_HEADERS = 		\
	$(source_headers) 	\
234
	gtkfeatures.h		\
235
	gtkmarshal.h		\
Elliot Lee's avatar
Elliot Lee committed
236 237
	gtktypebuiltins.h

238 239
# note gtk.defs, gtktypebuiltins.h, and gtkmarshal.[ch] aren't here, but their
# stamps are
240
BUILT_SOURCES = \
241
	stamp-d				\
242
	stamp-t				\
243 244 245 246
	stamp-m				\
	gtktypebuiltins_evals.c		\
	gtktypebuiltins_ids.c		\
        gtktypebuiltins_vars.c
247

248
# cause the built sources to be rebuild when possible, even with --include-deps
249
$(static_sources): $(BUILT_SOURCES)
250

251 252
# More headers to use when autogenerating.
gdk_headers = \
253 254
	../gdk/gdktypes.h \
	../gdk/gdkrgb.h
255 256

# generate gtk.defs file from gtk-boxed.defs and *.h
257
$(srcdir)/gtk.defs: @REBUILD@ stamp-d
258 259
	@:
stamp-d: @REBUILD@ makeenums.pl gtk-boxed.defs $(source_headers) $(gdk_headers)
260
	cd $(srcdir) \
261
	&& $(PERL) makeenums.pl defs $(source_headers) $(gdk_headers) > s-gd \
262
	&& cat gtk-boxed.defs >> s-gd \
263 264
	&& (cmp -s s-gd gtk.defs || mv s-gd gtk.defs) && rm -f s-gd \
	&& echo timestamp > stamp-d
Elliot Lee's avatar
Elliot Lee committed
265

266
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
267 268 269
$(srcdir)/gtktypebuiltins.h: @REBUILD@ stamp-t
	@:
stamp-t: $(srcdir)/gtk.defs $(srcdir)/maketypes.awk
270
	cd $(srcdir) \
271
	&& $(AWK) -f maketypes.awk gtk.defs macros > s-gtb \
272 273 274
	&& (cmp -s s-gtb gtktypebuiltins.h || mv s-gtb gtktypebuiltins.h) \
	&& rm -f s-gtb \
	&& echo timestamp > stamp-t
275 276

# generate type identifier variables (GTK_TYPE_WIDGET_FLAGS)
277
$(srcdir)/gtktypebuiltins_vars.c: @REBUILD@ $(srcdir)/gtk.defs $(srcdir)/maketypes.awk
278
	cd $(srcdir) \
279
	&& $(AWK) -f maketypes.awk gtk.defs variables > s-gtbv \
280
	&& mv s-gtbv gtktypebuiltins_vars.c
Elliot Lee's avatar
Elliot Lee committed
281

282
# generate type entries for type-id registration
283
$(srcdir)/gtktypebuiltins_ids.c: @REBUILD@ $(srcdir)/gtk.defs $(srcdir)/maketypes.awk
284
	cd $(srcdir) \
285
	&& $(AWK) -f maketypes.awk gtk.defs entries > s-gtbi \
286
	&& mv s-gtbi gtktypebuiltins_ids.c 
287

288
# generate enum value arrays
289
$(srcdir)/gtktypebuiltins_evals.c: @REBUILD@ $(srcdir)/makeenums.pl $(srcdir)/gtk.defs
290
	cd $(srcdir) \
291 292
	&& $(PERL) makeenums.pl arrays $(source_headers) $(gdk_headers) > \
	s-gtbe \
293
	&& mv s-gtbe gtktypebuiltins_evals.c
Tim Janik's avatar
Tim Janik committed
294

295 296 297 298
$(srcdir)/gtkmarshal.c $(srcdir)/gtkmarshal.h: @REBUILD@ stamp-m
	@:
stamp-m: @REBUILD@ $(srcdir)/gtkmarshal.list $(srcdir)/genmarshal.pl
	(srcdir=$(srcdir) INDENT=$(INDENT) $(PERL) $(srcdir)/genmarshal.pl \
299 300 301 302
	&& (cmp -s s-gmc gtkmarshal.c || mv s-gmc gtkmarshal.c) \
	&& rm -f s-gmc \
	&& (cmp -s s-gmh gtkmarshal.h || mv s-gmh gtkmarshal.h) \
	&& rm -f s-gmh) \
303
	&& echo timestamp > stamp-m
304

305
libgtk_la_LDFLAGS = \
306 307 308 309 310
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)	\
	-release $(LT_RELEASE) 					\
	@GLIB_LIBS@ 						\
	@x_ldflags@						\
	@x_libs@ 						\
311 312 313
	-lm
#	$(top_builddir)/gdk/libgdk.la

Elliot Lee's avatar
Elliot Lee committed
314

315 316 317 318 319 320 321 322 323 324
# We create a dummy theme for the default GTK+ theme

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(datadir)/themes/Default/gtk
	echo "# Empty gtkrc for default theme" > \
	    $(DESTDIR)$(datadir)/themes/Default/gtk/gtkrc

uninstall-local:
	rm -f $(DESTDIR)$(datadir)/themes/Default/gtkrc

Elliot Lee's avatar
Elliot Lee committed
325 326 327
EXTRA_DIST = \
	line-arrow.xbm 		\
	line-wrap.xbm 		\
Tim Janik's avatar
Tim Janik committed
328
	testgtk.1 		\
Elliot Lee's avatar
Elliot Lee committed
329
	testgtkrc 		\
330
	testgtkrc2 		\
331
	gtkfeatures.h.in	\
Tim Janik's avatar
Tim Janik committed
332
	makeenums.pl		\
333
	makeenums.awk		\
334
	maketypes.awk		\
335
	makeenums.h		\
336
	gtkargcollector.c	\
337 338 339
	gtktypebuiltins_vars.c	\
	gtktypebuiltins_ids.c	\
	gtktypebuiltins_evals.c	\
340 341
	gtk-boxed.defs		\
	gtk.defs		\
Tim Janik's avatar
Tim Janik committed
342 343
	genmarshal.pl		\
	gtkmarshal.list		\
Elliot Lee's avatar
Elliot Lee committed
344 345 346 347
	test.xpm		\
	marble.xpm		\
	3DRings.xpm		\
	FilesQueue.xpm		\
348 349 350 351
	Modeller.xpm		\
	tree_plus.xpm		\
	tree_minus.xpm		\
	tree_plus.xbm		\
352 353
	tree_minus.xbm          \
        circles.xbm
Elliot Lee's avatar
Elliot Lee committed
354

355
INCLUDES = \
356 357 358 359 360 361 362 363 364 365
	-DG_LOG_DOMAIN=\"Gtk\"				\
	-DGTK_EXE_PREFIX=\"$(exec_prefix)\"		\
	-DGTK_DATA_PREFIX=\"$(prefix)\"			\
	-DGTK_SYSCONFDIR=\"$(sysconfdir)\"		\
	-DGTK_LOCALEDIR=\"$(datadir)/locale\"		\
	-I$(top_srcdir)					\
	@GTK_DEBUG_FLAGS@				\
	@GTK_XIM_FLAGS@					\
	@GTK_LOCALE_FLAGS@				\
	@GLIB_CFLAGS@					\
366
	@x_cflags@
Elliot Lee's avatar
Elliot Lee committed
367

368 369
noinst_PROGRAMS = testgtk testinput testselection testrgb testdnd simple 
# testthreads
370

Tim Janik's avatar
Tim Janik committed
371
DEPS =	\
372 373
	libgtk.la					\
	$(top_builddir)/gdk/libgdk.la
Owen Taylor's avatar
Owen Taylor committed
374

Tim Janik's avatar
Tim Janik committed
375
LDADDS = \
376 377
	libgtk.la					\
	$(top_builddir)/gdk/libgdk.la			\
Tim Janik's avatar
Tim Janik committed
378 379
	@x_ldflags@					\
	@x_libs@					\
Owen Taylor's avatar
Owen Taylor committed
380
	@GLIB_LIBS@                                     \
Elliot Lee's avatar
Elliot Lee committed
381 382 383 384
	-lm

testgtk_DEPENDENCIES = $(DEPS)
testinput_DEPENDENCIES = $(DEPS)
385
#testthreads_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
386
testselection_DEPENDENCIES = $(DEPS)
387
testrgb_DEPENDENCIES = $(DEPS)
388
testdnd_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
389 390
simple_DEPENDENCIES = $(DEPS)

Tim Janik's avatar
Tim Janik committed
391 392
testgtk_LDADD = $(LDADDS)
testinput_LDADD = $(LDADDS)
393
#testthreads_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
394
testselection_LDADD = $(LDADDS)
395
testrgb_LDADD = $(LDADDS)
396
testdnd_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
397 398
simple_LDADD = $(LDADDS)

399
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
400 401 402 403 404

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

test: testgtk
407 408 409
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute $$builddir/testgtk
410 411

test-debug: testgtk
412 413 414
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtk