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
28 CFLAGS = -g -I. -I../.. -I$(WTKIT)/include -I$(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\" -DNEAR= -DFAR=
37 $(INSTALL) gdk-$(GTK_VER).dll $(BIN)
63 # We must have copies of gdkx.h and gdkprivate.h in the gdk
64 # subdirectory, so that application sources which want to be
65 # compilable with both GTk+ 1.2 (where there are no separate backend
66 # gdk directories) and this 1.3 version (where the Win32 backend is in
67 # the directory of *this* file you are reading right now) can use
68 # #include <gdk/gdkprivate.h>.
70 # Applications that depend on GTk+ 1.3 or later should include
71 # gdkprivate.h and gdkx.h without the gdk/ prefix. The CFLAGS should
72 # include an -I switch pointing to the backend-specific directory
73 # (*this* directory in the Win32 case).
75 gdk/gdkprivate.h : gdkprivate.h
83 ../../config.h : ../../config.h.win32
84 $(CP) ../../config.h.win32 ../../config.h
87 windres --include-dir rc rc/gdk.rc gdkres.o
89 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def gdkres.o libwntab32x.a
90 $(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
92 libwntab32x.a : $(WTKIT)/lib/i386/wntab32x.lib
93 cp $(WTKIT)/lib/i386/wntab32x.lib libwntab32x.a
96 $(CC) $(CFLAGS) -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
98 gdkrgb.c : ../gdkrgb.c
101 gdkrectangle.c : ../gdkrectangle.c
102 $(CP) ../gdkrectangle.c .
104 testgdk.exe : testgdk.o gdk-$(GTK_VER).dll
105 $(CC) $(CFLAGS) -o $@ testgdk.o -L . -lgdk-$(GTK_VER) -L $(GLIB) -lglib-$(GLIB_VER) $(LDFLAGS)
107 testgdk.o : testgdk.c
108 $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"testgdk\" testgdk.c
111 -rm *.exe *.o *.dll *.a *.exp *.base