1 ## Makefile for building the gobject dll with Microsoft C
2 ## Use: nmake -f makefile.msc install
6 !INCLUDE $(TOP)\build\win32\make.msc
8 # Possibly override GLib version in build\win32\object.defs
9 GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
11 ################################################################
13 # Nothing much configurable below
16 DEFINES = -DHAVE_CONFIG_H -DGOBJECT_COMPILATION -DG_LOG_DOMAIN=g_log_domain_gruntime -DG_ENABLE_DEBUG
22 gobject-$(GLIB_VER).dll \
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
48 gmarshal.c: gmarshal.list gmarshal.h glib-genmarshal.exe
49 glib-genmarshal --nostdinc --prefix=g_cclosure_marshal gmarshal.list --body > gmarshal.c
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 >$@
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
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)