Makefile.am 8.83 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 240
# note gtk.defs, gtktypebuiltin* and gtkmarshal.[ch] aren't here, but
# their stamps are.  Another trick is to use the temporary output files as
# the stamp files.
241
BUILT_SOURCES = \
242 243
	s-gd s-gtb s-gtbv s-gtbi s-gtbe \
	stamp-m 
244

245
# cause the built sources to be rebuild when possible, even with --include-deps
246
$(static_sources): $(BUILT_SOURCES)
247

248 249
# More headers to use when autogenerating.
gdk_headers = \
250 251
	../gdk/gdktypes.h \
	../gdk/gdkrgb.h
252 253

# generate gtk.defs file from gtk-boxed.defs and *.h
254
gtk.defs: @REBUILD@ s-gd
255
	@:
256
s-gd: @REBUILD@ makeenums.pl gtk-boxed.defs $(source_headers) $(gdk_headers)
257
	cd $(srcdir) \
258
	&& $(PERL) makeenums.pl defs $(source_headers) $(gdk_headers) > s-gd \
259
	&& cat gtk-boxed.defs >> s-gd \
260
	&& (cmp -s s-gd gtk.defs || cp s-gd gtk.defs)
Elliot Lee's avatar
Elliot Lee committed
261

262
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
263
gtktypebuiltins.h: @REBUILD@ s-gtb
264
	@:
265
s-gtb: @REBUILD@ s-gd maketypes.awk
266
	cd $(srcdir) \
267
	&& $(AWK) -f maketypes.awk gtk.defs macros > s-gtb \
268
	&& (cmp -s s-gtb gtktypebuiltins.h || cp s-gtb gtktypebuiltins.h)
269 270

# generate type identifier variables (GTK_TYPE_WIDGET_FLAGS)
271 272 273
gtktypebuiltins_vars.c: @REBUILD@ s-gtbv
	@:
s-gtbv: @REBUILD@ s-gd maketypes.awk
274
	cd $(srcdir) \
275
	&& $(AWK) -f maketypes.awk gtk.defs variables > s-gtbv \
276
	&& (cmp -s s-gtbv gtktypebuiltins_vars.c || cp s-gtbv gtktypebuiltins_vars.c)
Elliot Lee's avatar
Elliot Lee committed
277

278
# generate type entries for type-id registration
279 280 281
gtktypebuiltins_ids.c: @REBUILD@ s-gtbi
	@:
s-gtbi: @REBUILD@ s-gd maketypes.awk
282
	cd $(srcdir) \
283
	&& $(AWK) -f maketypes.awk gtk.defs entries > s-gtbi \
284
	&& (cmp -s s-gtbi gtktypebuiltins_ids.c || cp s-gtbi gtktypebuiltins_ids.c)
285

286
# generate enum value arrays
287 288 289
gtktypebuiltins_evals.c: @REBUILD@ s-gtbe 
	@:
s-gtbe: @REBUILD@ makeenums.pl s-gd
290
	cd $(srcdir) \
291 292
	&& $(PERL) makeenums.pl arrays $(source_headers) $(gdk_headers) > \
	s-gtbe \
293
	&& (cmp -s s-gtbe gtktypebuiltins_evals.c || cp 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
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)	\
	-release $(LT_RELEASE) 					\
308
	@GLIB_DEPLIBS@ 						\
309 310
	@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		\
Tim Janik's avatar
updates  
Tim Janik committed
344 345
	check-y.xpm		\
	check-n.xpm		\
Elliot Lee's avatar
Elliot Lee committed
346 347 348 349
	test.xpm		\
	marble.xpm		\
	3DRings.xpm		\
	FilesQueue.xpm		\
350 351 352 353
	Modeller.xpm		\
	tree_plus.xpm		\
	tree_minus.xpm		\
	tree_plus.xbm		\
354 355
	tree_minus.xbm          \
        circles.xbm
Elliot Lee's avatar
Elliot Lee committed
356

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

371 372
noinst_PROGRAMS = testgtk testinput testselection testrgb testdnd simple 
# testthreads
373

Tim Janik's avatar
Tim Janik committed
374
DEPS =	\
375 376
	libgtk.la					\
	$(top_builddir)/gdk/libgdk.la
Owen Taylor's avatar
Owen Taylor committed
377

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

testgtk_DEPENDENCIES = $(DEPS)
testinput_DEPENDENCIES = $(DEPS)
388
#testthreads_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
389
testselection_DEPENDENCIES = $(DEPS)
390
testrgb_DEPENDENCIES = $(DEPS)
391
testdnd_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
392 393
simple_DEPENDENCIES = $(DEPS)

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

402
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
403 404 405 406 407

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

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

test-debug: testgtk
415 416 417
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtk
418