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
16 ################################################################
18 # Nothing much configurable below
20 # cl -? describes the options
21 CC = cl -G5 -GF $(OPTIMIZE) -W3 -MD -nologo
23 LDFLAGS = /link /machine:ix86 # /debug
25 TOUCH = copy makefile.msc+nul
31 CFLAGS = -I. -I..\.. -I$(WTKIT)\include -I$(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
41 $(INSTALL) gdk-$(GTK_VER).dll $(BIN)
68 # We must have copies of gdkx.h and gdkprivate.h in the gdk
69 # subdirectory, so that application sources which want to be
70 # compilable with both GTk+ 1.2 (where there are no separate backend
71 # gdk directories) and this 1.3 version (where the Win32 backend is in
72 # the directory of *this* file you are reading right now) can use
73 # #include <gdk/gdkprivate.h>.
75 # Applications that depend on GTk+ 1.3 or later should include
76 # gdkprivate.h and gdkx.h without the gdk/ prefix. The CFLAGS should
77 # include an -I switch pointing to the backend-specific directory
78 # (*this* directory in the Win32 case).
80 gdk\gdkprivate.h : gdkprivate.h
88 ..\..\config.h : ..\..\config.h.win32
89 copy ..\..\config.h.win32 ..\..\config.h
92 rc -r -fo gdk.res rc\gdk.rc
94 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def gdk.res
95 $(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
98 $(CC) $(CFLAGS) -GD -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
100 gdkrgb.c : ..\gdkrgb.c
103 gdkrectangle.c : ..\gdkrectangle.c
104 copy ..\gdkrectangle.c .
107 testgdk.exe : testgdk.obj gdk-$(GTK_VER).dll
108 $(CC) $(CFLAGS) testgdk.obj gdk-$(GTK_VER).lib $(GLIB)\glib-$(GLIB_VER).lib $(LDFLAGS)
110 testgdk.obj : testgdk.c
111 $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"testgdk\" testgdk.c