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.
10 !INCLUDE $(TOP)/build/win32/make.msc
12 # Location of the Wintab toolkit. Downloadable from http://www.pointing.com.
13 # definition should possibly go to build/win32/module.def, too.
14 WTKIT = ..\..\wtkit126
16 ###############################################################
18 # Nothing much configurable below
22 OPTIMIZE = -Ox -MD -Zi
23 LINKDEBUG = /nodefaultlib:libc.lib
27 LINKDEBUG = /nodefaultlib:libcd.lib /nodefaultlib:libc.lib /debug
30 # cl -? describes the options
31 CC = cl -G5 -GF $(OPTIMIZE) -W3 -nologo
33 LDFLAGS = /link $(LINKDEBUG)
38 CFLAGS = -I . -I .. $(GLIB_CFLAGS) $(PANGO_CFLAGS) -I ../gdk-pixbuf \
39 -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
40 EXTRALIBS = $(WTKIT)\lib\i386\wntab32x.lib $(GLIB_LIBS) \
41 ..\gdk-pixbuf\gdk_pixbuf-$(GDK_PIXBUF_VER).lib $(PANGOWIN32_LIBS)
63 gdkregion-generic.obj \
64 gdkpixbuf-render.obj \
65 gdkpolyreg-generic.obj \
70 ..\config.h : ..\config.h.win32
71 copy ..\config.h.win32 ..\config.h
73 gdkconfig.h : gdkconfig.h.win32
74 copy gdkconfig.h.win32 gdkconfig.h
76 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def win32\gdk-win32.lib
77 $(CC) $(CFLAGS) -LD -Fegdk-$(GTK_VER).dll $(gdk_OBJECTS) win32\gdk-win32.lib $(EXTRALIBS) gdi32.lib user32.lib imm32.lib shell32.lib ole32.lib uuid.lib win32\gdk.res $(LDFLAGS) /def:gdk.def
79 testgdk.exe : gdk-$(GTK_VER).dll testgdk.obj
80 $(CC) -Fetestgdk.exe testgdk.obj gdk-$(GTK_VER).lib $(EXTRALIBS) $(LDFLAGS)
83 $(CC) $(CFLAGS) -GD -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<