1 ## Makefile for building the GDK DLL with gcc-2.95 or later on cygwin
2 ## Use: make -f makefile.cygwin
4 ## You must first build the Win32-dependent sources in the win32 subdirectory.
6 ## There is no install target, you have to decide where and
7 ## how to install for yourself.
11 ################################################################
13 # Nothing much configurable below
15 CC = gcc -mno-cygwin -mpentium -fnative-struct
23 CFLAGS = $(OPTIMIZE) -I . -I .. -I $(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
44 ../config.h : ../config.h.win32
45 $(CP) ../config.h.win32 ../config.h
47 gdkconfig.h : gdkconfig.h.win32
48 $(CP) gdkconfig.h.win32 gdkconfig.h
50 gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def win32/libgdk-win32.a win32/gdk-win32res.o
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
56 $(CC) $(CFLAGS) -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
59 $(CC) $(CFLAGS) -E -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $< >$@
62 -rm *.exe *.o *.dll *.a *.exp *.base