1 ## Makefile for building the GDK DLL with Microsoft C
2 ## Use: nmake -f makefile.msc
4 ## You must first build the Win32-dependent sources in the win32 subdirectory.
6 ## There is no install target, you have to decide where and
7 ## how to install for yourself.
9 # Location of the Wintab toolkit. Downloadable from http://www.pointing.com.
10 WTKIT = ..\..\wtkit126
12 ###############################################################
14 # Nothing much configurable below
24 # cl -? describes the options
25 CC = cl -G5 -GF $(OPTIMIZE) -W3 -nologo
27 LDFLAGS = /link $(LINKDEBUG)
33 CFLAGS = -I . -I .. -I $(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
54 ..\config.h : ..\config.h.win32
55 copy ..\config.h.win32 ..\config.h
57 gdkconfig.h : gdkconfig.h.win32
58 copy gdkconfig.h.win32 gdkconfig.h
60 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def win32\gdk-win32.lib
61 $(CC) $(CFLAGS) -LD -Fegdk-$(GTK_VER).dll $(gdk_OBJECTS) win32\gdk-win32.lib $(WTKIT)\lib\i386\wntab32x.lib $(GLIB)\glib-$(GLIB_VER).lib gdi32.lib user32.lib imm32.lib shell32.lib ole32.lib uuid.lib win32\gdk.res $(LDFLAGS) /def:gdk.def
64 $(CC) $(CFLAGS) -GD -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<