2000-10-06 23:32:59 +02:00
|
|
|
## Makefile for building the gobject dll with Microsoft C
|
|
|
|
## Use: nmake -f makefile.msc install
|
|
|
|
|
|
|
|
TOP = ..\..
|
|
|
|
|
2001-02-19 22:51:19 +01:00
|
|
|
!INCLUDE $(TOP)\build\win32\make.msc
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
# Possibly override GLib version in build\win32\object.defs
|
|
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Nothing much configurable below
|
|
|
|
|
|
|
|
INCLUDES = -I .. -I .
|
2000-12-29 20:25:40 +01:00
|
|
|
DEFINES = -DHAVE_CONFIG_H -DGOBJECT_COMPILATION -DG_LOG_DOMAIN=g_log_domain_gruntime -DG_ENABLE_DEBUG
|
2000-10-06 23:32:59 +02:00
|
|
|
|
2000-10-27 23:35:45 +02:00
|
|
|
all : \
|
|
|
|
gobject-$(GLIB_VER).dll \
|
|
|
|
glib-genmarshal.exe
|
2000-10-06 23:32:59 +02:00
|
|
|
|
2000-10-26 19:53:08 +02:00
|
|
|
gobject_OBJECTS = \
|
|
|
|
gboxed.obj \
|
|
|
|
gbsearcharray.obj \
|
|
|
|
gclosure.obj \
|
|
|
|
genums.obj \
|
|
|
|
gobject.obj \
|
|
|
|
gparam.obj \
|
|
|
|
gparamspecs.obj \
|
|
|
|
gsignal.obj \
|
|
|
|
gtype.obj \
|
2000-11-11 14:46:15 +01:00
|
|
|
gtypemodule.obj \
|
2000-11-05 10:00:54 +01:00
|
|
|
gtypeplugin.obj \
|
2000-10-26 19:53:08 +02:00
|
|
|
gvalue.obj \
|
|
|
|
gvaluetypes.obj
|
2000-10-06 23:32:59 +02:00
|
|
|
|
2001-02-19 22:51:19 +01:00
|
|
|
gmarshal.h : gmarshal.list glib-genmarshal.exe
|
|
|
|
echo #ifndef __G_MARSHAL_H__ > xgen-gmh
|
|
|
|
echo #define __G_MARSHAL_H__ >> xgen-gmh
|
|
|
|
glib-genmarshal --nostdinc --prefix=g_cclosure_marshal gmarshal.list --header >> xgen-gmh
|
|
|
|
echo #endif /* __G_MARSHAL_H__ */ >> xgen-gmh
|
|
|
|
copy xgen-gmh gmarshal.h
|
|
|
|
|
|
|
|
gmarshal.c: gmarshal.list gmarshal.h glib-genmarshal.exe
|
|
|
|
glib-genmarshal --nostdinc --prefix=g_cclosure_marshal gmarshal.list --body > gmarshal.c
|
|
|
|
|
2000-10-06 23:32:59 +02:00
|
|
|
makefile.msc: makefile.msc.in
|
|
|
|
$(SED) -e s,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@, \
|
|
|
|
-e s,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@, <makefile.msc.in >$@
|
|
|
|
|
|
|
|
gobject-$(GLIB_VER).dll : $(gobject_OBJECTS) gobject.def
|
|
|
|
$(CC) $(CFLAGS) -LD -Fegobject-$(GLIB_VER).dll $(gobject_OBJECTS) ..\glib-$(GLIB_VER).lib $(LDFLAGS) /def:gobject.def
|
2000-10-27 23:35:45 +02:00
|
|
|
|
|
|
|
glib-genmarshal.exe : glib-genmarshal.c
|
2001-02-19 22:51:19 +01:00
|
|
|
$(CC) -Fe$@ $(CFLAGS) -UGOBJECT_COMPILATION glib-genmarshal.c ..\glib-$(GLIB_VER).lib
|