1 ## Makefile for building the Win32 dependent GDK objects with gcc on Win32
2 ## Use: make -f makefile.mingw
6 # Location of the Wintab toolkit. Downloadable from
7 # http://www.pointing.com. We use the wntab32x.lib archive library
8 # directly (copying it to libwntab32x.a).
9 WTKIT = $(TOP)/wtkit126
11 include ../../build/win32/make.mingw
13 # Possibly override GTK+ version from build/win32/module.defs
14 GTK_VER = @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@
18 INCLUDES = -I ../.. -I .. -I $(WTKIT)/include
19 DEPCFLAGS = $(GLIB_CFLAGS) $(PANGO_CFLAGS)
20 DEFINES = -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
46 gdkselection-win32.o \
51 ../../config.h : ../../config.h.win32
54 ../gdkconfig.h : ../gdkconfig.h.win32
57 gdk-win32res.o : rc/gdk.rc gdk-build.tmp
58 m4 -DBUILDNUMBER=`cat gdk-build.tmp` <rc/gdk.rc >gdk-win32res.rc
59 windres --include-dir rc gdk-win32res.rc gdk-win32res.o
60 rm gdk-build.tmp gdk-win32res.rc
62 # The *.stamp files aren't distributed. Thus, this takes care of only
63 # tml building libraries with nonzero build number.
65 ifeq ($(wildcard gdk-build.stamp),gdk-build.stamp)
66 # Magic to bump the build number
68 bash -c "read number && echo $$[number+1]" <gdk-build.stamp >gdk-build.tmp
69 cp gdk-build.tmp gdk-build.stamp
71 # Use zero as build number.
76 libgdk-win32.a : $(gdk_win32_OBJECTS)
78 $(AR) rv $@ $(gdk_win32_OBJECTS)
80 libwntab32x.a : $(WTKIT)/lib/i386/wntab32x.lib
83 # Hack to get an updated makefile.mingw automatically after updating
84 # makefile.mingw.in. Only for developer use.
85 makefile.mingw: makefile.mingw.in
86 sed -e 's,@GTK_MAJOR[_]VERSION@,@GTK_MAJOR_VERSION@,' \
87 -e 's,@GTK_MINOR[_]VERSION@,@GTK_MINOR_VERSION@,' <$< >$@