SHELL = /bin/sh #### Start of system configuration section. #### srcdir = /home/kou/work/ruby/ruby-gnome2/gtk2/ext/gtk2 topdir = /usr/lib/ruby/1.8/x86_64-linux hdrdir = $(topdir) VPATH = $(srcdir):$(topdir):$(hdrdir) exec_prefix = $(prefix) prefix = $(DESTDIR)/usr sharedstatedir = $(prefix)/com mandir = $(prefix)/share/man psdir = $(docdir) oldincludedir = $(DESTDIR)/usr/include localedir = $(datarootdir)/locale bindir = $(exec_prefix)/bin libexecdir = $(prefix)/lib/ruby1.8 sitedir = $(DESTDIR)/usr/local/lib/site_ruby htmldir = $(docdir) vendorarchdir = $(vendorlibdir)/$(sitearch) includedir = $(prefix)/include infodir = $(prefix)/share/info vendorlibdir = $(vendordir)/$(ruby_version) sysconfdir = $(DESTDIR)/etc libdir = $(exec_prefix)/lib sbindir = $(exec_prefix)/sbin rubylibdir = $(libdir)/ruby/$(ruby_version) docdir = $(datarootdir)/doc/$(PACKAGE) dvidir = $(docdir) vendordir = $(libdir)/ruby/vendor_ruby datarootdir = $(prefix)/share pdfdir = $(docdir) archdir = $(rubylibdir)/$(arch) sitearchdir = $(sitelibdir)/$(sitearch) datadir = $(datarootdir) localstatedir = $(DESTDIR)/var sitelibdir = $(sitedir)/$(ruby_version) CC = gcc LIBRUBY = $(LIBRUBY_SO) LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME) LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static RUBY_EXTCONF_H = CFLAGS = -fPIC -fno-strict-aliasing -g -g -O2 -fPIC $(cflags) -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/gtk-unix-print-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -pthread -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/home/kou/work/ruby/rcairo/ext/cairo INCFLAGS = -I. -I/home/kou/work/ruby/ruby-gnome2/pango/ext/pango -I/home/kou/work/ruby/ruby-gnome2/pango/ext/pango -I/home/kou/work/ruby/ruby-gnome2/pango/ext/pango -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/ruby-gnome2/gtk2/ext/gtk2 DEFS = CPPFLAGS = -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DHAVE_ST_H -DRUBY_GTK2_TARGET=\"x11\" -DHAVE_GTK_PLUG_GET_TYPE -DHAVE_GTK_SOCKET_GET_TYPE -DHAVE_PANGO_RENDER_PART_GET_TYPE -DHAVE_GTK_GTKFILESYSTEM_H -DHAVE_X11_XLIB_H -DHAVE_XREADBITMAPFILEDATA -DHAVE_XGETERRORTEXT -DHAVE_GTK_UNIX_PRINT -DHAVE_RB_CAIRO_H -DRUBY_GTK2_COMPILATION CXXFLAGS = $(CFLAGS) ldflags = -L. -rdynamic -Wl,-export-dynamic -pthread -pthread -pthread dldflags = archflag = DLDFLAGS = $(ldflags) $(dldflags) $(archflag) LDSHARED = $(CC) -shared AR = ar EXEEXT = RUBY_INSTALL_NAME = ruby1.8 RUBY_SO_NAME = ruby1.8 arch = x86_64-linux sitearch = x86_64-linux ruby_version = 1.8 ruby = /usr/bin/ruby1.8 RUBY = $(ruby) RM = rm -f MAKEDIRS = mkdir -p INSTALL = /usr/bin/install -c INSTALL_PROG = $(INSTALL) -m 0755 INSTALL_DATA = $(INSTALL) -m 644 COPY = cp #### End of system configuration section. #### preload = libpath = . $(libdir) LIBPATH = -L. -L$(libdir) DEFFILE = CLEANFILES = mkmf.log DISTCLEANFILES = rbgdkkeysyms.h rbgtkinits.c extout = extout_prefix = target_prefix = LOCAL_LIBS = LIBS = $(LIBRUBYARG_SHARED) -lX11 -lgthread-2.0 -lrt -lglib-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lrt -lgmodule-2.0 -lpango-1.0 -lpangocairo-1.0 -lcairo -lgio-2.0 -latk-1.0 -lpangoft2-1.0 -lfreetype -lfontconfig -lgtk-x11-2.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lrt -lgmodule-2.0 -lpango-1.0 -lpangocairo-1.0 -lcairo -lgio-2.0 -latk-1.0 -lpangoft2-1.0 -lfreetype -lfontconfig -lcairo -lpthread -lrt -ldl -lcrypt -lm -lc SRCS = rbgtkrecentmanager.c rbgtkradiotoolbutton.c rbgtkselectiondata.c rbgtkobject.c rbgtkvscrollbar.c rbgtkdrawingarea.c rbgdkconst.c rbgtkcelllayout.c rbgtkfilefilter.c rbgtkspinbutton.c rbgtkcellrenderercombo.c rbgtktreesortable.c rbgtkhbbox.c rbgtkexpander.c rbgtkprinter.c rbgtkactiongroup.c rbgtkitemfactory.c rbgdkrectangle.c rbgtktexttagtable.c rbgtkimagemenuitem.c rbgtkrecentchooser.c rbgtkrecentaction.c rbgdkselection.c rbgtkmenuitem.c rbgtkaboutdialog.c rbgtkcolorselectiondialog.c rbgtkmenu.c rbgtknotebook.c rbgdkgc.c rbgtkcellrenderertoggle.c rbgtkmisc.c rbgtkprogressbar.c rbgtktable.c init.c rbgtkrecentchoosermenu.c rbgtkhseparator.c rbgtkhscale.c rbgdkwindow.c rbgtkprogress.c rbgtkcalendar.c rbgtkcolorsel.c rbgtkscalebutton.c rbgdkwindowattr.c rbgtkscale.c rbgtkconst.c rbgtktextappearance.c rbgtkscrolledwindow.c rbgtktreepath.c rbgtktoolitem.c rbgtkcheckbutton.c rbgtkfilechooser.c rbgdkatom.c rbgtkvbox.c rbgdkcolor.c rbgtktreemodel.c rbgtkcurve.c rbgtktextchild.c rbgtkcombobox.c rbgtkimcontextsimple.c rbgdkscreen.c rbgdk.c rbgtkiconview.c rbgtkseparatormenuitem.c rbgtkrecentfilter.c rbgdkregion.c rbgtkaccellabel.c rbgtktreerowreference.c rbgtkgamma.c rbgtktreemodelfilter.c rbgtkstock.c rbgtkinits.c rbgtkscrollbar.c rbgtkprintsettings.c rbgdkinput.c rbgtktreedragsource.c rbgdkcolormap.c rbgdkx11.c rbgtkcontainer.c rbgtktextiter.c rbgtkbutton.c rbgtkiconinfo.c rbgtktreemodelsort.c rbgtkuimanager.c rbgtkrecentfilterinfo.c rbgtkframe.c rbgtktoolbar.c rbgtkmenubar.c rbgtktextattributes.c rbgdkvisual.c rbgtkimmulticontext.c rbgtktexttag.c rbgtktoggleaction.c rbgtkwindowgroup.c rbgtkvscale.c rbgdkevent.c rbgtklabel.c rbgtkiconfactory.c rbgtkicontheme.c rbgtkrecentchooserwidget.c rbgtkstatusbar.c rbgtktoolbutton.c rbgtkaccelmap.c rbgdkpixbuf.c rbgdkpangorenderer.c rbgtkfilechooserbutton.c rbgtkrc.c rbgtkpagesetupunixdialog.c rbgtkaccelgroup.c rbgtkfixed.c rbgtkaction.c rbgtkfilechooserwidget.c rbgdkimage.c rbgdkkeymap.c rbgdkproperty.c rbgtkfilechooserdialog.c rbgtkoptionmenu.c rbgtktreestore.c rbgtkvpaned.c rbgdkthreads.c rbgtkhpaned.c rbgtkpaned.c rbgtkstatusicon.c rbgtkruler.c rbgtkmenushell.c rbgtkvbbox.c rbgtkradiomenuitem.c rbgtkcellrenderertext.c rbgtkaccelgroupentry.c rbgtkiconsource.c rbgtkhruler.c rbgtkcelleditable.c rbgtkcellview.c rbgtkliststore.c rbgtktearoffmenuitem.c rbgtk.c rbgtkdrag.c rbgtkiconset.c rbgtktreeviewcolumn.c rbgtkcellrendererprogress.c rbgtkiconsize.c rbgtkfontselection.c rbgtktreeview.c rbgtksizegroup.c rbgtkcolorbutton.c rbgtkvruler.c rbgtkdialog.c rbgdkkeyval.c rbgtkcellrendereraccel.c rbgdkdisplaymanager.c rbgtkbuildable.c rbgdkpango.c rbgtkitem.c rbgtkeditable.c rbgtktextbuffer.c rbgdkpixmap.c rbgtkseparatortoolitem.c rbgtktargetlist.c rbgtkrcstyle.c rbgtkbox.c rbgdkdevice.c rbgtksocket.c rbgdkdragcontext.c rbgtkprintjob.c rbgtkinputdialog.c rbgtkhbox.c rbgtkbindingset.c rbgtkcombo.c rbgtklinkbutton.c rbgtkcomboboxentry.c rbgtkplug.c rbgtkrecentdata.c rbgtkfontbutton.c rbgtkmain.c rbgtkrecentchooserdialog.c rbgtksettings.c rbgtkentry.c rbgtkfontselectiondialog.c rbgtkimcontext.c rbgtkvseparator.c rbgtkviewport.c rbgtkpagesetup.c rbgtkhscrollbar.c rbgtkbbox.c rbgtkwidget.c rbgtkselection.c rbgtkradioaction.c rbgtkprintunixdialog.c rbgtkpapersize.c rbgtkaspectframe.c rbgtkcellrenderer.c rbgtkbuilder.c rbgdkrgb.c rbgtkentrycompletion.c rbgdkdraw.c rbgtkaccessible.c rbgtktextmark.c rbgtkseparator.c rbgtkprintoperation.c rbgtktreeiter.c rbgtkradiobutton.c rbgtkaccelerator.c rbgdkcursor.c rbgtklayout.c rbgtkallocation.c rbgtktreeselection.c rbgtkbin.c rbgtktooltips.c rbgtkadjustment.c rbgtkmenutoolbutton.c rbgtktogglebutton.c rbgtkprintcontext.c rbgtkborder.c rbgtktextview.c rbgtktoggletoolbutton.c rbgtkassistant.c rbgtktreedragdest.c rbgtkprintoperationpreview.c rbgdkcairo.c rbgdkgeometry.c rbgtkcheckmenuitem.c rbgtkrecentinfo.c rbgtkclipboard.c rbgtkalignment.c rbgtkmessagedialog.c rbgtkstyle.c rbgtkimage.c rbgtkfilesel.c rbgtkcellrendererpixbuf.c rbgtkrange.c rbgtkcellrendererspin.c rbgtkvolumebutton.c rbgtkwindow.c rbgtkhandlebox.c rbgdktimecoord.c rbgtkinvisible.c rbgtkaccelkey.c rbgtkarrow.c rbgtktooltip.c rbgdkdisplay.c rbgtkeventbox.c OBJS = rbgtkrecentmanager.o rbgtkradiotoolbutton.o rbgtkselectiondata.o rbgtkobject.o rbgtkvscrollbar.o rbgtkdrawingarea.o rbgdkconst.o rbgtkcelllayout.o rbgtkfilefilter.o rbgtkspinbutton.o rbgtkcellrenderercombo.o rbgtktreesortable.o rbgtkhbbox.o rbgtkexpander.o rbgtkprinter.o rbgtkactiongroup.o rbgtkitemfactory.o rbgdkrectangle.o rbgtktexttagtable.o rbgtkimagemenuitem.o rbgtkrecentchooser.o rbgtkrecentaction.o rbgdkselection.o rbgtkmenuitem.o rbgtkaboutdialog.o rbgtkcolorselectiondialog.o rbgtkmenu.o rbgtknotebook.o rbgdkgc.o rbgtkcellrenderertoggle.o rbgtkmisc.o rbgtkprogressbar.o rbgtktable.o init.o rbgtkrecentchoosermenu.o rbgtkhseparator.o rbgtkhscale.o rbgdkwindow.o rbgtkprogress.o rbgtkcalendar.o rbgtkcolorsel.o rbgtkscalebutton.o rbgdkwindowattr.o rbgtkscale.o rbgtkconst.o rbgtktextappearance.o rbgtkscrolledwindow.o rbgtktreepath.o rbgtktoolitem.o rbgtkcheckbutton.o rbgtkfilechooser.o rbgdkatom.o rbgtkvbox.o rbgdkcolor.o rbgtktreemodel.o rbgtkcurve.o rbgtktextchild.o rbgtkcombobox.o rbgtkimcontextsimple.o rbgdkscreen.o rbgdk.o rbgtkiconview.o rbgtkseparatormenuitem.o rbgtkrecentfilter.o rbgdkregion.o rbgtkaccellabel.o rbgtktreerowreference.o rbgtkgamma.o rbgtktreemodelfilter.o rbgtkstock.o rbgtkinits.o rbgtkscrollbar.o rbgtkprintsettings.o rbgdkinput.o rbgtktreedragsource.o rbgdkcolormap.o rbgdkx11.o rbgtkcontainer.o rbgtktextiter.o rbgtkbutton.o rbgtkiconinfo.o rbgtktreemodelsort.o rbgtkuimanager.o rbgtkrecentfilterinfo.o rbgtkframe.o rbgtktoolbar.o rbgtkmenubar.o rbgtktextattributes.o rbgdkvisual.o rbgtkimmulticontext.o rbgtktexttag.o rbgtktoggleaction.o rbgtkwindowgroup.o rbgtkvscale.o rbgdkevent.o rbgtklabel.o rbgtkiconfactory.o rbgtkicontheme.o rbgtkrecentchooserwidget.o rbgtkstatusbar.o rbgtktoolbutton.o rbgtkaccelmap.o rbgdkpixbuf.o rbgdkpangorenderer.o rbgtkfilechooserbutton.o rbgtkrc.o rbgtkpagesetupunixdialog.o rbgtkaccelgroup.o rbgtkfixed.o rbgtkaction.o rbgtkfilechooserwidget.o rbgdkimage.o rbgdkkeymap.o rbgdkproperty.o rbgtkfilechooserdialog.o rbgtkoptionmenu.o rbgtktreestore.o rbgtkvpaned.o rbgdkthreads.o rbgtkhpaned.o rbgtkpaned.o rbgtkstatusicon.o rbgtkruler.o rbgtkmenushell.o rbgtkvbbox.o rbgtkradiomenuitem.o rbgtkcellrenderertext.o rbgtkaccelgroupentry.o rbgtkiconsource.o rbgtkhruler.o rbgtkcelleditable.o rbgtkcellview.o rbgtkliststore.o rbgtktearoffmenuitem.o rbgtk.o rbgtkdrag.o rbgtkiconset.o rbgtktreeviewcolumn.o rbgtkcellrendererprogress.o rbgtkiconsize.o rbgtkfontselection.o rbgtktreeview.o rbgtksizegroup.o rbgtkcolorbutton.o rbgtkvruler.o rbgtkdialog.o rbgdkkeyval.o rbgtkcellrendereraccel.o rbgdkdisplaymanager.o rbgtkbuildable.o rbgdkpango.o rbgtkitem.o rbgtkeditable.o rbgtktextbuffer.o rbgdkpixmap.o rbgtkseparatortoolitem.o rbgtktargetlist.o rbgtkrcstyle.o rbgtkbox.o rbgdkdevice.o rbgtksocket.o rbgdkdragcontext.o rbgtkprintjob.o rbgtkinputdialog.o rbgtkhbox.o rbgtkbindingset.o rbgtkcombo.o rbgtklinkbutton.o rbgtkcomboboxentry.o rbgtkplug.o rbgtkrecentdata.o rbgtkfontbutton.o rbgtkmain.o rbgtkrecentchooserdialog.o rbgtksettings.o rbgtkentry.o rbgtkfontselectiondialog.o rbgtkimcontext.o rbgtkvseparator.o rbgtkviewport.o rbgtkpagesetup.o rbgtkhscrollbar.o rbgtkbbox.o rbgtkwidget.o rbgtkselection.o rbgtkradioaction.o rbgtkprintunixdialog.o rbgtkpapersize.o rbgtkaspectframe.o rbgtkcellrenderer.o rbgtkbuilder.o rbgdkrgb.o rbgtkentrycompletion.o rbgdkdraw.o rbgtkaccessible.o rbgtktextmark.o rbgtkseparator.o rbgtkprintoperation.o rbgtktreeiter.o rbgtkradiobutton.o rbgtkaccelerator.o rbgdkcursor.o rbgtklayout.o rbgtkallocation.o rbgtktreeselection.o rbgtkbin.o rbgtktooltips.o rbgtkadjustment.o rbgtkmenutoolbutton.o rbgtktogglebutton.o rbgtkprintcontext.o rbgtkborder.o rbgtktextview.o rbgtktoggletoolbutton.o rbgtkassistant.o rbgtktreedragdest.o rbgtkprintoperationpreview.o rbgdkcairo.o rbgdkgeometry.o rbgtkcheckmenuitem.o rbgtkrecentinfo.o rbgtkclipboard.o rbgtkalignment.o rbgtkmessagedialog.o rbgtkstyle.o rbgtkimage.o rbgtkfilesel.o rbgtkcellrendererpixbuf.o rbgtkrange.o rbgtkcellrendererspin.o rbgtkvolumebutton.o rbgtkwindow.o rbgtkhandlebox.o rbgdktimecoord.o rbgtkinvisible.o rbgtkaccelkey.o rbgtkarrow.o rbgtktooltip.o rbgdkdisplay.o rbgtkeventbox.o TARGET = gtk2 DLLIB = $(TARGET).so EXTSTATIC = STATIC_LIB = BINDIR = $(bindir) RUBYCOMMONDIR = $(sitedir)$(target_prefix) RUBYLIBDIR = $(sitelibdir)$(target_prefix) RUBYARCHDIR = $(sitearchdir)$(target_prefix) TARGET_SO = $(DLLIB) CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak all: $(DLLIB) static: $(STATIC_LIB) clean: @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) distclean: clean @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES) realclean: distclean install: install-so install-rb install-so: $(RUBYARCHDIR) install-so: $(RUBYARCHDIR)/$(DLLIB) $(RUBYARCHDIR)/$(DLLIB): $(DLLIB) $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR) install-rb: pre-install-rb install-rb-default install-rb-default: pre-install-rb-default pre-install-rb: Makefile pre-install-rb-default: Makefile $(RUBYARCHDIR): $(MAKEDIRS) $@ site-install: site-install-so site-install-rb site-install-so: install-so site-install-rb: install-rb .SUFFIXES: .c .m .cc .cxx .cpp .C .o .cc.o: $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< .cxx.o: $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< .cpp.o: $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< .C.o: $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< .c.o: $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $< $(DLLIB): $(OBJS) Makefile @-$(RM) $@ $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS) ### install-so: $(INSTALL_DATA) $(srcdir)/rbgdk.h $(RUBYARCHDIR) $(INSTALL_DATA) $(srcdir)/rbgdkconversions.h $(RUBYARCHDIR) $(INSTALL_DATA) $(srcdir)/rbgtk.h $(RUBYARCHDIR) $(INSTALL_DATA) $(srcdir)/rbgtkconversions.h $(RUBYARCHDIR) $(INSTALL_DATA) $(srcdir)/rbgtkmacros.h $(RUBYARCHDIR) install: if test -n "$(pkgconfigdir)"; then \ $(MAKEDIRS) $(pkgconfigdir); \ $(INSTALL_DATA) ruby-gtk2.pc $(pkgconfigdir); \ fi