]> Pileus Git - ~andy/gtk/blob - gdk/makefile.cygwin
Fix typo.
[~andy/gtk] / gdk / makefile.cygwin
1 ## Makefile for building the GDK DLL with gcc-2.95 or later on cygwin
2 ## Use: make -f makefile.cygwin
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 OPTIMIZE = -g -O
10
11 ################################################################
12
13 # Nothing much configurable below
14
15 CC = gcc -mno-cygwin -mpentium -fnative-struct
16
17 CP = cp
18 LD = ld
19
20 GLIB_VER=1.3
21 GTK_VER=1.3
22
23 GLIB = ../../glib
24 CFLAGS = $(OPTIMIZE) -I . -I .. -I $(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
25
26 all: \
27         ../config.h \
28         gdkconfig.h \
29         gdk-$(GTK_VER).dll
30
31 gdk_OBJECTS = \
32         gdk.o           \
33         gdkcolor.o      \
34         gdkdraw.o       \
35         gdkevents.o     \
36         gdkfont.o       \
37         gdkgc.o         \
38         gdkglobals.o    \
39         gdkimage.o      \
40         gdkrgb.o        \
41         gdkrectangle.o  \
42         gdkwindow.o
43
44 ../config.h : ../config.h.win32
45         $(CP) ../config.h.win32 ../config.h
46
47 gdkconfig.h : gdkconfig.h.win32
48         $(CP) gdkconfig.h.win32 gdkconfig.h
49
50 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def
51         $(GLIB)/build-dll gdk $(GTK_VER) gdk.def $(gdk_OBJECTS) -L win32 -lgdk-win32 -lwntab32x -L $(GLIB) -lglib-$(GLIB_VER) -lgdi32 -luser32 -limm32 -lshell32 -lole32 -luuid $(LDFLAGS) win32/gdk-win32res.o 
52
53 .SUFFIXES: .c .o .i
54
55 .c.o :
56         $(CC) $(CFLAGS) -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
57
58 .c.i :
59         $(CC) $(CFLAGS) -E -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $< >$@
60
61 clean:
62         -rm *.exe *.o *.dll *.a *.exp *.base