2004-12-07 19:03:55 +00:00
|
|
|
GTK_CFLAGS=`pkg-config --cflags gobject-2.0`
|
|
|
|
GTK_LIBS=`pkg-config --libs gobject-2.0`
|
2004-03-12 21:18:11 +00:00
|
|
|
CC=gcc -mno-cygwin -mms-bitfields
|
|
|
|
DLLWRAP=dllwrap -mno-cygwin -mms-bitfields --target i386-mingw32 --export-all-symbols
|
|
|
|
|
|
|
|
GLUE_OBJS = \
|
|
|
|
error.o \
|
|
|
|
list.o \
|
|
|
|
object.o \
|
|
|
|
slist.o \
|
|
|
|
type.o \
|
2004-04-05 18:31:34 +00:00
|
|
|
unichar.o \
|
2004-03-12 21:18:11 +00:00
|
|
|
value.o \
|
|
|
|
valuearray.o \
|
2005-12-30 12:14:59 +00:00
|
|
|
thread.o \
|
2004-03-12 21:18:11 +00:00
|
|
|
win32dll.o
|
|
|
|
|
2004-12-07 19:03:55 +00:00
|
|
|
all: glibsharpglue-2.dll
|
2004-03-12 21:18:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) -c $(CFLAGS) $(GTK_CFLAGS) -o $@ $^
|
|
|
|
|
|
|
|
|
2004-12-07 19:03:55 +00:00
|
|
|
glibsharpglue-2.dll: $(GLUE_OBJS)
|
|
|
|
$(DLLWRAP) --output-lib=libglibsharpglue-2.a --dllname=glibsharpglue-2.dll --driver-name=gcc --output-def=glibsharpglue-2.def $(GLUE_OBJS) $(GTK_LIBS)
|
2004-03-12 21:18:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
2004-12-07 19:03:55 +00:00
|
|
|
rm -f glibsharpglue-2.dll *.o libglibsharpglue-2.a
|