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 = ..\..\..\wtkit125
16 ################################################################
18 # Nothing much configurable below
20 # cl -? described the options
21 CC = cl -G5 -GF $(OPTIMIZE) -W3 -MD -nologo
23 LDFLAGS = /link /machine:ix86 # /debug /debugtype:cv
25 TOUCH = copy makefile.msc+nul
30 GLIB = ..\..\..\glib-$(GLIB_VER)
31 CFLAGS = -I. -I..\.. -I$(WTKIT)\include -I$(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\" # -DMULTIPLE_WINDOW_CLASSES
39 $(INSTALL) gdk-$(GTK_VER).dll $(BIN)
66 ..\..\config.h : ..\..\config.h.win32
67 copy ..\..\config.h.win32 ..\..\config.h
70 rc -r -fo gdk.res rc\gdk.rc
72 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def gdk.res
73 $(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
76 $(CC) $(CFLAGS) -GD -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
78 testgdk.exe : testgdk.obj gdk-$(GTK_VER).dll
79 $(CC) $(CFLAGS) testgdk.obj gdk-$(GTK_VER).lib $(GLIB)\glib-$(GLIB_VER).lib $(LDFLAGS)
81 testgdk.obj : testgdk.c
82 $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"testgdk\" testgdk.c