2000-07-25 20:38:35 +00:00
|
|
|
## Makefile for building the GTK DLL with gcc on Win32
|
|
|
|
## Use: make -f makefile.mingw
|
|
|
|
|
|
|
|
## There is no install target, you have to decide where and
|
|
|
|
## how to install for yourself.
|
|
|
|
|
|
|
|
# This is the location of pthreads for Win32,
|
|
|
|
# see http://sourceware.cygnus.com/pthreads-win32/
|
|
|
|
PTHREADS = ../../pthreads-snap-1999-05-30
|
|
|
|
PTHREAD_LIB = -L $(PTHREADS) -lpthread
|
|
|
|
PTHREAD_INC = -I $(PTHREADS)
|
|
|
|
|
|
|
|
OPTIMIZE = -g
|
|
|
|
|
|
|
|
TOP = ../..
|
|
|
|
|
|
|
|
include ../build/win32/make.mingw
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
2000-10-03 21:00:49 +00:00
|
|
|
# Possibly override versions from build/win32/module.defs
|
2000-07-25 20:38:35 +00:00
|
|
|
GTK_VER = @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@
|
2000-10-03 21:00:49 +00:00
|
|
|
GDK_PIXBUF_VER = @GDK_PIXBUF_MAJOR@.@GDK_PIXBUF_MINOR@
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
GDK_LIBS = -L ../gdk -lgdk-win32-$(GTK_VER)
|
|
|
|
GTK_LIBS = -L . -lgtk-win32-$(GTK_VER)
|
2000-10-03 21:00:49 +00:00
|
|
|
GDK_PIXBUF_LIBS = -L ../gdk-pixbuf -lgdk_pixbuf-$(GDK_PIXBUF_VER)
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
# Perl and awk are needed to generate some source files.
|
|
|
|
# These generated source files are distributed with the Win32 GTk+ source
|
|
|
|
# distributions, so don't worry if you don't have perl and awk.
|
|
|
|
PERL = perl
|
|
|
|
AWK = awk
|
|
|
|
|
|
|
|
INCLUDES = -I . -I .. -I ../gdk -I ../gdk-pixbuf
|
2000-07-30 08:11:28 +00:00
|
|
|
DEPCFLAGS = $(PANGO_CFLAGS) $(GLIB_CFLAGS) $(LIBICONV_CFLAGS) $(INTL_CFLAGS)
|
2001-08-23 15:26:49 +00:00
|
|
|
DEFINES = -DGTK_COMPILATION -DG_LOG_DOMAIN=\"Gtk\" -DGTK_VERSION=\"@GTK_VERSION@\"
|
2000-07-25 20:38:35 +00:00
|
|
|
|
2000-12-30 20:06:14 +00:00
|
|
|
GLIB_GENMARSHAL = $(GLIB)/gobject/glib-genmarshal.exe
|
|
|
|
|
2001-01-07 18:00:15 +00:00
|
|
|
all : \
|
|
|
|
../config.h \
|
|
|
|
generated \
|
|
|
|
gtk-win32-$(GTK_VER).dll\
|
|
|
|
testcalendar.exe \
|
|
|
|
testdnd.exe \
|
|
|
|
testgtk.exe \
|
|
|
|
testinput.exe \
|
|
|
|
testrgb.exe \
|
|
|
|
testselection.exe \
|
|
|
|
testtext.exe \
|
|
|
|
testtextbuffer.exe \
|
2000-07-25 20:38:35 +00:00
|
|
|
simple.exe
|
|
|
|
|
2001-01-07 18:00:15 +00:00
|
|
|
gtk_OBJECTS = \
|
|
|
|
fnmatch.o \
|
|
|
|
gtkaccelgroup.o \
|
|
|
|
gtkaccellabel.o \
|
|
|
|
gtkadjustment.o \
|
|
|
|
gtkalignment.o \
|
|
|
|
gtkarg.o \
|
|
|
|
gtkarrow.o \
|
|
|
|
gtkaspectframe.o \
|
|
|
|
gtkbin.o \
|
|
|
|
gtkbindings.o \
|
|
|
|
gtkbbox.o \
|
|
|
|
gtkbox.o \
|
|
|
|
gtkbutton.o \
|
|
|
|
gtkcalendar.o \
|
|
|
|
gtkcellrenderer.o \
|
|
|
|
gtkcellrenderertext.o \
|
|
|
|
gtkcellrenderertextpixbuf.o \
|
|
|
|
gtkcellrenderertoggle.o \
|
|
|
|
gtkcellrendererpixbuf.o \
|
|
|
|
gtkcheckbutton.o \
|
|
|
|
gtkcheckmenuitem.o \
|
|
|
|
gtkclipboard.o \
|
|
|
|
gtkclist.o \
|
|
|
|
gtkcolorsel.o \
|
|
|
|
gtkcolorseldialog.o \
|
|
|
|
gtkcombo.o \
|
|
|
|
gtkcontainer.o \
|
|
|
|
gtkctree.o \
|
|
|
|
gtkcurve.o \
|
|
|
|
gtkdialog.o \
|
|
|
|
gtkdnd.o \
|
|
|
|
gtkdrawingarea.o \
|
|
|
|
gtkeditable.o \
|
|
|
|
gtkentry.o \
|
|
|
|
gtkeventbox.o \
|
|
|
|
gtkfilesel.o \
|
|
|
|
gtkfixed.o \
|
|
|
|
gtkfontsel.o \
|
|
|
|
gtkframe.o \
|
|
|
|
gtkgamma.o \
|
|
|
|
gtkgc.o \
|
|
|
|
gtkhandlebox.o \
|
|
|
|
gtkhbbox.o \
|
|
|
|
gtkhbox.o \
|
|
|
|
gtkhpaned.o \
|
|
|
|
gtkhruler.o \
|
|
|
|
gtkhscale.o \
|
|
|
|
gtkhscrollbar.o \
|
|
|
|
gtkhseparator.o \
|
|
|
|
gtkhsv.o \
|
|
|
|
gtkiconfactory.o \
|
|
|
|
gtkimage.o \
|
2001-03-18 22:16:41 +00:00
|
|
|
gtkimagemenuitem.o \
|
2001-01-07 18:00:15 +00:00
|
|
|
gtkimcontext.o \
|
|
|
|
gtkimcontextsimple.o \
|
|
|
|
gtkimmodule.o \
|
|
|
|
gtkimmulticontext.o \
|
|
|
|
gtkinputdialog.o \
|
|
|
|
gtkinvisible.o \
|
|
|
|
gtkitem.o \
|
|
|
|
gtkitemfactory.o \
|
|
|
|
gtklabel.o \
|
|
|
|
gtklayout.o \
|
|
|
|
gtklist.o \
|
|
|
|
gtklistitem.o \
|
|
|
|
gtkmain.o \
|
|
|
|
gtkmenu.o \
|
|
|
|
gtkmenubar.o \
|
|
|
|
gtkmenufactory.o \
|
|
|
|
gtkmenuitem.o \
|
|
|
|
gtkmenushell.o \
|
|
|
|
gtkmessagedialog.o \
|
|
|
|
gtkmisc.o \
|
|
|
|
gtknotebook.o \
|
|
|
|
gtkobject.o \
|
|
|
|
gtkoldeditable.o \
|
|
|
|
gtkoptionmenu.o \
|
|
|
|
gtkpacker.o \
|
|
|
|
gtkpaned.o \
|
|
|
|
gtkpixmap.o \
|
|
|
|
gtkplug.o \
|
|
|
|
gtkpreview.o \
|
|
|
|
gtkprogress.o \
|
|
|
|
gtkprogressbar.o \
|
|
|
|
gtkradiobutton.o \
|
|
|
|
gtkradiomenuitem.o \
|
|
|
|
gtkrange.o \
|
|
|
|
gtkrbtree.o \
|
|
|
|
gtkrc.o \
|
|
|
|
gtkruler.o \
|
|
|
|
gtkscale.o \
|
|
|
|
gtkscrollbar.o \
|
|
|
|
gtkscrolledwindow.o \
|
|
|
|
gtkselection.o \
|
|
|
|
gtkseparator.o \
|
2001-03-18 22:16:41 +00:00
|
|
|
gtkseparatormenuitem.o \
|
|
|
|
gtksettings.o \
|
2001-01-07 18:00:15 +00:00
|
|
|
gtksignal.o \
|
|
|
|
gtksocket.o \
|
|
|
|
gtkspinbutton.o \
|
|
|
|
gtkstyle.o \
|
|
|
|
gtkstatusbar.o \
|
|
|
|
gtkstock.o \
|
|
|
|
gtktable.o \
|
|
|
|
gtktearoffmenuitem.o \
|
|
|
|
gtktext.o \
|
|
|
|
gtktextbtree.o \
|
|
|
|
gtktextbuffer.o \
|
|
|
|
gtktextchild.o \
|
|
|
|
gtktextdisplay.o \
|
|
|
|
gtktextiter.o \
|
|
|
|
gtktextlayout.o \
|
|
|
|
gtktextmark.o \
|
|
|
|
gtktextsegment.o \
|
|
|
|
gtktexttag.o \
|
|
|
|
gtktexttagtable.o \
|
|
|
|
gtktexttypes.o \
|
|
|
|
gtktextview.o \
|
|
|
|
gtkthemes.o \
|
|
|
|
gtktipsquery.o \
|
|
|
|
gtktogglebutton.o \
|
|
|
|
gtktoolbar.o \
|
|
|
|
gtktooltips.o \
|
|
|
|
gtktree.o \
|
|
|
|
gtktreeitem.o \
|
|
|
|
gtktreedatalist.o \
|
2001-02-11 11:00:14 +00:00
|
|
|
gtktreednd.o \
|
2001-01-07 18:00:15 +00:00
|
|
|
gtktreemodel.o \
|
|
|
|
gtktreemodelsort.o \
|
|
|
|
gtktreeselection.o \
|
|
|
|
gtktreestore.o \
|
|
|
|
gtktreeview.o \
|
|
|
|
gtktreeviewcolumn.o \
|
|
|
|
gtktypeutils.o \
|
|
|
|
gtkvbbox.o \
|
|
|
|
gtkvbox.o \
|
|
|
|
gtkviewport.o \
|
|
|
|
gtkvpaned.o \
|
|
|
|
gtkvruler.o \
|
|
|
|
gtkvscale.o \
|
|
|
|
gtkvscrollbar.o \
|
|
|
|
gtkvseparator.o \
|
|
|
|
gtkwidget.o \
|
2001-01-15 22:12:31 +00:00
|
|
|
gtkwindow.o \
|
|
|
|
gtkwindow-decorate.o
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
# Source headers which are non-autogenerated headers
|
2000-10-27 21:12:58 +00:00
|
|
|
gtk_public_h_sources = \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtk.h \
|
|
|
|
gtkaccelgroup.h \
|
|
|
|
gtkaccellabel.h \
|
|
|
|
gtkadjustment.h \
|
|
|
|
gtkalignment.h \
|
|
|
|
gtkarg.h \
|
|
|
|
gtkarrow.h \
|
|
|
|
gtkaspectframe.h \
|
|
|
|
gtkbin.h \
|
|
|
|
gtkbindings.h \
|
|
|
|
gtkbbox.h \
|
|
|
|
gtkbox.h \
|
|
|
|
gtkbutton.h \
|
|
|
|
gtkcalendar.h \
|
|
|
|
gtkcheckbutton.h \
|
|
|
|
gtkcheckmenuitem.h \
|
2001-03-18 22:16:41 +00:00
|
|
|
gtkseparatormenuitem.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtkclist.h \
|
2000-10-27 21:12:58 +00:00
|
|
|
gtkclipboard.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtkcolorsel.h \
|
|
|
|
gtkcolorseldialog.h \
|
|
|
|
gtkcombo.h \
|
|
|
|
gtkcontainer.h \
|
|
|
|
gtkctree.h \
|
|
|
|
gtkcurve.h \
|
2000-10-27 21:12:58 +00:00
|
|
|
gtkcellrenderer.h \
|
|
|
|
gtkcellrenderertext.h \
|
|
|
|
gtkcellrenderertextpixbuf.h \
|
|
|
|
gtkcellrenderertoggle.h \
|
|
|
|
gtkcellrendererpixbuf.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtkdebug.h \
|
|
|
|
gtkdialog.h \
|
|
|
|
gtkdnd.h \
|
|
|
|
gtkdrawingarea.h \
|
|
|
|
gtkeditable.h \
|
|
|
|
gtkentry.h \
|
|
|
|
gtkenums.h \
|
|
|
|
gtkeventbox.h \
|
|
|
|
gtkfilesel.h \
|
|
|
|
gtkfixed.h \
|
|
|
|
gtkfontsel.h \
|
|
|
|
gtkframe.h \
|
|
|
|
gtkgamma.h \
|
|
|
|
gtkgc.h \
|
|
|
|
gtkhandlebox.h \
|
|
|
|
gtkhbbox.h \
|
|
|
|
gtkhbox.h \
|
|
|
|
gtkhpaned.h \
|
|
|
|
gtkhruler.h \
|
|
|
|
gtkhscale.h \
|
|
|
|
gtkhscrollbar.h \
|
|
|
|
gtkhseparator.h \
|
|
|
|
gtkhsv.h \
|
2000-10-27 21:12:58 +00:00
|
|
|
gtkiconfactory.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtkimage.h \
|
2001-03-18 22:16:41 +00:00
|
|
|
gtkimagemenuitem.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtkimcontext.h \
|
2000-11-17 21:59:04 +00:00
|
|
|
gtkimmodule.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtkimmulticontext.h \
|
|
|
|
gtkinputdialog.h \
|
|
|
|
gtkinvisible.h \
|
|
|
|
gtkitem.h \
|
|
|
|
gtkitemfactory.h \
|
|
|
|
gtklabel.h \
|
|
|
|
gtklayout.h \
|
|
|
|
gtklist.h \
|
|
|
|
gtklistitem.h \
|
2000-10-27 21:12:58 +00:00
|
|
|
gtkliststore.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtkmain.h \
|
|
|
|
gtkmenu.h \
|
|
|
|
gtkmenubar.h \
|
|
|
|
gtkmenufactory.h \
|
|
|
|
gtkmenuitem.h \
|
|
|
|
gtkmenushell.h \
|
2000-10-27 21:12:58 +00:00
|
|
|
gtkmessagedialog.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtkmisc.h \
|
|
|
|
gtknotebook.h \
|
2000-11-17 21:59:04 +00:00
|
|
|
gtkoldeditable.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtkobject.h \
|
|
|
|
gtkoptionmenu.h \
|
|
|
|
gtkpacker.h \
|
|
|
|
gtkpaned.h \
|
|
|
|
gtkpixmap.h \
|
|
|
|
gtkplug.h \
|
|
|
|
gtkpreview.h \
|
|
|
|
gtkprivate.h \
|
|
|
|
gtkprogress.h \
|
|
|
|
gtkprogressbar.h \
|
|
|
|
gtkradiobutton.h \
|
|
|
|
gtkradiomenuitem.h \
|
|
|
|
gtkrange.h \
|
|
|
|
gtkrc.h \
|
|
|
|
gtkruler.h \
|
|
|
|
gtkscale.h \
|
|
|
|
gtkscrollbar.h \
|
|
|
|
gtkscrolledwindow.h \
|
|
|
|
gtkselection.h \
|
|
|
|
gtkseparator.h \
|
2001-03-18 22:16:41 +00:00
|
|
|
gtksettings.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtksignal.h \
|
|
|
|
gtksocket.h \
|
|
|
|
gtkspinbutton.h \
|
|
|
|
gtkstyle.h \
|
|
|
|
gtkstatusbar.h \
|
2000-10-27 21:12:58 +00:00
|
|
|
gtkstock.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtktable.h \
|
|
|
|
gtktearoffmenuitem.h \
|
|
|
|
gtktextbuffer.h \
|
2000-10-27 21:12:58 +00:00
|
|
|
gtktextchild.h \
|
|
|
|
gtktextdisplay.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtktextiter.h \
|
2000-10-27 21:12:58 +00:00
|
|
|
gtktextlayout.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtktextmark.h \
|
|
|
|
gtktexttag.h \
|
|
|
|
gtktexttagtable.h \
|
|
|
|
gtktextview.h \
|
|
|
|
gtktext.h \
|
|
|
|
gtktipsquery.h \
|
|
|
|
gtktogglebutton.h \
|
|
|
|
gtktoolbar.h \
|
|
|
|
gtktooltips.h \
|
|
|
|
gtktree.h \
|
2001-02-11 11:00:14 +00:00
|
|
|
gtktreednd.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtktreeitem.h \
|
2000-10-27 21:12:58 +00:00
|
|
|
gtktreemodel.h \
|
2000-11-17 21:59:04 +00:00
|
|
|
gtktreemodelsort.h \
|
2000-10-27 21:12:58 +00:00
|
|
|
gtktreeselection.h \
|
2001-02-11 11:00:14 +00:00
|
|
|
gtktreesortable.h \
|
2000-10-27 21:12:58 +00:00
|
|
|
gtktreestore.h \
|
|
|
|
gtktreeview.h \
|
|
|
|
gtktreeviewcolumn.h \
|
2000-10-22 16:01:20 +00:00
|
|
|
gtktypeutils.h \
|
|
|
|
gtkvbbox.h \
|
|
|
|
gtkvbox.h \
|
|
|
|
gtkviewport.h \
|
|
|
|
gtkvpaned.h \
|
|
|
|
gtkvruler.h \
|
|
|
|
gtkvscale.h \
|
|
|
|
gtkvscrollbar.h \
|
|
|
|
gtkvseparator.h \
|
|
|
|
gtkwidget.h \
|
2000-07-25 20:38:35 +00:00
|
|
|
gtkwindow.h
|
|
|
|
|
|
|
|
# More headers to use when autogenerating.
|
2000-10-22 16:01:20 +00:00
|
|
|
gdk_headers = \
|
|
|
|
../gdk/gdkcolor.h \
|
|
|
|
../gdk/gdkcursor.h \
|
|
|
|
../gdk/gdkdnd.h \
|
|
|
|
../gdk/gdkdrawable.h \
|
|
|
|
../gdk/gdkevents.h \
|
|
|
|
../gdk/gdkfont.h \
|
|
|
|
../gdk/gdkgc.h \
|
|
|
|
../gdk/gdkimage.h \
|
|
|
|
../gdk/gdkinput.h \
|
|
|
|
../gdk/gdkpixmap.h \
|
|
|
|
../gdk/gdkproperty.h \
|
|
|
|
../gdk/gdkregion.h \
|
|
|
|
../gdk/gdkrgb.h \
|
|
|
|
../gdk/gdkselection.h \
|
|
|
|
../gdk/gdktypes.h \
|
|
|
|
../gdk/gdkvisual.h \
|
2000-07-25 20:38:35 +00:00
|
|
|
../gdk/gdkwindow.h
|
|
|
|
|
|
|
|
../config.h : ../config.h.win32
|
|
|
|
cp $< $@
|
|
|
|
|
|
|
|
GENERATED = gtk.defs gtktypebuiltins.h gtktypebuiltins_vars.c gtktypebuiltins_ids.c gtktypebuiltins_evals.c gtkmarshal.h gtkmarshal.c
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generated source files:
|
|
|
|
#
|
|
|
|
generated : $(GENERATED)
|
|
|
|
|
2000-10-27 21:12:58 +00:00
|
|
|
gtk.defs : makeenums.pl gtk-boxed.defs $(gtk_public_h_sources) $(gdk_headers)
|
|
|
|
$(PERL) makeenums.pl defs $(gtk_public_h_sources) $(gdk_headers) >gd.tmp
|
2000-07-25 20:38:35 +00:00
|
|
|
cat gd.tmp gtk-boxed.defs >gtk.defs
|
|
|
|
rm gd.tmp
|
|
|
|
|
|
|
|
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
|
|
|
|
gtktypebuiltins.h: gtk.defs maketypes.awk
|
|
|
|
$(AWK) -f maketypes.awk gtk.defs macros >gtktypebuiltins.h
|
|
|
|
|
|
|
|
# generate type identifier variables (GTK_TYPE_WIDGET_FLAGS)
|
|
|
|
gtktypebuiltins_vars.c: gtk.defs maketypes.awk
|
|
|
|
$(AWK) -f maketypes.awk gtk.defs variables >gtktypebuiltins_vars.c
|
|
|
|
|
|
|
|
# generate type entries for type-id registration
|
|
|
|
gtktypebuiltins_ids.c: gtk.defs maketypes.awk
|
|
|
|
$(AWK) -f maketypes.awk gtk.defs entries >gtktypebuiltins_ids.c
|
|
|
|
|
|
|
|
# generate enum value arrays
|
|
|
|
gtktypebuiltins_evals.c: makeenums.pl gtk.defs
|
2000-10-27 21:12:58 +00:00
|
|
|
$(PERL) makeenums.pl arrays $(gtk_public_h_sources) $(gdk_headers) >gtktypebuiltins_evals.c
|
2000-07-25 20:38:35 +00:00
|
|
|
|
2000-10-27 21:12:58 +00:00
|
|
|
gtkmarshal.h : gtkmarshal.list
|
2000-12-30 20:06:14 +00:00
|
|
|
$(GLIB_GENMARSHAL) --prefix=gtk_marshal gtkmarshal.list --header >gtkmarshal.h
|
2000-10-27 21:12:58 +00:00
|
|
|
|
|
|
|
gtkmarshal.c : gtkmarshal.list
|
2000-12-30 20:06:14 +00:00
|
|
|
$(GLIB_GENMARSHAL) --prefix=gtk_marshal gtkmarshal.list --body >gtkmarshal.c
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Linking:
|
|
|
|
#
|
|
|
|
gtk-win32-$(GTK_VER).dll : generated $(gtk_OBJECTS) gtk.def
|
2000-07-30 08:11:28 +00:00
|
|
|
$(GLIB)/build-dll gtk-win32 $(GTK_VER) gtk.def $(gtk_OBJECTS) $(GDK_LIBS) $(GDK_PIXBUF_LIBS) $(PANGO_LIBS) $(GLIB_LIBS) $(LIBICONV_LIBS) $(INTL_LIBS) -luser32
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Test programs:
|
|
|
|
#
|
|
|
|
testcalendar.exe : testcalendar.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ testcalendar.o $(GTK_LIBS) $(GDK_LIBS) $(PANGO_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
|
|
|
|
|
|
|
# Must have separate rules for these objects that don't go in the DLL
|
|
|
|
testcalendar.o : testcalendar.c
|
2000-08-12 19:51:05 +00:00
|
|
|
$(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testcalendar\" testcalendar.c
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
testdnd.exe : testdnd.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ testdnd.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
|
|
|
|
|
|
|
testdnd.o : testdnd.c
|
2000-08-12 19:51:05 +00:00
|
|
|
$(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testdnd\" testdnd.c
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
testgtk.exe : testgtk.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ testgtk.o $(GTK_LIBS) $(GDK_LIBS) $(PANGO_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
|
|
|
|
|
|
|
testgtk.o : testgtk.c
|
2000-08-12 19:51:05 +00:00
|
|
|
$(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testgtk\" testgtk.c
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
testinput.exe : testinput.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ testinput.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
|
|
|
|
|
|
|
testinput.o : testinput.c
|
2000-08-12 19:51:05 +00:00
|
|
|
$(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testinput\" testinput.c
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
testrgb.exe : testrgb.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ testrgb.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
|
|
|
|
|
|
|
testrgb.o : testrgb.c
|
2000-08-12 19:51:05 +00:00
|
|
|
$(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testrgb\" testrgb.c
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
testselection.exe : testselection.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ testselection.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
|
|
|
|
|
|
|
testselection.o : testselection.c
|
2000-08-12 19:51:05 +00:00
|
|
|
$(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testselection\" testselection.c
|
|
|
|
|
|
|
|
testtext.exe : testtext.o
|
2000-10-03 21:00:49 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ testtext.o $(PANGO_LIBS) $(GDK_PIXBUF_LIBS) $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
2000-08-12 19:51:05 +00:00
|
|
|
|
|
|
|
testtext.o : testtext.c
|
|
|
|
$(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testtext\" testtext.c
|
|
|
|
|
|
|
|
testtextbuffer.exe : testtextbuffer.o
|
2000-10-03 21:00:49 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ testtextbuffer.o $(GDK_PIXBUF_LIBS) $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
2000-08-12 19:51:05 +00:00
|
|
|
|
|
|
|
testtextbuffer.o : testtextbuffer.c
|
|
|
|
$(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testtextbuffer\" testtextbuffer.c
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
testthreads.exe : testthreads.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ testthreads.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(PTHREAD_LIB) $(LDFLAGS)
|
|
|
|
|
|
|
|
testthreads.o : testthreads.c
|
2000-08-12 19:51:05 +00:00
|
|
|
$(CC) $(CFLAGS) -I$(PTHREAD_INC) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"testthreads\" -DUSE_PTHREADS=1 testthreads.c
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
simple.exe : simple.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ simple.o $(GTK_LIBS) $(GDK_LIBS) $(GLIB_LIBS) $(LDFLAGS)
|
|
|
|
|
|
|
|
simple.o : simple.c
|
2000-08-12 19:51:05 +00:00
|
|
|
$(CC) $(CFLAGS) -UGTK_COMPILATION -c -DG_LOG_DOMAIN=\"simple\" simple.c
|
2000-07-25 20:38:35 +00:00
|
|
|
|
|
|
|
# The rmgen target removes just the generated source files
|
|
|
|
rmgen:
|
|
|
|
-rm $(GENERATED)
|
|
|
|
|
|
|
|
# Hack to get an updated makefile.mingw automatically after updating
|
|
|
|
# makefile.mingw.in. Only for developer use.
|
|
|
|
makefile.mingw: makefile.mingw.in
|
|
|
|
sed -e 's,@GTK_MAJOR[_]VERSION@,@GTK_MAJOR_VERSION@,' \
|
2000-10-03 21:00:49 +00:00
|
|
|
-e 's,@GTK_MINOR[_]VERSION@,@GTK_MINOR_VERSION@,' \
|
2000-11-11 18:39:57 +00:00
|
|
|
-e 's,@GTK[_]VERSION@,@GTK_VERSION@,' \
|
2000-10-03 21:00:49 +00:00
|
|
|
-e 's,@GDK_PIXBUF[_]MAJOR@,@GDK_PIXBUF_MAJOR@,' \
|
|
|
|
-e 's,@GDK_PIXBUF[_]MINOR@,@GDK_PIXBUF_MINOR@,' <$< >$@
|