2000-03-04 Tor Lillqvist <tml@iki.fi> * gdk/win32/gdkprivate-win32.h (struct _GdkWindowWin32Data): Store just pixel value of background colour. * gdk/win32/gdkgc-win32.c (gdk_colormap_color): New function containing code snippet previously duplicated in a couple of places. * gdk/win32/gdkdrawable-win32.c (gdk_win32_draw_points): Use gdk_colormap_color. * gdk/win32/gdkevents-win32.c (gdk_event_translate): Generate GDK_SCROLL events for WM_MOUSEWHEEL messages. Don't generate events for autorepeated Shift, Control and Alt keys. Use gdk_colormap_color. * gdk/win32/gdkwindow-win32.c (gdk_window_set_cursor): If the pointer is inside the window the cursor of which we are setting, call SetCursor immediately. * gdk/win32/makefile.cygwin * gtk/makefile.cygwin: If we don't have the build number stamp file, use zero. * gtk/gtkcompat.h.in: Define gtk_paned_gutter_size and gtk_paned_set_gutter_size as empty. * gtk/gtk.def: Remove gtk_paned_set_gutter_size.
96 lines
2.5 KiB
Plaintext
96 lines
2.5 KiB
Plaintext
## Makefile for building the machine dependent part of GDK with gcc on cygwin
|
|
## Use: make -f makefile.cygwin
|
|
|
|
# Location of the Wintab toolkit. Downloadable from http://www.pointing.com.
|
|
# We use the wntab32x.lib archive library directly (copy it as libwntab32x.a).
|
|
WTKIT = ../../../wtkit126
|
|
|
|
OPTIMIZE = -g -O
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
CC = gcc -mno-cygwin -mpentium -fnative-struct
|
|
|
|
GLIB_VER=1.3
|
|
GTK_VER=1.3
|
|
|
|
GLIB = ../../../glib
|
|
CFLAGS = $(OPTIMIZE) -I . -I .. -I ../.. -I $(WTKIT)/include -I $(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
|
|
|
|
all: \
|
|
../../config.h \
|
|
../gdkconfig.h \
|
|
libgdk-win32.a \
|
|
gdk-win32res.o \
|
|
libwntab32x.a
|
|
|
|
gdk_win32_OBJECTS = \
|
|
gdkcc-win32.o \
|
|
gdkcolor-win32.o \
|
|
gdkcursor-win32.o \
|
|
gdkdnd-win32.o \
|
|
gdkdrawable-win32.o \
|
|
gdkevents-win32.o \
|
|
gdkfont-win32.o \
|
|
gdkgc-win32.o \
|
|
gdkglobals-win32.o \
|
|
gdkim-win32.o \
|
|
gdkimage-win32.o \
|
|
gdkinput-win32.o \
|
|
gdkmain-win32.o \
|
|
gdkpixmap-win32.o \
|
|
gdkproperty-win32.o \
|
|
gdkregion-win32.o \
|
|
gdkselection-win32.o \
|
|
gdkvisual-win32.o \
|
|
gdkwin32id.o \
|
|
gdkwindow-win32.o
|
|
|
|
../../config.h : ../../config.h.win32
|
|
cp ../../config.h.win32 ../../config.h
|
|
|
|
../gdkconfig.h : ../gdkconfig.h.win32
|
|
cp ../gdkconfig.h.win32 ../gdkconfig.h
|
|
|
|
# Kludge to get the path to the win32 headers
|
|
WIN32APIHEADERS = $(shell echo "\#include <winver.h>" | $(CC) -M -E - | tail -1 | sed -e 's!/winver.h!!')
|
|
|
|
gdk-win32res.o : rc/gdk.rc gdk-build.tmp
|
|
m4 -DBUILDNUMBER=`cat gdk-build.tmp` <rc/gdk.rc >gdk-win32res.rc
|
|
windres --include-dir rc --include-dir $(WIN32APIHEADERS) gdk-win32res.rc gdk-win32res.o
|
|
rm gdk-build.tmp gdk-win32res.rc
|
|
|
|
# The *.stamp files aren't distributed. Thus, this takes care of only
|
|
# tml building libraries with nonzero build number.
|
|
|
|
ifeq ($(wildcard gdk-build.stamp),gdk-build.stamp)
|
|
# Magic to bump the build number
|
|
gdk-build.tmp :
|
|
bash -c "read number && echo $$[number+1]" <gdk-build.stamp >gdk-build.tmp
|
|
cp gdk-build.tmp gdk-build.stamp
|
|
else
|
|
# Use zero as build number.
|
|
gdk-build.tmp :
|
|
echo 0 >gdk-build.tmp
|
|
endif
|
|
|
|
libgdk-win32.a : $(gdk_win32_OBJECTS)
|
|
-rm -f $@
|
|
$(AR) rv $@ $(gdk_win32_OBJECTS)
|
|
|
|
libwntab32x.a : $(WTKIT)/lib/i386/wntab32x.lib
|
|
cp $(WTKIT)/lib/i386/wntab32x.lib libwntab32x.a
|
|
|
|
.SUFFIXES: .c .o .i
|
|
|
|
.c.o :
|
|
$(CC) $(CFLAGS) -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
|
|
|
|
.c.i :
|
|
$(CC) $(CFLAGS) -E -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $< >$@
|
|
|
|
clean:
|
|
-rm *.exe *.o *.dll *.a *.exp *.base
|