]> Pileus Git - ~andy/gtk/blob - gdk/makefile.msc
Use g_filename_to_utf8 to convert the font names Windows gives us from
[~andy/gtk] / gdk / makefile.msc
1 ## Makefile for building the GDK DLL with Microsoft C
2 ## Use: nmake -f makefile.msc
3
4 ## You must first build the Win32-dependent sources in the win32 subdirectory.
5
6 ## There is no install target, you have to decide where and 
7 ## how to install for yourself.
8
9 # Location of the Wintab toolkit. Downloadable from http://www.pointing.com.
10 WTKIT = ..\..\wtkit126
11
12 ###############################################################
13
14 # Nothing much configurable below
15
16 !IFNDEF DEBUG
17 # Full optimization:
18 OPTIMIZE = -Ox -MD
19 !ELSE
20 # Debugging:
21 OPTIMIZE = -Zi -MDd
22 !ENDIF
23
24 # cl -? describes the options
25 CC = cl -G5 -GF $(OPTIMIZE) -W3 -nologo
26
27 LDFLAGS = /link $(LINKDEBUG)
28
29 GLIB_VER=1.3
30 GTK_VER=1.3
31
32 GLIB = ..\..\glib
33 CFLAGS = -I . -I .. -I $(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
34
35 all: \
36         ..\config.h \
37         gdkconfig.h \
38         gdk-$(GTK_VER).dll
39
40 gdk_OBJECTS = \
41         gdk.obj \
42         gdkcolor.obj \
43         gdkcursor.obj \
44         gdkdraw.obj \
45         gdkevents.obj \
46         gdkfont.obj \
47         gdkgc.obj \
48         gdkglobals.obj \
49         gdkimage.obj \
50         gdkrgb.obj \
51         gdkrectangle.obj \
52         gdkwindow.obj
53
54 ..\config.h : ..\config.h.win32
55         copy ..\config.h.win32 ..\config.h
56
57 gdkconfig.h : gdkconfig.h.win32
58         copy gdkconfig.h.win32 gdkconfig.h
59
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
62
63 .c.obj :
64         $(CC) $(CFLAGS) -GD -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
65
66 clean:
67         del *.dll
68         del *.obj
69         del *.lib
70         del *.err
71         del *.res