Update German translation
[glib.git] / gobject / makefile.msc.in
blob3f5af9bff2e43db7091b19612d802abd742f20da
1 ## Makefile for building the gobject dll with Microsoft C
2 ## Use: nmake -f makefile.msc install
4 TOP = ..\..
6 !INCLUDE ..\build\win32\make.msc
8 ################################################################
10 INCLUDES = -FImsvc_recommended_pragmas.h -I .. -I . -I ..\glib
11 DEFINES = -DHAVE_CONFIG_H -DGOBJECT_COMPILATION -DG_LOG_DOMAIN=\"GLib-GObject\" \
12                 -DG_ENABLE_DEBUG
13 #               -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS
14 #               -DG_DISABLE_CAST_CHECKS
16 all :                           \
17         glib-genmarshal.exe     \
18         gmarshal.h              \
19         gmarshal.c              \
20         gmarshal.strings \
21         gobject-query.exe \
22         libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll       \
23         gobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib \
24         testgobject.exe
26 gobject_OBJECTS =               \
27         gboxed.obj              \
28         gclosure.obj            \
29         genums.obj              \
30         gobject.obj             \
31         gparam.obj              \
32         gparamspecs.obj         \
33         gsignal.obj             \
34         gsourceclosure.obj      \
35         gtype.obj               \
36         gtypemodule.obj         \
37         gtypeplugin.obj         \
38         gvalue.obj              \
39         gvaluearray.obj         \
40         gvaluetypes.obj \
41         gvaluetransform.obj
43 gobject.def: gobject.symbols
44         echo EXPORTS > gobject.def
45         cl /EP -DINCLUDE_VARIABLES -DG_OS_WIN32 -DALL_FILES \
46                 -DG_GNUC_MALLOC= -DG_GNUC_CONST= -DG_GNUC_NULL_TERMINATED= -DG_GNUC_NORETURN= \
47                 -DG_GNUC_PRINTF=;G_GNUC_PRINTF gobject.symbols >> gobject.def
49 gobject.res : gobject.rc
50         rc -DBUILDNUMBER=0 -r -fo gobject.res gobject.rc
52 gmarshal.h : gmarshal.list glib-genmarshal.exe
53         echo #ifndef __G_MARSHAL_H__ > xgen-gmh
54         echo #define __G_MARSHAL_H__ >> xgen-gmh
55         glib-genmarshal --nostdinc --prefix=g_cclosure_marshal gmarshal.list --header >> xgen-gmh
56         echo #endif /* __G_MARSHAL_H__ */ >> xgen-gmh
57         copy xgen-gmh gmarshal.h
59 gmarshal.c: gmarshal.list gmarshal.h glib-genmarshal.exe
60         glib-genmarshal --nostdinc --prefix=g_cclosure_marshal gmarshal.list --body > gmarshal.c
62 libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll : $(gobject_OBJECTS) gobject.def gobject.res
63         $(CC) $(CFLAGS) -Fm -LD -Fe$@ $(gobject_OBJECTS) gobject.res \
64         ..\glib\glib-2.0.lib $(LDFLAGS) /implib:gobject-2.0.lib /def:gobject.def || del $@
66 gobject-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib : $(gobject_OBJECTS) 
67         lib /out:$@ $(gobject_OBJECTS)
69 # link glib's static version to avoid installing 
70 glib-genmarshal.exe : glib-genmarshal.c gmarshal.strings
71         $(CC) -Fe$@ $(CFLAGS) -UGOBJECT_COMPILATION glib-genmarshal.c \
72         ..\glib\glib-@GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@s.lib user32.lib advapi32.lib ole32.lib shell32.lib $(INTL_LIBS) 
74 gobject-query.exe : gobject-query.c libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll
75         $(CC) -Fe$@ $(CFLAGS) -UGOBJECT_COMPILATION gobject-query.c \
76         ..\glib\glib-2.0.lib gobject-2.0.lib user32.lib advapi32.lib $(INTL_LIBS)
78 gmarshal.strings : gmarshal.list
79         perl marshal-genstrings.pl > gmarshal.strings
81 .c.exe :
82         $(CC) $(CFLAGS) -c $<
83         $(CC) $(CFLAGS) -Fe$@ $< gobject-2.0.lib ..\glib\glib-2.0.lib ..\gmodule\gmodule-2.0.lib $(LDFLAGS) user32.lib /subsystem:console