Makefile.am 7.36 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
	gtkbbox.c		\
	gtkbox.c		\
	gtkbutton.c		\
21
	gtkcalendar.c		\
Elliot Lee's avatar
Elliot Lee committed
22 23
	gtkcheckbutton.c	\
	gtkcheckmenuitem.c	\
24
	gtkclist.c		\
Elliot Lee's avatar
Elliot Lee committed
25
	gtkcolorsel.c		\
26
	gtkcombo.c		\
Elliot Lee's avatar
Elliot Lee committed
27
	gtkcontainer.c		\
28
	gtkctree.c		\
Elliot Lee's avatar
Elliot Lee committed
29 30 31
	gtkcurve.c		\
	gtkdata.c		\
	gtkdialog.c		\
32
	gtkdnd.c		\
Elliot Lee's avatar
Elliot Lee committed
33
	gtkdrawingarea.c	\
34
	gtkeditable.c           \
Elliot Lee's avatar
Elliot Lee committed
35 36 37 38
	gtkentry.c		\
	gtkeventbox.c		\
	gtkfilesel.c		\
	gtkfixed.c		\
39
	gtkfontsel.c            \
Elliot Lee's avatar
Elliot Lee committed
40 41 42
	gtkframe.c		\
	gtkgamma.c		\
	gtkgc.c			\
scott's avatar
scott committed
43
	gtkhandlebox.c		\
Elliot Lee's avatar
Elliot Lee committed
44 45 46 47 48 49 50 51 52
	gtkhbbox.c		\
	gtkhbox.c		\
	gtkhpaned.c		\
	gtkhruler.c		\
	gtkhscale.c		\
	gtkhscrollbar.c		\
	gtkhseparator.c		\
	gtkimage.c		\
	gtkinputdialog.c	\
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 57 58 59
	gtklabel.c		\
	gtklist.c		\
	gtklistitem.c		\
	gtkmain.c		\
60
	gtkmarshal.c		\
Elliot Lee's avatar
Elliot Lee committed
61 62 63 64 65 66 67 68 69
	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 73
	gtkpaned.c		\
	gtkpixmap.c		\
	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
	gtkspinbutton.c		\
Elliot Lee's avatar
Elliot Lee committed
88
	gtkstyle.c		\
Shawn Amundson's avatar
Shawn Amundson committed
89
	gtkstatusbar.c		\
Elliot Lee's avatar
Elliot Lee committed
90
	gtktable.c		\
91
	gtktearoffmenuitem.c    \
Elliot Lee's avatar
Elliot Lee committed
92
	gtktext.c		\
93
	gtktipsquery.c		\
Elliot Lee's avatar
Elliot Lee committed
94
	gtktogglebutton.c	\
95
	gtktoolbar.c		\
Elliot Lee's avatar
Elliot Lee committed
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
	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

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

gtkinclude_HEADERS = 		\
	$(source_headers) 	\
222
	gtkfeatures.h		\
223
	gtkmarshal.h		\
Elliot Lee's avatar
Elliot Lee committed
224 225
	gtktypebuiltins.h

226 227 228 229 230 231 232
BUILT_SOURCES = \
	gtktypebuiltins.h 		\
	gtktypebuiltins_evals.c 	\
	gtktypebuiltins_ids.c 		\
        gtktypebuiltins_vars.c 		\
	gtkmarshal.c 			\
        gtkmarshal.h 
233

234 235 236
# cause the built sources to be rebuild when possible, even with --include-deps
$(libgtk_la_SOURCES): $(BUILT_SOURCES)

237 238
# More headers to use when autogenerating.
gdk_headers = \
239 240
	../gdk/gdktypes.h \
	../gdk/gdkrgb.h
241 242

# generate gtk.defs file from gtk-boxed.defs and *.h
243
gtk.defs: @REBUILD@ makeenums.pl gtk-boxed.defs $(source_headers) $(gdk_headers)
244
	cd $(srcdir) \
245
	&& $(PERL) makeenums.pl defs $(source_headers) $(gdk_headers) > s-gd \
246 247
	&& cat gtk-boxed.defs >> s-gd \
	&& mv s-gd gtk.defs
Elliot Lee's avatar
Elliot Lee committed
248

249
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
250
gtktypebuiltins.h: @REBUILD@ gtk.defs maketypes.awk
251
	cd $(srcdir) \
252
	&& $(AWK) -f maketypes.awk gtk.defs macros > s-gtb \
253
	&& mv s-gtb gtktypebuiltins.h
254 255

# generate type identifier variables (GTK_TYPE_WIDGET_FLAGS)
256
gtktypebuiltins_vars.c: @REBUILD@ gtk.defs maketypes.awk
257
	cd $(srcdir) \
258
	&& $(AWK) -f maketypes.awk gtk.defs variables > s-gtbv \
259
	&& mv s-gtbv gtktypebuiltins_vars.c
Elliot Lee's avatar
Elliot Lee committed
260

261
# generate type entries for type-id registration
262
gtktypebuiltins_ids.c: @REBUILD@ gtk.defs maketypes.awk
263
	cd $(srcdir) \
264
	&& $(AWK) -f maketypes.awk gtk.defs entries > s-gtbi \
265
	&& mv s-gtbi gtktypebuiltins_ids.c 
266

267
# generate enum value arrays
268
gtktypebuiltins_evals.c: @REBUILD@ makeenums.pl gtk.defs
269
	cd $(srcdir) \
270 271
	&& $(PERL) makeenums.pl arrays $(source_headers) $(gdk_headers) > \
	s-gtbe \
272
	&& mv s-gtbe gtktypebuiltins_evals.c
Tim Janik's avatar
Tim Janik committed
273

274
gtkmarshal.c gtkmarshal.h: @REBUILD@ gtkmarshal.list genmarshal.pl
275
	srcdir=$(srcdir) INDENT=$(INDENT) $(PERL) $(srcdir)/genmarshal.pl
276

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

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

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

312 313 314
noinst_PROGRAMS = testgtk testinput testselection testthreads testrgb testdnd simple 

# FIXME, we currently rely on linking against libglib-1.1
315

Tim Janik's avatar
Tim Janik committed
316
DEPS =	\
317 318
	libgtk.la					\
	$(top_builddir)/gdk/libgdk.la
Owen Taylor's avatar
Owen Taylor committed
319

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

testgtk_DEPENDENCIES = $(DEPS)
testinput_DEPENDENCIES = $(DEPS)
Owen Taylor's avatar
Owen Taylor committed
330
testthreads_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
331
testselection_DEPENDENCIES = $(DEPS)
332
testrgb_DEPENDENCIES = $(DEPS)
333
testdnd_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
334 335
simple_DEPENDENCIES = $(DEPS)

Tim Janik's avatar
Tim Janik committed
336 337
testgtk_LDADD = $(LDADDS)
testinput_LDADD = $(LDADDS)
Owen Taylor's avatar
Owen Taylor committed
338
testthreads_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
339
testselection_LDADD = $(LDADDS)
340
testrgb_LDADD = $(LDADDS)
341
testdnd_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
342 343
simple_LDADD = $(LDADDS)

344
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
345 346 347 348 349

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

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

test-debug: testgtk
357 358 359
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtk