mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
2e70f892cc
2000-12-15 Tor Lillqvist <tml@iki.fi> * gdk/makefile.{mingw.in,msc} (gdk_OBJECTS): Add gdkkeys. * gtk/gtk.def * gdk/gdk.def: Update. * gdk/win32/gdkmain-win32.c * gdk/win32/gdkkeys-win32.c: New file. Move some functions from gdkmain-win32.c here. * gdk/win32/makefile.mingw.in (all): No need to make gdk-win32res.o here, the makefile one step up will call us to make it. * gdk/win32/makefile.{mingw.in,msc} (gdk_win32_OBJECTS): Add gdkkeys-win32. * gdk/win32/gdkcolor-win32.c: Silence gcc -Wall. * gdk/win32/gdkevents-win32.c (gdk_events_init): Remove leftover call to g_source_add(). * gdk/win32/gdkgc-win32.c (BitmapToRegion): Plug memory leak. Thanks to Andreas Kemnade.
79 lines
2.2 KiB
Plaintext
79 lines
2.2 KiB
Plaintext
## Makefile for building the GDK 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.
|
|
|
|
TOP = ../..
|
|
|
|
include ../build/win32/make.mingw
|
|
|
|
# Possibly override versions from build/win32/module.defs
|
|
GTK_VER = @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@
|
|
GDK_PIXBUF_VER = @GDK_PIXBUF_MAJOR@.@GDK_PIXBUF_MINOR@
|
|
|
|
GDK_PIXBUF_LIBS = -L ../gdk-pixbuf -lgdk_pixbuf-$(GDK_PIXBUF_VER)
|
|
|
|
OPTIMIZE = -g
|
|
|
|
INCLUDES = -I . -I .. -I ../gdk-pixbuf
|
|
DEPCFLAGS = $(GLIB_CFLAGS) $(PANGO_CFLAGS)
|
|
DEFINES = -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\" -DGDK_COMPILATION
|
|
|
|
all: \
|
|
../config.h \
|
|
gdkconfig.h \
|
|
win32/libgdk-win32.a \
|
|
win32/gdk-win32res.o \
|
|
gdk-win32-$(GTK_VER).dll
|
|
|
|
gdk_OBJECTS = \
|
|
gdk.o \
|
|
gdkcolor.o \
|
|
gdkcursor.o \
|
|
gdkdraw.o \
|
|
gdkevents.o \
|
|
gdkfont.o \
|
|
gdkgc.o \
|
|
gdkglobals.o \
|
|
gdkimage.o \
|
|
gdkkeys.o \
|
|
gdkkeyuni.o \
|
|
gdkpango.o \
|
|
gdkpixbuf-drawable.o \
|
|
gdkpixbuf-render.o \
|
|
gdkpixmap.o \
|
|
gdkpolyreg-generic.o \
|
|
gdkrgb.o \
|
|
gdkrectangle.o \
|
|
gdkregion-generic.o \
|
|
gdkwindow.o
|
|
|
|
../config.h : ../config.h.win32
|
|
cp $< $@
|
|
|
|
gdkconfig.h : gdkconfig.h.win32
|
|
cp $< $@
|
|
|
|
win32/libgdk-win32.a : FRC
|
|
cd win32 && $(MAKE) -f makefile.mingw libgdk-win32.a
|
|
|
|
win32/gdk-win32res.o : FRC
|
|
cd win32 && $(MAKE) -f makefile.mingw gdk-win32res.o
|
|
|
|
gdk-win32-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def win32/libgdk-win32.a win32/gdk-win32res.o win32/libwntab32x.a
|
|
$(GLIB)/build-dll gdk-win32 $(GTK_VER) gdk.def $(gdk_OBJECTS) win32/libgdk-win32.a win32/libwntab32x.a $(GDK_PIXBUF_LIBS) $(GLIB_LIBS) $(PANGOWIN32_LIBS) -lgdi32 -luser32 -limm32 -lshell32 -lole32 -luuid $(LDFLAGS) win32/gdk-win32res.o
|
|
|
|
win32/libwntab32x.a : FRC
|
|
cd win32 && $(MAKE) -f makefile.mingw libwntab32x.a
|
|
|
|
# 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@,' \
|
|
-e 's,@GTK_MINOR[_]VERSION@,@GTK_MINOR_VERSION@,' \
|
|
-e 's,@GDK_PIXBUF[_]MAJOR@,@GDK_PIXBUF_MAJOR@,' \
|
|
-e 's,@GDK_PIXBUF[_]MINOR@,@GDK_PIXBUF_MINOR@,' <$< >$@
|
|
|
|
.PHONY: FRC
|