]> Pileus Git - ~andy/gtk/blob - gdk/win32/makefile.msc
Less logging verbiage.
[~andy/gtk] / gdk / win32 / makefile.msc
1 ## Makefile for building the GDK DLL with Microsoft C
2 ## Use: nmake -f makefile.msc
3
4 # Change this to wherever you want to install the DLLs. This directory
5 # should be in your PATH.
6 BIN = C:\bin
7
8 # Location of the Wintab toolkit. Downloadable from http://www.pointing.com.
9 WTKIT = ..\..\..\wtkit126
10
11 ################################################################
12
13 # Nothing much configurable below
14
15 !IFNDEF DEBUG
16 # Full optimization:
17 OPTIMIZE = -Ox -MD
18 LINKDEBUG =
19 !ELSE
20 # Debugging:
21 OPTIMIZE = -Zi -MDd
22 LINKDEBUG = /debug
23 !ENDIF
24
25 # cl -? describes the options
26 CC = cl -G5 -GF $(OPTIMIZE) -W3 -nologo
27
28 LDFLAGS = /link /machine:ix86 $(LINKDEBUG)
29 INSTALL = copy
30
31 GLIB_VER=1.3
32 GTK_VER=1.3
33
34 GLIB = ..\..\..\glib
35 CFLAGS = -I. -I..\.. -I$(WTKIT)\include -I$(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
36
37 all: \
38         gdk\gdkprivate.h \
39         gdk\gdkx.h      \
40         ..\..\config.h  \
41         gdk-$(GTK_VER).dll
42
43 install : all
44         $(INSTALL) gdk-$(GTK_VER).dll $(BIN)
45
46 gdk_OBJECTS = \
47         gdk.obj         \
48         gdkcc.obj       \
49         gdkcolor.obj    \
50         gdkcursor.obj   \
51         gdkdnd.obj      \
52         gdkdraw.obj     \
53         gdkevents.obj   \
54         gdkfont.obj     \
55         gdkgc.obj       \
56         gdkglobals.obj  \
57         gdkim.obj       \
58         gdkimage.obj    \
59         gdkinput.obj    \
60         gdkpixmap.obj   \
61         gdkproperty.obj \
62         gdkrgb.obj      \
63         gdkrectangle.obj\
64         gdkregion.obj   \
65         gdkselection.obj\
66         gdkvisual.obj   \
67         gdkwindow.obj   \
68         gdkxid.obj
69
70 # We must have copies of gdkx.h and gdkprivate.h in the gdk
71 # subdirectory, so that application sources which want to be
72 # compilable with both GTk+ 1.2 (where there are no separate backend
73 # gdk directories) and this 1.3 version (where the Win32 backend is in
74 # the directory of *this* file you are reading right now) can use
75 # #include <gdk/gdkprivate.h>.
76
77 # Applications that depend on GTk+ 1.3 or later should include
78 # gdkprivate.h and gdkx.h without the gdk/ prefix. The CFLAGS should
79 # include an -I switch pointing to the backend-specific directory
80 # (*this* directory in the Win32 case).
81
82 gdk\gdkprivate.h : gdkprivate.h
83         -md gdk
84         copy gdkprivate.h gdk
85
86 gdk\gdkx.h : gdkx.h
87         -md gdk
88         copy gdkx.h gdk
89
90 ..\..\config.h : ..\..\config.h.win32
91         copy ..\..\config.h.win32 ..\..\config.h
92
93 gdk.res : rc\gdk.rc
94         rc -r -fo gdk.res rc\gdk.rc
95
96 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def gdk.res
97         $(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
98
99 .c.obj :
100         $(CC) $(CFLAGS) -GD -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
101
102 gdkrgb.c : ..\gdkrgb.c
103         copy ..\gdkrgb.c .
104
105 gdkrectangle.c : ..\gdkrectangle.c
106         copy ..\gdkrectangle.c .
107
108 clean:
109         del *.exe
110         del *.obj
111         del *.dll
112         del *.lib
113         del *.exp
114         del *.err
115         del *.map
116         del *.sym
117         del *.res
118         del *.pdb
119         del *.ilk