1999-04-25 21:55:05 +00:00
|
|
|
## Makefile for building the GDK DLL with egcs on cygwin
|
|
|
|
## Use: make -f makefile.cygwin install
|
|
|
|
|
|
|
|
# Change this to wherever you want to install the DLL. This directory
|
|
|
|
# should be in your PATH.
|
|
|
|
BIN = bin
|
|
|
|
|
|
|
|
# Location of the Wintab toolkit. Downloadable from http://www.pointing.com.
|
|
|
|
# We use the wntab32x.lib archive library directly (copy it as libwntab32x.a).
|
|
|
|
WTKIT = ../../../wtkit126
|
|
|
|
|
|
|
|
OPTIMIZE = -g -O
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Nothing much configurable below
|
|
|
|
|
1999-07-21 19:27:25 +00:00
|
|
|
CC = gcc -mno-cygwin -mpentium -fnative-struct
|
1999-04-25 21:55:05 +00:00
|
|
|
|
|
|
|
CP = cp
|
|
|
|
LD = ld
|
|
|
|
INSTALL = install
|
|
|
|
|
|
|
|
GLIB_VER=1.3
|
|
|
|
GTK_VER=1.3
|
|
|
|
|
|
|
|
GLIB = ../../../glib
|
1999-10-05 19:04:48 +00:00
|
|
|
CFLAGS = $(OPTIMIZE) -I . -I .. -I ../.. -I $(WTKIT)/include -I $(GLIB) -DG_ENABLE_DEBUG -DHAVE_CONFIG_H -DGDK_VERSION=\"$(GTK_VER)\"
|
1999-04-25 21:55:05 +00:00
|
|
|
|
|
|
|
all: \
|
1999-05-18 22:23:23 +00:00
|
|
|
gdk/gdkprivate.h \
|
|
|
|
gdk/gdkx.h \
|
1999-04-25 21:55:05 +00:00
|
|
|
../../config.h \
|
1999-07-21 19:27:25 +00:00
|
|
|
gdk-$(GTK_VER).dll
|
1999-04-25 21:55:05 +00:00
|
|
|
|
|
|
|
install : all
|
1999-07-21 19:27:25 +00:00
|
|
|
$(INSTALL) gdk-$(GTK_VER).dll $(BIN)
|
1999-04-25 21:55:05 +00:00
|
|
|
|
|
|
|
gdk_OBJECTS = \
|
|
|
|
gdk.o \
|
|
|
|
gdkcc.o \
|
|
|
|
gdkcolor.o \
|
1999-10-05 19:04:48 +00:00
|
|
|
gdkcompat.o \
|
1999-04-25 21:55:05 +00:00
|
|
|
gdkcursor.o \
|
|
|
|
gdkdnd.o \
|
|
|
|
gdkdraw.o \
|
|
|
|
gdkevents.o \
|
|
|
|
gdkfont.o \
|
|
|
|
gdkgc.o \
|
|
|
|
gdkglobals.o \
|
|
|
|
gdkim.o \
|
|
|
|
gdkimage.o \
|
|
|
|
gdkinput.o \
|
|
|
|
gdkpixmap.o \
|
|
|
|
gdkproperty.o \
|
|
|
|
gdkrgb.o \
|
|
|
|
gdkrectangle.o \
|
|
|
|
gdkregion.o \
|
|
|
|
gdkselection.o \
|
|
|
|
gdkvisual.o \
|
|
|
|
gdkwindow.o \
|
|
|
|
gdkxid.o
|
|
|
|
|
1999-05-18 22:23:23 +00:00
|
|
|
# We must have copies of gdkx.h and gdkprivate.h in the gdk
|
|
|
|
# subdirectory, so that application sources which want to be
|
|
|
|
# compilable with both GTk+ 1.2 (where there are no separate backend
|
|
|
|
# gdk directories) and this 1.3 version (where the Win32 backend is in
|
|
|
|
# the directory of *this* file you are reading right now) can use
|
|
|
|
# #include <gdk/gdkprivate.h>.
|
|
|
|
|
|
|
|
# Applications that depend on GTk+ 1.3 or later should include
|
1999-10-02 22:42:58 +00:00
|
|
|
# gdkprivate.h and/or gdkx.h without the gdk/ prefix. The CFLAGS should
|
1999-05-18 22:23:23 +00:00
|
|
|
# include an -I switch pointing to the backend-specific directory
|
|
|
|
# (*this* directory in the Win32 case).
|
|
|
|
|
|
|
|
gdk/gdkprivate.h : gdkprivate.h
|
|
|
|
-mkdir gdk
|
|
|
|
cp gdkprivate.h gdk
|
|
|
|
|
|
|
|
gdk/gdkx.h : gdkx.h
|
|
|
|
-mkdir gdk
|
|
|
|
cp gdkx.h gdk
|
|
|
|
|
1999-04-25 21:55:05 +00:00
|
|
|
../../config.h : ../../config.h.win32
|
|
|
|
$(CP) ../../config.h.win32 ../../config.h
|
|
|
|
|
|
|
|
gdkres.o : rc/gdk.rc
|
|
|
|
windres --include-dir rc rc/gdk.rc gdkres.o
|
|
|
|
|
1999-07-21 19:27:25 +00:00
|
|
|
gdk-$(GTK_VER).dll : $(gdk_OBJECTS) gdk.def gdkres.o libwntab32x.a
|
|
|
|
$(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
|
1999-04-25 21:55:05 +00:00
|
|
|
|
|
|
|
libwntab32x.a : $(WTKIT)/lib/i386/wntab32x.lib
|
|
|
|
cp $(WTKIT)/lib/i386/wntab32x.lib libwntab32x.a
|
|
|
|
|
1999-10-02 22:42:58 +00:00
|
|
|
.SUFFIXES: .c .o .i
|
|
|
|
|
1999-04-25 21:55:05 +00:00
|
|
|
.c.o :
|
|
|
|
$(CC) $(CFLAGS) -c -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $<
|
|
|
|
|
1999-10-02 22:42:58 +00:00
|
|
|
.c.i :
|
|
|
|
$(CC) $(CFLAGS) -E -DGDK_COMPILATION -DG_LOG_DOMAIN=\"Gdk\" $< >$@
|
|
|
|
|
1999-04-25 21:55:05 +00:00
|
|
|
gdkrgb.c : ../gdkrgb.c
|
|
|
|
$(CP) ../gdkrgb.c .
|
|
|
|
|
|
|
|
gdkrectangle.c : ../gdkrectangle.c
|
|
|
|
$(CP) ../gdkrectangle.c .
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm *.exe *.o *.dll *.a *.exp *.base
|