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=
35 $(INSTALL) gdk-$(GTK_VER).dll $(BIN)
61 ../../config.h : ../../config.h.win32
62 $(CP) ../../config.h.win32 ../../config.h
65 windres --include-dir rc rc/gdk.rc gdkres.o
67 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def gdkres.o libwntab32x.a
68 $(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
70 libwntab32x.a : $(WTKIT)/lib/i386/wntab32x.lib
71 cp $(WTKIT)/lib/i386/wntab32x.lib libwntab32x.a
74 $(CC) $(CFLAGS) -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
76 gdkrgb.c : ../gdkrgb.c
79 gdkrectangle.c : ../gdkrectangle.c
80 $(CP) ../gdkrectangle.c .
82 testgdk.exe : testgdk.o gdk-$(GTK_VER).dll
83 $(CC) $(CFLAGS) -o $@ testgdk.o -L . -lgdk-$(GTK_VER) -L $(GLIB) -lglib-$(GLIB_VER) $(LDFLAGS)
86 $(CC) $(CFLAGS) -c -DG_LOG_DOMAIN=\"testgdk\" testgdk.c
89 -rm *.exe *.o *.dll *.a *.exp *.base