mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +01:00
8d45831997
2002-02-10 Hans Breuer <hans@breuer.org> * gvaluetransform.c : msvc 5.0 can't cast from uint64 to double. Disable respective transform_func than. * makefile.msc.in : build test programs
81 lines
3.1 KiB
Plaintext
81 lines
3.1 KiB
Plaintext
## Makefile for building the gobject dll with Microsoft C
|
|
## Use: nmake -f makefile.msc install
|
|
|
|
TOP = ..\..
|
|
|
|
!INCLUDE ..\build\win32\make.msc
|
|
|
|
# Possibly override GLib version in build\win32\object.defs
|
|
GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
INCLUDES = -FImsvc_recommended_pragmas.h -I .. -I . -I ..\glib
|
|
DEFINES = -DHAVE_CONFIG_H -DGOBJECT_COMPILATION -DG_LOG_DOMAIN=\"GLib-GObject\" \
|
|
-DG_ENABLE_DEBUG
|
|
# -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS
|
|
# -DG_DISABLE_CAST_CHECKS
|
|
|
|
all : \
|
|
glib-genmarshal.exe \
|
|
gmarshal.h \
|
|
gmarshal.c \
|
|
gmarshal.strings \
|
|
gobject-query.exe \
|
|
libgobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll \
|
|
gobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib \
|
|
testgruntime.exe \
|
|
testoverride.exe
|
|
|
|
gobject_OBJECTS = \
|
|
gboxed.obj \
|
|
gclosure.obj \
|
|
genums.obj \
|
|
gobject.obj \
|
|
gparam.obj \
|
|
gparamspecs.obj \
|
|
gsignal.obj \
|
|
gsourceclosure.obj \
|
|
gtype.obj \
|
|
gtypemodule.obj \
|
|
gtypeplugin.obj \
|
|
gvalue.obj \
|
|
gvaluearray.obj \
|
|
gvaluetypes.obj \
|
|
gvaluetransform.obj
|
|
|
|
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
|
|
|
|
libgobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll : $(gobject_OBJECTS) gobject.def
|
|
$(CC) $(CFLAGS) -Fm -LD -Fe$@ $(gobject_OBJECTS) \
|
|
..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS) /implib:gobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib /def:gobject.def
|
|
|
|
gobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib : $(gobject_OBJECTS)
|
|
lib /out:$@ $(gobject_OBJECTS)
|
|
|
|
# link glib's static version to avoid installing
|
|
glib-genmarshal.exe : glib-genmarshal.c gmarshal.strings
|
|
$(CC) -Fe$@ $(CFLAGS) -UGOBJECT_COMPILATION glib-genmarshal.c \
|
|
..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib user32.lib advapi32.lib $(INTL_LIBS) $(LIBICONV_LIBS)
|
|
|
|
gobject-query.exe : gobject-query.c libgobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
|
|
$(CC) -Fe$@ $(CFLAGS) -UGOBJECT_COMPILATION gobject-query.c \
|
|
..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib gobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib user32.lib advapi32.lib $(INTL_LIBS) $(LIBICONV_LIBS)
|
|
|
|
gmarshal.strings : gmarshal.list
|
|
perl marshal-genstrings.pl > gmarshal.strings
|
|
|
|
.c.exe :
|
|
$(CC) $(CFLAGS) -c $<
|
|
$(CC) $(CFLAGS) -Fe$@ $< gobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\gmodule\gmodule-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib ..\gthread\gthread-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.lib $(LDFLAGS) user32.lib /subsystem:console
|