Makefile.am 7.08 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 21 22
	gtkbbox.c		\
	gtkbox.c		\
	gtkbutton.c		\
	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 31
	gtkcurve.c		\
	gtkdata.c		\
	gtkdialog.c		\
	gtkdrawingarea.c	\
32
	gtkeditable.c           \
Elliot Lee's avatar
Elliot Lee committed
33 34 35 36
	gtkentry.c		\
	gtkeventbox.c		\
	gtkfilesel.c		\
	gtkfixed.c		\
37
	gtkfontsel.c            \
Elliot Lee's avatar
Elliot Lee committed
38 39 40
	gtkframe.c		\
	gtkgamma.c		\
	gtkgc.c			\
scott's avatar
scott committed
41
	gtkhandlebox.c		\
Elliot Lee's avatar
Elliot Lee committed
42 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	\
	gtkitem.c		\
Tim Janik's avatar
Tim Janik committed
52
	gtkitemfactory.c	\
Elliot Lee's avatar
Elliot Lee committed
53 54 55 56
	gtklabel.c		\
	gtklist.c		\
	gtklistitem.c		\
	gtkmain.c		\
57
	gtkmarshal.c		\
Elliot Lee's avatar
Elliot Lee committed
58 59 60 61 62 63 64 65 66
	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
67
	gtkpacker.c		\
Elliot Lee's avatar
Elliot Lee committed
68 69 70
	gtkpaned.c		\
	gtkpixmap.c		\
	gtkpreview.c		\
71
	gtkprogress.c		\
Elliot Lee's avatar
Elliot Lee committed
72 73 74 75 76 77 78 79 80 81 82 83
	gtkprogressbar.c	\
	gtkradiobutton.c	\
	gtkradiomenuitem.c	\
	gtkrange.c		\
	gtkrc.c			\
	gtkruler.c		\
	gtkscale.c		\
	gtkscrollbar.c		\
	gtkscrolledwindow.c	\
	gtkselection.c		\
	gtkseparator.c		\
	gtksignal.c		\
84
	gtkspinbutton.c		\
Elliot Lee's avatar
Elliot Lee committed
85
	gtkstyle.c		\
Shawn Amundson's avatar
Shawn Amundson committed
86
	gtkstatusbar.c		\
Elliot Lee's avatar
Elliot Lee committed
87
	gtktable.c		\
88
	gtktearoffmenuitem.c    \
Elliot Lee's avatar
Elliot Lee committed
89
	gtktext.c		\
90
	gtktipsquery.c		\
Elliot Lee's avatar
Elliot Lee committed
91
	gtktogglebutton.c	\
92
	gtktoolbar.c		\
Elliot Lee's avatar
Elliot Lee committed
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
	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

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

gtkinclude_HEADERS = 		\
	$(source_headers) 	\
216
	gtkfeatures.h		\
217
	gtkmarshal.h		\
Elliot Lee's avatar
Elliot Lee committed
218 219
	gtktypebuiltins.h

220 221 222 223 224 225 226
BUILT_SOURCES = \
	gtktypebuiltins.h 		\
	gtktypebuiltins_evals.c 	\
	gtktypebuiltins_ids.c 		\
        gtktypebuiltins_vars.c 		\
	gtkmarshal.c 			\
        gtkmarshal.h 
227

228 229
# More headers to use when autogenerating.
gdk_headers = \
230 231
	../gdk/gdktypes.h \
	../gdk/gdkrgb.h
232 233

# generate gtk.defs file from gtk-boxed.defs and *.h
234
gtk.defs: @REBUILD@ makeenums.pl gtk-boxed.defs $(source_headers) $(gdk_headers)
235 236 237 238
	cd $(srcdir) \
	&& perl makeenums.pl defs $(source_headers) $(gdk_headers) > s-gd \
	&& cat gtk-boxed.defs >> s-gd \
	&& mv s-gd gtk.defs
Elliot Lee's avatar
Elliot Lee committed
239

240
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
241
gtktypebuiltins.h: @REBUILD@ gtk.defs maketypes.awk
242
	cd $(srcdir) \
243
	&& $(AWK) -f maketypes.awk gtk.defs macros > s-gtb \
244
	&& mv s-gtb gtktypebuiltins.h
245 246

# generate type identifier variables (GTK_TYPE_WIDGET_FLAGS)
247
gtktypebuiltins_vars.c: @REBUILD@ gtk.defs maketypes.awk
248
	cd $(srcdir) \
249
	&& $(AWK) -f maketypes.awk gtk.defs variables > s-gtbv \
250
	&& mv s-gtbv gtktypebuiltins_vars.c
Elliot Lee's avatar
Elliot Lee committed
251

252
# generate type entries for type-id registration
253
gtktypebuiltins_ids.c: @REBUILD@ gtk.defs maketypes.awk
254
	cd $(srcdir) \
255
	&& $(AWK) -f maketypes.awk gtk.defs entries > s-gtbi \
256
	&& mv s-gtbi gtktypebuiltins_ids.c 
257

258
# generate enum value arrays
259
gtktypebuiltins_evals.c: @REBUILD@ makeenums.pl gtk.defs
260 261 262
	cd $(srcdir) \
	&& perl makeenums.pl arrays $(source_headers) $(gdk_headers) > s-gtbe \
	&& mv s-gtbe gtktypebuiltins_evals.c
Tim Janik's avatar
Tim Janik committed
263

264
gtkmarshal.c gtkmarshal.h: @REBUILD@ gtkmarshal.list genmarshal.pl
265
	srcdir=$(srcdir) INDENT=$(INDENT) perl $(srcdir)/genmarshal.pl
266

267
# ???
Tim Janik's avatar
Tim Janik committed
268
# special remake rules
269
# makeenums.h: @REBUILD@ gtk.h gtkprivate.h
Tim Janik's avatar
Tim Janik committed
270

271 272
libgtk_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE)
Elliot Lee's avatar
Elliot Lee committed
273 274 275 276

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

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

306
noinst_PROGRAMS = testgtk testinput testselection testthreads testrgb simple 
307

Tim Janik's avatar
Tim Janik committed
308
DEPS =	\
309 310
	libgtk.la					\
	$(top_builddir)/gdk/libgdk.la
Owen Taylor's avatar
Owen Taylor committed
311

Tim Janik's avatar
Tim Janik committed
312
LDADDS = \
313 314
	libgtk.la					\
	$(top_builddir)/gdk/libgdk.la			\
Tim Janik's avatar
Tim Janik committed
315 316
	@x_ldflags@					\
	@x_libs@					\
Owen Taylor's avatar
Owen Taylor committed
317
	@GLIB_LIBS@                                     \
Elliot Lee's avatar
Elliot Lee committed
318 319 320 321
	-lm

testgtk_DEPENDENCIES = $(DEPS)
testinput_DEPENDENCIES = $(DEPS)
Owen Taylor's avatar
Owen Taylor committed
322
testthreads_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
323
testselection_DEPENDENCIES = $(DEPS)
324
testrgb_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
325 326
simple_DEPENDENCIES = $(DEPS)

Tim Janik's avatar
Tim Janik committed
327 328
testgtk_LDADD = $(LDADDS)
testinput_LDADD = $(LDADDS)
Owen Taylor's avatar
Owen Taylor committed
329
testthreads_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
330
testselection_LDADD = $(LDADDS)
331
testrgb_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
332 333
simple_LDADD = $(LDADDS)

334
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
335 336 337 338 339

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

test: testgtk
342 343 344
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute $$builddir/testgtk
345 346

test-debug: testgtk
347 348 349
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtk