]> Pileus Git - ~andy/gtk/blob - gdk/makefile.mingw.in
8c35a8eef3ff4e2a1e0a5da709c6fbb2751e9502
[~andy/gtk] / gdk / makefile.mingw.in
1 ## Makefile for building the GDK DLL with gcc on Win32
2 ## Use: make -f makefile.mingw
3
4 ## There is no install target, you have to decide where and 
5 ## how to install for yourself.
6
7 TOP = ../..
8
9 include ../build/win32/make.mingw
10
11 # Possibly override GTK+ version from build/win32/module.defs
12 GTK_VER = @GTK_MAJOR_VERSION@.@GTK_MINOR_VERSION@
13
14 OPTIMIZE = -g
15
16 INCLUDES = -I . -I .. -I ../gdk-pixbuf
17 DEPCFLAGS = $(GLIB_CFLAGS) $(PANGO_CFLAGS)
18 DEFINES = -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
19
20 all:                                            \
21         ../config.h                             \
22         gdkconfig.h                             \
23         win32/libgdk-win32.a                    \
24         win32/gdk-win32res.o                    \
25         gdk-win32-$(GTK_VER).dll
26
27 gdk_OBJECTS =                                   \
28         gdk.o                                   \
29         gdkcolor.o                              \
30         gdkcursor.o                             \
31         gdkdraw.o                               \
32         gdkevents.o                             \
33         gdkfont.o                               \
34         gdkgc.o                                 \
35         gdkglobals.o                            \
36         gdkimage.o                              \
37         gdkkeyuni.o                             \
38         gdkpango.o                              \
39         gdkpixbuf-drawable.o                    \
40         gdkpixbuf-render.o                      \
41         gdkpixmap.o                             \
42         gdkpolyreg-generic.o                    \
43         gdkrgb.o                                \
44         gdkrectangle.o                          \
45         gdkregion-generic.o                     \
46         gdkwindow.o
47
48 ../config.h : ../config.h.win32
49         cp $< $@
50
51 gdkconfig.h : gdkconfig.h.win32
52         cp $< $@
53
54 win32/libgdk-win32.a : FRC
55         cd win32 && $(MAKE) -f makefile.mingw libgdk-win32.a
56
57 win32/gdk-win32res.o : FRC
58         cd win32 && $(MAKE) -f makefile.mingw gdk-win32res.o
59
60 gdk-win32-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def win32/libgdk-win32.a win32/gdk-win32res.o win32/libwntab32x.a
61         $(GLIB)/build-dll gdk-win32 $(GTK_VER) gdk.def $(gdk_OBJECTS) win32/gdk-win32.a win32/wntab32x.a $(GLIB_LIBS) -lgdi32 -luser32 -limm32 -lshell32 -lole32 -luuid $(LDFLAGS) win32/gdk-win32res.o 
62
63 win32/libwntab32x.a : FRC
64         cd win32 && $(MAKE) -f makefile.mingw libwntab32x.a
65
66 # Hack to get an updated makefile.mingw automatically after updating
67 # makefile.mingw.in. Only for developer use.
68 makefile.mingw: makefile.mingw.in
69         sed -e 's,@GTK_MAJOR[_]VERSION@,@GTK_MAJOR_VERSION@,' \
70             -e 's,@GTK_MINOR[_]VERSION@,@GTK_MINOR_VERSION@,' <$< >$@
71
72 .PHONY: FRC
73