1 ## Makefile for building the GDK DLL with Microsoft C
2 ## Use: nmake -f makefile.msc
4 # Change this to wherever you want to install the DLLs. This directory
5 # should be in your PATH.
8 # Location of the Wintab toolkit. Downloadable from http://www.pointing.com.
9 WTKIT = ..\..\..\wtkit126
11 ################################################################
13 # Nothing much configurable below
25 # cl -? describes the options
26 CC = cl -G5 -GF $(OPTIMIZE) -W3 -nologo
28 LDFLAGS = /link /machine:ix86 $(LINKDEBUG)
35 CFLAGS = -I. -I..\.. -I$(WTKIT)\include -I$(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
44 $(INSTALL) gdk-$(GTK_VER).dll $(BIN)
70 # We must have copies of gdkx.h and gdkprivate.h in the gdk
71 # subdirectory, so that application sources which want to be
72 # compilable with both GTk+ 1.2 (where there are no separate backend
73 # gdk directories) and this 1.3 version (where the Win32 backend is in
74 # the directory of *this* file you are reading right now) can use
75 # #include <gdk/gdkprivate.h>.
77 # Applications that depend on GTk+ 1.3 or later should include
78 # gdkprivate.h and gdkx.h without the gdk/ prefix. The CFLAGS should
79 # include an -I switch pointing to the backend-specific directory
80 # (*this* directory in the Win32 case).
82 gdk\gdkprivate.h : gdkprivate.h
90 ..\..\config.h : ..\..\config.h.win32
91 copy ..\..\config.h.win32 ..\..\config.h
94 rc -r -fo gdk.res rc\gdk.rc
96 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def gdk.res
97 $(CC) $(CFLAGS) -LD -Fegdk-$(GTK_VER).dll $(gdk_OBJECTS) $(GLIB)\glib-$(GLIB_VER).lib gdi32.lib user32.lib shell32.lib ole32.lib uuid.lib $(WTKIT)\lib\i386\wntab32x.lib $(LDFLAGS) gdk.res /def:gdk.def
100 $(CC) $(CFLAGS) -GD -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
102 gdkrgb.c : ..\gdkrgb.c
105 gdkrectangle.c : ..\gdkrectangle.c
106 copy ..\gdkrectangle.c .