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-10-26 01:40:38 +02:00
|
|
|
!INCLUDE ..\build\win32\make.msc
|
2000-10-06 23:32:59 +02:00
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
2002-01-05 19:53:58 +01:00
|
|
|
INCLUDES = -FImsvc_recommended_pragmas.h -I .. -I . -I ..\glib
|
2001-11-18 16:29:16 +01:00
|
|
|
DEFINES = -DHAVE_CONFIG_H -DGOBJECT_COMPILATION -DG_LOG_DOMAIN=\"GLib-GObject\" \
|
2001-07-20 18:58:00 +02:00
|
|
|
-DG_ENABLE_DEBUG
|
|
|
|
# -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS
|
|
|
|
# -DG_DISABLE_CAST_CHECKS
|
2000-10-06 23:32:59 +02:00
|
|
|
|
2000-10-27 23:35:45 +02:00
|
|
|
all : \
|
2001-08-04 17:49:55 +02:00
|
|
|
glib-genmarshal.exe \
|
|
|
|
gmarshal.h \
|
|
|
|
gmarshal.c \
|
2004-11-21 21:23:34 +01:00
|
|
|
gobjectalias.h \
|
2005-03-18 18:44:51 +01:00
|
|
|
gobjectaliasdef.c \
|
2001-11-03 17:49:27 +01:00
|
|
|
gmarshal.strings \
|
|
|
|
gobject-query.exe \
|
2002-11-21 04:25:35 +01:00
|
|
|
libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll \
|
2002-02-10 17:39:24 +01:00
|
|
|
gobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib \
|
2004-10-29 22:58:04 +02:00
|
|
|
testgobject.exe
|
2000-10-06 23:32:59 +02:00
|
|
|
|
2000-10-26 19:53:08 +02:00
|
|
|
gobject_OBJECTS = \
|
|
|
|
gboxed.obj \
|
|
|
|
gclosure.obj \
|
|
|
|
genums.obj \
|
|
|
|
gobject.obj \
|
|
|
|
gparam.obj \
|
|
|
|
gparamspecs.obj \
|
|
|
|
gsignal.obj \
|
2001-11-03 17:49:27 +01:00
|
|
|
gsourceclosure.obj \
|
2000-10-26 19:53:08 +02:00
|
|
|
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 \
|
2001-05-24 18:36:02 +02:00
|
|
|
gvaluearray.obj \
|
|
|
|
gvaluetypes.obj \
|
|
|
|
gvaluetransform.obj
|
2000-10-06 23:32:59 +02:00
|
|
|
|
2004-10-29 22:58:04 +02:00
|
|
|
gobjectalias.h: gobject.symbols
|
|
|
|
perl makegobjectalias.pl < gobject.symbols > gobjectalias.h
|
|
|
|
|
2005-03-18 18:44:51 +01:00
|
|
|
gobjectaliasdef.c: gobject.symbols
|
|
|
|
perl makegobjectalias.pl -def < gobject.symbols > gobjectaliasdef.c
|
|
|
|
|
2004-10-29 22:58:04 +02:00
|
|
|
gobject.def: gobject.symbols
|
|
|
|
echo EXPORTS > gobject.def
|
2006-09-17 18:17:44 +02:00
|
|
|
cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES \
|
|
|
|
-DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
|
|
|
|
-DG_GNUC_PRINTF=;G_GNUC_PRINTF gobject.symbols >> gobject.def
|
2004-10-29 22:58:04 +02:00
|
|
|
|
|
|
|
gobject.res : gobject.rc
|
|
|
|
rc -DBUILDNUMBER=0 -r -fo gobject.res gobject.rc
|
|
|
|
|
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
|
|
|
|
|
2004-10-29 22:58:04 +02:00
|
|
|
libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll : $(gobject_OBJECTS) gobject.def gobject.res
|
|
|
|
$(CC) $(CFLAGS) -Fm -LD -Fe$@ $(gobject_OBJECTS) gobject.res \
|
2006-09-17 18:17:44 +02:00
|
|
|
..\glib\glib-2.0.lib $(LDFLAGS) /implib:gobject-2.0.lib /def:gobject.def || del $@
|
2000-10-06 23:32:59 +02:00
|
|
|
|
More Win32 automake macros. For .def files: GLIB_DEF, GMODULE_DEF,
2001-09-25 Tor Lillqvist <tml@iki.fi>
* configure.in: More Win32 automake macros. For .def files:
GLIB_DEF, GMODULE_DEF, GOBJECT_DEF and GTHREAD_DEF. For .exp
files: TESTGMODULE_EXP (for programs that need to export symbols,
just testgmodule here). A new conditional, MS_LIB_AVAILABLE to
test whether the Microsoft librarian ("ar") is available to build
MS import libraries.
* glib/Makefile.am
* gmodule/Makefile.am: Use above. New rule to build MS import
library.
* glib/makefile.msc.in
* tests/makefile.msc.in
* tests/makefile.mingw.in: Use same DLL and import library names as
libtool.
gmodule:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* makefile.mingw.in: Fix missing end @ in @LT_CURRENT@.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gobject:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gthread:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
2001-09-25 08:03:23 +02:00
|
|
|
gobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib : $(gobject_OBJECTS)
|
|
|
|
lib /out:$@ $(gobject_OBJECTS)
|
2000-10-27 23:35:45 +02:00
|
|
|
|
2001-05-24 18:36:02 +02:00
|
|
|
# link glib's static version to avoid installing
|
More Win32 automake macros. For .def files: GLIB_DEF, GMODULE_DEF,
2001-09-25 Tor Lillqvist <tml@iki.fi>
* configure.in: More Win32 automake macros. For .def files:
GLIB_DEF, GMODULE_DEF, GOBJECT_DEF and GTHREAD_DEF. For .exp
files: TESTGMODULE_EXP (for programs that need to export symbols,
just testgmodule here). A new conditional, MS_LIB_AVAILABLE to
test whether the Microsoft librarian ("ar") is available to build
MS import libraries.
* glib/Makefile.am
* gmodule/Makefile.am: Use above. New rule to build MS import
library.
* glib/makefile.msc.in
* tests/makefile.msc.in
* tests/makefile.mingw.in: Use same DLL and import library names as
libtool.
gmodule:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* makefile.mingw.in: Fix missing end @ in @LT_CURRENT@.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gobject:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gthread:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
2001-09-25 08:03:23 +02:00
|
|
|
glib-genmarshal.exe : glib-genmarshal.c gmarshal.strings
|
2001-07-20 18:58:00 +02:00
|
|
|
$(CC) -Fe$@ $(CFLAGS) -UGOBJECT_COMPILATION glib-genmarshal.c \
|
2008-02-03 23:41:06 +01:00
|
|
|
..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib user32.lib advapi32.lib ole32.lib shell32.lib $(INTL_LIBS)
|
2001-08-04 17:49:55 +02:00
|
|
|
|
2002-11-21 04:25:35 +01:00
|
|
|
gobject-query.exe : gobject-query.c libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll
|
2001-08-04 17:49:55 +02:00
|
|
|
$(CC) -Fe$@ $(CFLAGS) -UGOBJECT_COMPILATION gobject-query.c \
|
2008-02-03 23:41:06 +01:00
|
|
|
..\glib\glib-2.0.lib gobject-2.0.lib user32.lib advapi32.lib $(INTL_LIBS)
|
2001-08-04 17:49:55 +02:00
|
|
|
|
|
|
|
gmarshal.strings : gmarshal.list
|
|
|
|
perl marshal-genstrings.pl > gmarshal.strings
|
2002-02-10 17:39:24 +01:00
|
|
|
|
|
|
|
.c.exe :
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
2002-11-21 04:25:35 +01:00
|
|
|
$(CC) $(CFLAGS) -Fe$@ $< gobject-2.0.lib ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib $(LDFLAGS) user32.lib /subsystem:console
|