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

Tim Janik's avatar
Tim Janik committed
5
lib_LTLIBRARIES = libgtk-1.1.la
Elliot Lee's avatar
Elliot Lee committed
6

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

gtkinclude_HEADERS = \
	gtk.h			\
Tim Janik's avatar
Tim Janik committed
111 112
	gtkaccelgroup.h		\
	gtkaccellabel.h		\
Elliot Lee's avatar
Elliot Lee committed
113 114
	gtkadjustment.h		\
	gtkalignment.h		\
115
	gtkarg.h		\
Elliot Lee's avatar
Elliot Lee committed
116
	gtkarrow.h		\
117
	gtkaspectframe.h	\
Elliot Lee's avatar
Elliot Lee committed
118
	gtkbin.h		\
Tim Janik's avatar
Tim Janik committed
119
	gtkbindings.h		\
Elliot Lee's avatar
Elliot Lee committed
120 121 122 123 124
	gtkbbox.h		\
	gtkbox.h		\
	gtkbutton.h		\
	gtkcheckbutton.h	\
	gtkcheckmenuitem.h	\
125
	gtkclist.h		\
Elliot Lee's avatar
Elliot Lee committed
126
	gtkcolorsel.h		\
127
	gtkcombo.h		\
Elliot Lee's avatar
Elliot Lee committed
128
	gtkcontainer.h		\
129
	gtkctree.h		\
Elliot Lee's avatar
Elliot Lee committed
130 131
	gtkcurve.h		\
	gtkdata.h		\
132
	gtkdebug.h              \
Elliot Lee's avatar
Elliot Lee committed
133 134
	gtkdialog.h		\
	gtkdrawingarea.h	\
135
	gtkeditable.h           \
Elliot Lee's avatar
Elliot Lee committed
136 137 138
	gtkentry.h		\
	gtkenums.h		\
	gtkeventbox.h		\
139
	gtkfeatures.h		\
Elliot Lee's avatar
Elliot Lee committed
140 141
	gtkfilesel.h		\
	gtkfixed.h		\
142
	gtkfontsel.h		\
Elliot Lee's avatar
Elliot Lee committed
143 144 145
	gtkframe.h		\
	gtkgamma.h		\
	gtkgc.h			\
146
	gtkhandlebox.h		\
Elliot Lee's avatar
Elliot Lee committed
147 148 149 150 151 152 153 154 155 156
	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
157
	gtkitemfactory.h	\
Elliot Lee's avatar
Elliot Lee committed
158 159 160 161
	gtklabel.h		\
	gtklist.h		\
	gtklistitem.h		\
	gtkmain.h		\
162
	gtkmarshal.h		\
Elliot Lee's avatar
Elliot Lee committed
163 164 165 166 167 168 169 170 171
	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 212 213 214
	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		\
	gtkwindow.h             \
	gtktypebuiltins.h

215
.PHONY: auto-files auto-files-1
216
auto-files:
217
	rm -f $(srcdir)/gtk.defs
218
	$(MAKE) auto-files-1
219

220 221 222 223 224 225
auto-files-1: gtk.defs
auto-files-1: gtktypebuiltins_evals.c gtktypebuiltins_ids.c
auto-files-1: gtktypebuiltins_vars.c gtktypebuiltins.h

# generate gtk.defs file from gtk-boxed.defs and *.h
gtk.defs: @MAINT@ makeenums.pl gtk-boxed.defs
226 227
	srcdir=$(srcdir) \
	  perl $(srcdir)/makeenums.pl defs $(srcdir)/gtk*.h \
228 229 230 231
               $(top_srcdir)/gdk/gdk*.h > gd.tmp
	cat $(srcdir)/gtk-boxed.defs >> gd.tmp
	cp gd.tmp $(srcdir)/gtk.defs
	rm -f gd.tmp
Elliot Lee's avatar
Elliot Lee committed
232

233
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
234 235 236 237
gtktypebuiltins.h: @MAINT@ gtk.defs maketypes.awk
	awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs macros > gtb.tmp
	cp gtb.tmp $(srcdir)/gtktypebuiltins.h
	rm -f gtb.tmp
238 239

# generate type identifier variables (GTK_TYPE_WIDGET_FLAGS)
240 241 242 243
gtktypebuiltins_vars.c: @MAINT@ gtk.defs maketypes.awk
	awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs variables > gtbv.tmp
	cp gtbv.tmp $(srcdir)/gtktypebuiltins_vars.c
	rm -f gtbv.tmp
Elliot Lee's avatar
Elliot Lee committed
244

245
# generate type entries for type-id registration
246 247 248 249
gtktypebuiltins_ids.c: @MAINT@ gtk.defs maketypes.awk
	awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs entries > gtbi.tmp
	cp gtbi.tmp $(srcdir)/gtktypebuiltins_ids.c
	rm -f gtbi.tmp
250

251
# generate enum value arrays
252
gtktypebuiltins_evals.c: @MAINT@ makeenums.pl gtk.defs
253 254
	srcdir=$(srcdir) \
	  perl $(srcdir)/makeenums.pl arrays $(srcdir)/gtk*.h \
255 256 257
               $(top_srcdir)/gdk/gdk*.h > gtbe.tmp
	cp gtbe.tmp $(srcdir)/gtktypebuiltins_evals.c
	rm -f gtbe.tmp
Tim Janik's avatar
Tim Janik committed
258

259
gtkmarshal.c gtkmarshal.h: @MAINT@ gtkmarshal.list genmarshal.pl
260 261
	srcdir=$(srcdir) perl $(srcdir)/genmarshal.pl

262
# ???
Tim Janik's avatar
Tim Janik committed
263
# special remake rules
264
makeenums.h: @MAINT@ gtk.h gtkprivate.h
Tim Janik's avatar
Tim Janik committed
265

Tim Janik's avatar
Tim Janik committed
266
libgtk_1_1_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
Elliot Lee's avatar
Elliot Lee committed
267 268 269 270

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

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

Owen Taylor's avatar
Owen Taylor committed
300
noinst_PROGRAMS = testgtk testinput testselection testthreads simple 
301

Tim Janik's avatar
Tim Janik committed
302
# FIXME, we currently rely on linking against libglib-1.1
Elliot Lee's avatar
Elliot Lee committed
303

Tim Janik's avatar
Tim Janik committed
304 305
DEPS =	\
	libgtk-@LT_RELEASE@.la				\
Owen Taylor's avatar
Owen Taylor committed
306 307
	$(top_builddir)/gdk/libgdk-@LT_RELEASE@.la

Tim Janik's avatar
Tim Janik committed
308 309 310 311 312
LDADDS = \
	libgtk-@LT_RELEASE@.la				\
	$(top_builddir)/gdk/libgdk-@LT_RELEASE@.la	\
	@x_ldflags@					\
	@x_libs@					\
Owen Taylor's avatar
Owen Taylor committed
313
	@GLIB_LIBS@                                     \
Elliot Lee's avatar
Elliot Lee committed
314 315 316 317
	-lm

testgtk_DEPENDENCIES = $(DEPS)
testinput_DEPENDENCIES = $(DEPS)
Owen Taylor's avatar
Owen Taylor committed
318
testthreads_DEPENDENCIES = $(DEPS)
Elliot Lee's avatar
Elliot Lee committed
319 320 321
testselection_DEPENDENCIES = $(DEPS)
simple_DEPENDENCIES = $(DEPS)

Tim Janik's avatar
Tim Janik committed
322 323
testgtk_LDADD = $(LDADDS)
testinput_LDADD = $(LDADDS)
Owen Taylor's avatar
Owen Taylor committed
324
testthreads_LDADD = $(LDADDS)
Tim Janik's avatar
Tim Janik committed
325 326 327
testselection_LDADD = $(LDADDS)
simple_LDADD = $(LDADDS)

328
.PHONY: files test test-debug
Elliot Lee's avatar
Elliot Lee committed
329 330 331 332 333

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

test: testgtk
336 337 338
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute $$builddir/testgtk
339 340

test-debug: testgtk
341 342 343
	builddir=`pwd`; cd $(top_builddir); top_builddir=`pwd`; \
	cd $$builddir; cd $(srcdir); \
	$(SHELL) $$top_builddir/libtool --mode=execute gdb $$builddir/testgtk