Make some changes to the way that GMainContext works:
[platform/upstream/glib.git] / gobject / makefile.msc.in
1 ## Makefile for building the gobject dll with Microsoft C
2 ## Use: nmake -f makefile.msc install
3
4 TOP = ..\..
5
6 !INCLUDE $(TOP)\build\win32\make.msc
7
8 # Possibly override GLib version in build\win32\object.defs
9 GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
10
11 ################################################################
12
13 # Nothing much configurable below
14
15 INCLUDES = -I .. -I .
16 DEFINES = -DHAVE_CONFIG_H -DGOBJECT_COMPILATION -DG_LOG_DOMAIN=g_log_domain_gruntime -DG_ENABLE_DEBUG
17
18 all :                           \
19         glib-genmarshal.exe \
20         gmarshal.h \
21         gmarshal.c \
22         gobject-$(GLIB_VER).dll \
23
24 gobject_OBJECTS =               \
25         gboxed.obj              \
26         gbsearcharray.obj       \
27         gclosure.obj            \
28         genums.obj              \
29         gobject.obj             \
30         gparam.obj              \
31         gparamspecs.obj         \
32         gsignal.obj             \
33         gtype.obj               \
34         gtypemodule.obj         \
35         gtypeplugin.obj         \
36         gvalue.obj              \
37         gvaluearray.obj         \
38         gvaluetypes.obj \
39         gvaluetransform.obj
40
41 gmarshal.h : gmarshal.list glib-genmarshal.exe
42         echo #ifndef __G_MARSHAL_H__ > xgen-gmh
43         echo #define __G_MARSHAL_H__ >> xgen-gmh
44         glib-genmarshal --nostdinc --prefix=g_cclosure_marshal gmarshal.list --header >> xgen-gmh
45         echo #endif /* __G_MARSHAL_H__ */ >> xgen-gmh
46         copy xgen-gmh gmarshal.h
47
48 gmarshal.c: gmarshal.list gmarshal.h glib-genmarshal.exe
49         glib-genmarshal --nostdinc --prefix=g_cclosure_marshal gmarshal.list --body > gmarshal.c
50
51 makefile.msc: makefile.msc.in
52         $(SED) -e s,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@, \
53                -e s,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@, <makefile.msc.in >$@
54
55 gobject-$(GLIB_VER).dll : $(gobject_OBJECTS) gobject.def
56         $(CC) $(CFLAGS) -LD -Fegobject-$(GLIB_VER).dll $(gobject_OBJECTS) ..\glib-$(GLIB_VER).lib $(LDFLAGS) /def:gobject.def
57
58 # link glib's static version to avoid installing 
59 glib-genmarshal.exe : glib-genmarshal.c ..\glib-$(GLIB_VER)s.lib
60         $(CC) -Fe$@ $(CFLAGS) -UGOBJECT_COMPILATION glib-genmarshal.c ..\glib-$(GLIB_VER)s.lib user32.lib advapi32.lib $(INTL_LIBS)