Revamp to be like makefile.mingw.in, make the MSVC build actually work
[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_gobject
17
18 all : \
19         gobject-$(GLIB_VER).dll
20
21 gobject_OBJECTS = \
22         gvalue.obj \
23         gvaluetypes.obj \
24         gparam.obj \
25         gparamspecs.obj \
26         genums.obj \
27         gobject.obj \
28         gtype.obj
29
30 makefile.msc: makefile.msc.in
31         $(SED) -e s,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@, \
32                -e s,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@, <makefile.msc.in >$@
33
34 gobject-$(GLIB_VER).dll : $(gobject_OBJECTS) gobject.def
35         $(CC) $(CFLAGS) -LD -Fegobject-$(GLIB_VER).dll $(gobject_OBJECTS) ..\glib-$(GLIB_VER).lib $(LDFLAGS) /def:gobject.def