1 ## Makefile for building the GDK DLL with egcs on cygwin
2 ## Use: make -f makefile.cygwin install
4 # Change this to wherever you want to install the DLL. This directory
5 # should be in your PATH.
8 # Location of the Wintab toolkit. Downloadable from http://www.pointing.com.
9 # We use the wntab32x.lib archive library directly (copy it as libwntab32x.a).
10 WTKIT = ../../../wtkit126
14 ################################################################
16 # Nothing much configurable below
18 CC = gcc -mno-cygwin -mpentium -fnative-struct
28 CFLAGS = $(OPTIMIZE) -I . -I .. -I ../.. -I $(WTKIT)/include -I $(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
37 $(INSTALL) gdk-$(GTK_VER).dll $(BIN)
64 # We must have copies of gdkx.h and gdkprivate.h in the gdk
65 # subdirectory, so that application sources which want to be
66 # compilable with both GTk+ 1.2 (where there are no separate backend
67 # gdk directories) and this 1.3 version (where the Win32 backend is in
68 # the directory of *this* file you are reading right now) can use
69 # #include <gdk/gdkprivate.h>.
71 # Applications that depend on GTk+ 1.3 or later should include
72 # gdkprivate.h and/or gdkx.h without the gdk/ prefix. The CFLAGS should
73 # include an -I switch pointing to the backend-specific directory
74 # (*this* directory in the Win32 case).
76 gdk/gdkprivate.h : gdkprivate.h
84 ../../config.h : ../../config.h.win32
85 $(CP) ../../config.h.win32 ../../config.h
88 windres --include-dir rc rc/gdk.rc gdkres.o
90 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def gdkres.o libwntab32x.a
91 $(GLIB)/build-dll gdk $(GTK_VER) gdk.def $(gdk_OBJECTS) -L $(GLIB) -lglib-$(GLIB_VER) -L . -lwntab32x -lgdi32 -luser32 -lshell32 -lole32 -luuid $(LDFLAGS) gdkres.o
93 libwntab32x.a : $(WTKIT)/lib/i386/wntab32x.lib
94 cp $(WTKIT)/lib/i386/wntab32x.lib libwntab32x.a
99 $(CC) $(CFLAGS) -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
102 $(CC) $(CFLAGS) -E -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $< >$@
104 gdkrgb.c : ../gdkrgb.c
107 gdkrectangle.c : ../gdkrectangle.c
108 $(CP) ../gdkrectangle.c .
111 -rm *.exe *.o *.dll *.a *.exp *.base