]> Pileus Git - ~andy/gtk/blob - gdk/makefile.msc
Doc comment fixing. (Mostly non-matching parameter names.)
[~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 -Zi
19 LINKDEBUG = /nodefaultlib:libc.lib
20 !ELSE
21 # Debugging:
22 OPTIMIZE = -Zi -MDd
23 LINKDEBUG = /nodefaultlib:libcd.lib /nodefaultlib:libc.lib /debug
24 !ENDIF
25
26 # cl -? describes the options
27 CC = cl -G5 -GF $(OPTIMIZE) -W3 -nologo
28
29 LDFLAGS = /link $(LINKDEBUG)
30
31 GLIB_VER=1.3
32 GTK_VER=1.3
33
34 GLIB = ..\..\glib
35 CFLAGS = -I . -I .. -I $(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
36
37 all: \
38         ..\config.h \
39         gdkconfig.h \
40         gdk-$(GTK_VER).dll
41
42 gdk_OBJECTS = \
43         gdk.obj \
44         gdkcolor.obj \
45         gdkcursor.obj \
46         gdkdraw.obj \
47         gdkevents.obj \
48         gdkfont.obj \
49         gdkgc.obj \
50         gdkglobals.obj \
51         gdkimage.obj \
52         gdkrgb.obj \
53         gdkrectangle.obj \
54         gdkwindow.obj
55
56 ..\config.h : ..\config.h.win32
57         copy ..\config.h.win32 ..\config.h
58
59 gdkconfig.h : gdkconfig.h.win32
60         copy gdkconfig.h.win32 gdkconfig.h
61
62 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def win32\gdk-win32.lib
63         $(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
65 .c.obj :
66         $(CC) $(CFLAGS) -GD -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
67
68 clean:
69         del *.dll
70         del *.obj
71         del *.lib
72         del *.err
73         del *.res