mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
2410616200
2001-11-21 Tor Lillqvist <tml@iki.fi> * glib/makefile.mingw.in (DEFINES): Set G_LOG_DOMAIN as in Makefile.am. gobject: 2001-11-22 Tor Lillqvist <tml@iki.fi> * makefile.mingw.in (DEFINES): Set G_LOG_DOMAIN as in Makefile.am. * gparamspecs.h (GOBJECT_VAR): Can't use GLIB_VAR here, as that makes sense only when building libglib. GOBJECT_VAR is similar for libgobject. * gobject.def: Add g_param_spec_types, remove g_type_fundamental_branch_last.
80 lines
3.0 KiB
Plaintext
80 lines
3.0 KiB
Plaintext
## Makefile for building the gobject DLL with gcc for mingw. The build
|
|
## uses tools running on cygwin, however.
|
|
|
|
## Use: make -f makefile.mingw
|
|
|
|
TOP = ../..
|
|
|
|
include ../build/win32/make.mingw
|
|
|
|
################################################################
|
|
|
|
# Nothing much configurable below
|
|
|
|
INCLUDES = -I .. -I ../glib -I .
|
|
DEFINES = -DHAVE_CONFIG_H -DGOBJECT_COMPILATION -DG_LOG_DOMAIN=\"GLib-GObject\" -DG_ENABLE_DEBUG
|
|
|
|
srcdir=.
|
|
|
|
all : \
|
|
libgobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.a \
|
|
testgruntime.exe \
|
|
glib-genmarshal.exe
|
|
|
|
gobject_OBJECTS = \
|
|
gboxed.o \
|
|
gclosure.o \
|
|
genums.o \
|
|
gobject.o \
|
|
gparam.o \
|
|
gparamspecs.o \
|
|
gsignal.o \
|
|
gtype.o \
|
|
gtypemodule.o \
|
|
gtypeplugin.o \
|
|
gvalue.o \
|
|
gvaluearray.o \
|
|
gvaluetransform.o \
|
|
gvaluetypes.o
|
|
|
|
libgobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.a : $(srcdir)/stamp-gmarshal.h gmarshal.c $(gobject_OBJECTS) gobject.def
|
|
$(BUILD_DLL) gobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@ @LT_CURRENT@:@LT_REVISION@:@LT_AGE@ gobject.def $(gobject_OBJECTS) -L ../glib -lglib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
glib-genmarshal.exe : glib-genmarshal.c
|
|
$(CC) -o $@ $(CFLAGS) -UGOBJECT_COMPILATION $< -L ../glib -lglib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
|
|
|
|
testgruntime.exe: libgobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@.a testgruntime.o
|
|
$(CC) $(CFLAGS) -o testgruntime.exe testgruntime.o -L ../glib -lglib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@ -L . -lgobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@ $(LFLAGS)
|
|
|
|
# Copied from Makefile.am:
|
|
# initial creation of the real stamp-* files
|
|
gmarshal.h: # never add deps here
|
|
test -f "$(srcdir)/$@" || touch $(srcdir)/$@
|
|
# normal autogeneration rules
|
|
# all autogenerated files need to be generated in the srcdir,
|
|
# so old versions get remade and are not confused with newer
|
|
# versions in the build dir. thus a development setup requires
|
|
# srcdir to be writable, passing --disable-rebuilds to
|
|
# ../configure will supress all autogeneration rules.
|
|
$(srcdir)/stamp-gmarshal.h: @REBUILD@ gmarshal.list gmarshal.h glib-genmarshal.exe
|
|
echo "#ifndef __G_MARSHAL_H__" > xgen-gmh \
|
|
&& echo "#define __G_MARSHAL_H__" >> xgen-gmh \
|
|
&& PATH=../glib:$$PATH ./glib-genmarshal --nostdinc --prefix=g_cclosure_marshal $(srcdir)/gmarshal.list --header >> xgen-gmh \
|
|
&& echo "#endif /* __G_MARSHAL_H__ */" >> xgen-gmh \
|
|
&& (cmp -s xgen-gmh $(srcdir)/gmarshal.h || cp xgen-gmh $(srcdir)/gmarshal.h) \
|
|
&& rm -f xgen-gmh xgen-gmh~ \
|
|
&& echo timestamp > $@
|
|
$(srcdir)/gmarshal.c: @REBUILD@ $(srcdir)/stamp-gmarshal.h
|
|
PATH=../glib:$$PATH ./glib-genmarshal --nostdinc --prefix=g_cclosure_marshal $(srcdir)/gmarshal.list --body >> xgen-gmc \
|
|
&& cp xgen-gmc $(srcdir)/gmarshal.c \
|
|
&& rm -f xgen-gmc xgen-gmc~
|
|
$(srcdir)/gmarshal.strings: @REBUILD@ $(srcdir)/gmarshal.list
|
|
grep '^[A-Z]' $(srcdir)/gmarshal.list \
|
|
| sed -e 's/^/"g_cclosure_marshal_/' -e 's/:/__/' -e 's/,/_/g' -e 's/$$/",/' > xgen-gms \
|
|
&& cp xgen-gms $(srcdir)/gmarshal.strings \
|
|
&& rm -f xgen-gms xgen-gms~
|
|
glib-genmarshal.o: gmarshal.strings
|
|
|
|
clean::
|
|
-rm gmarshal.h gmarshal.c stamp-gmarshal.h
|