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