Makefile.am 8.96 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
	gtkintl.h		\
53
	gtkinvisible.c		\
Elliot Lee's avatar
Elliot Lee committed
54
	gtkitem.c		\
Tim Janik's avatar
Tim Janik committed
55
	gtkitemfactory.c	\
Elliot Lee's avatar
Elliot Lee committed
56
	gtklabel.c		\
57
	gtklayout.c		\
Elliot Lee's avatar
Elliot Lee committed
58 59 60 61 62 63 64 65 66 67 68 69
	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
70
	gtkpacker.c		\
Elliot Lee's avatar
Elliot Lee committed
71 72
	gtkpaned.c		\
	gtkpixmap.c		\
73
	gtkplug.c               \
Elliot Lee's avatar
Elliot Lee committed
74
	gtkpreview.c		\
75
	gtkprogress.c		\
Elliot Lee's avatar
Elliot Lee committed
76 77 78 79 80 81 82 83 84 85 86 87
	gtkprogressbar.c	\
	gtkradiobutton.c	\
	gtkradiomenuitem.c	\
	gtkrange.c		\
	gtkrc.c			\
	gtkruler.c		\
	gtkscale.c		\
	gtkscrollbar.c		\
	gtkscrolledwindow.c	\
	gtkselection.c		\
	gtkseparator.c		\
	gtksignal.c		\
88
	gtksocket.c             \
89
	gtkspinbutton.c		\
Elliot Lee's avatar
Elliot Lee committed
90
	gtkstyle.c		\
Shawn Amundson's avatar
Shawn Amundson committed
91
	gtkstatusbar.c		\
Elliot Lee's avatar
Elliot Lee committed
92
	gtktable.c		\
93
	gtktearoffmenuitem.c    \
Elliot Lee's avatar
Elliot Lee committed
94
	gtktext.c		\
95
	gtkthemes.c		\
96
	gtktipsquery.c		\
Elliot Lee's avatar
Elliot Lee committed
97
	gtktogglebutton.c	\
98
	gtktoolbar.c		\
Elliot Lee's avatar
Elliot Lee committed
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
	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

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

120
# Source headers which are non-autogenerated headers
121
source_headers = \
Elliot Lee's avatar
Elliot Lee committed
122
	gtk.h			\
Tim Janik's avatar
Tim Janik committed
123 124
	gtkaccelgroup.h		\
	gtkaccellabel.h		\
Elliot Lee's avatar
Elliot Lee committed
125 126
	gtkadjustment.h		\
	gtkalignment.h		\
127
	gtkarg.h		\
Elliot Lee's avatar
Elliot Lee committed
128
	gtkarrow.h		\
129
	gtkaspectframe.h	\
Elliot Lee's avatar
Elliot Lee committed
130
	gtkbin.h		\
Tim Janik's avatar
Tim Janik committed
131
	gtkbindings.h		\
Elliot Lee's avatar
Elliot Lee committed
132 133 134
	gtkbbox.h		\
	gtkbox.h		\
	gtkbutton.h		\
135
	gtkcalendar.h		\
Elliot Lee's avatar
Elliot Lee committed
136 137
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
138
	gtkclist.h		\
Elliot Lee's avatar
Elliot Lee committed
139
	gtkcolorsel.h		\
140
	gtkcombo.h		\
141
	gtkcompat.h		\
Elliot Lee's avatar
Elliot Lee committed
142
	gtkcontainer.h		\
143
	gtkctree.h		\
Elliot Lee's avatar
Elliot Lee committed
144 145
	gtkcurve.h		\
	gtkdata.h		\
146
	gtkdebug.h              \
Elliot Lee's avatar
Elliot Lee committed
147
	gtkdialog.h		\
148
	gtkdnd.h		\
Elliot Lee's avatar
Elliot Lee committed
149
	gtkdrawingarea.h	\
150
	gtkeditable.h           \
Elliot Lee's avatar
Elliot Lee committed
151 152 153 154 155
	gtkentry.h		\
	gtkenums.h		\
	gtkeventbox.h		\
	gtkfilesel.h		\
	gtkfixed.h		\
156
	gtkfontsel.h		\
Elliot Lee's avatar
Elliot Lee committed
157 158 159
	gtkframe.h		\
	gtkgamma.h		\
	gtkgc.h			\
160
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
161 162 163 164 165 166 167 168 169
	gtkhbbox.h		\
	gtkhbox.h		\
	gtkhpaned.h		\
	gtkhruler.h		\
	gtkhscale.h		\
	gtkhscrollbar.h		\
	gtkhseparator.h		\
	gtkimage.h		\
	gtkinputdialog.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

314
gtkconfdir = $(sysconfdir)/gtk
315
gtkconf_DATA = gtkrc gtkrc.ja gtkrc.ko gtkrc.ru
Elliot Lee's avatar
Elliot Lee committed
316

317 318 319
gtkrc:
	:
	
320 321 322 323 324 325 326 327 328 329
# 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
330 331 332
EXTRA_DIST = \
	line-arrow.xbm 		\
	line-wrap.xbm 		\
Tim Janik's avatar
Tim Janik committed
333
	testgtk.1 		\
Elliot Lee's avatar
Elliot Lee committed
334
	testgtkrc 		\
335
	testgtkrc2 		\
336
	gtkfeatures.h.in	\
Tim Janik's avatar
Tim Janik committed
337
	makeenums.pl		\
338
	makeenums.awk		\
339
	maketypes.awk		\
340
	makeenums.h		\
341
	gtkargcollector.c	\
342 343 344
	gtktypebuiltins_vars.c	\
	gtktypebuiltins_ids.c	\
	gtktypebuiltins_evals.c	\
345 346
	gtk-boxed.defs		\
	gtk.defs		\
Tim Janik's avatar
Tim Janik committed
347 348
	genmarshal.pl		\
	gtkmarshal.list		\
Tim Janik's avatar
updates  
Tim Janik committed
349 350
	check-y.xpm		\
	check-n.xpm		\
Elliot Lee's avatar
Elliot Lee committed
351 352 353 354
	test.xpm		\
	marble.xpm		\
	3DRings.xpm		\
	FilesQueue.xpm		\
355 356 357 358
	Modeller.xpm		\
	tree_plus.xpm		\
	tree_minus.xpm		\
	tree_plus.xbm		\
359
	tree_minus.xbm          \
360 361 362 363
        circles.xbm		\
	gtkrc.ja 		\
	gtkrc.ko		\
	gtkrc.ru
Elliot Lee's avatar
Elliot Lee committed
364

365
INCLUDES = \
366
	-DGTK_DISABLE_COMPAT_H				\
367 368 369 370
	-DG_LOG_DOMAIN=\"Gtk\"				\
	-DGTK_EXE_PREFIX=\"$(exec_prefix)\"		\
	-DGTK_DATA_PREFIX=\"$(prefix)\"			\
	-DGTK_SYSCONFDIR=\"$(sysconfdir)\"		\
371
	-DGTK_LOCALEDIR=\"$(gtklocaledir)\"		\
372 373 374 375 376
	-I$(top_srcdir)					\
	@GTK_DEBUG_FLAGS@				\
	@GTK_XIM_FLAGS@					\
	@GTK_LOCALE_FLAGS@				\
	@GLIB_CFLAGS@					\
377
	@x_cflags@
Elliot Lee's avatar
Elliot Lee committed
378

379 380
noinst_PROGRAMS = testgtk testinput testselection testrgb testdnd simple 
# testthreads
381

Tim Janik's avatar
Tim Janik committed
382
DEPS =	\
383 384
	libgtk.la					\
	$(top_builddir)/gdk/libgdk.la
Owen Taylor's avatar
Owen Taylor committed
385

Tim Janik's avatar
Tim Janik committed
386
LDADDS = \
387 388
	libgtk.la					\
	$(top_builddir)/gdk/libgdk.la			\
Tim Janik's avatar
Tim Janik committed
389 390
	@x_ldflags@					\
	@x_libs@					\
Owen Taylor's avatar
Owen Taylor committed
391
	@GLIB_LIBS@                                     \
Elliot Lee's avatar
Elliot Lee committed
392 393 394 395
	-lm

testgtk_DEPENDENCIES = $(DEPS)
testinput_DEPENDENCIES = $(DEPS)
396
#testthreads_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
397
testselection_DEPENDENCIES = $(DEPS)
398
testrgb_DEPENDENCIES = $(DEPS)
399
testdnd_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
400 401
simple_DEPENDENCIES = $(DEPS)

Tim Janik's avatar
Tim Janik committed
402 403
testgtk_LDADD = $(LDADDS)
testinput_LDADD = $(LDADDS)
404
#testthreads_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
405
testselection_LDADD = $(LDADDS)
406
testrgb_LDADD = $(LDADDS)
407
testdnd_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
408 409
simple_LDADD = $(LDADDS)

410
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
411 412 413 414 415

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

test: testgtk
418 419 420
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute $$builddir/testgtk
421 422

test-debug: testgtk
423 424 425
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtk
426