add missed (empty) file
[platform/upstream/glib.git] / makefile.msc.in
1 ## Makefile for building the GLib dlls with Microsoft C
2 ## Use: nmake -f makefile.msc
3
4 TOP = ..
5
6 !INCLUDE build\win32\make.msc
7
8 # Possibly override GLib version in build\win32\module.defs
9 GLIB_VER = @GLIB_MAJOR_VERSION@.@GLIB_MINOR_VERSION@
10
11 ################################################################
12
13 # Nothing much configurable below
14
15 INCLUDES = -I .
16 DEFINES = -DHAVE_CONFIG_H -DGLIB_COMPILATION -DG_LOG_DOMAIN=g_log_domain_glib -DG_ENABLE_DEBUG
17 DEPCFLAGS = $(INTL_CFLAGS) $(LIBICONV_CFLAGS)
18
19 DLLS_TO_BUILD =                 \
20         glib-$(GLIB_VER).dll    \
21         sub-gmodule             \
22         sub-gthread             \
23         sub-gobject
24
25 all :                           \
26         config.h                \
27         glibconfig.h            \
28         $(DLLS_TO_BUILD)        \
29         gspawn-win32-helper.exe \
30         testglib.exe            \
31         testgdate.exe           \
32         testgdateparser.exe
33
34 glib_OBJECTS =                  \
35         garray.obj              \
36         gasyncqueue.obj         \
37         gbacktrace.obj          \
38         gcache.obj              \
39         gcompletion.obj         \
40         gconvert.obj            \
41         gdataset.obj            \
42         gdate.obj               \
43         gerror.obj              \
44         gfileutils.obj          \
45         ghash.obj               \
46         ghook.obj               \
47         giochannel.obj          \
48         giowin32.obj            \
49         glist.obj               \
50         gmain.obj               \
51         gmarkup.obj             \
52         gmem.obj                \
53         gmessages.obj           \
54         gnode.obj               \
55         gprimes.obj             \
56         gqsort.obj              \
57         gqueue.obj              \
58         grand.obj               \
59         grel.obj                \
60         gscanner.obj            \
61         gshell.obj              \
62         gslist.obj              \
63         gspawn-win32.obj        \
64         gstrfuncs.obj           \
65         gstring.obj             \
66         gthread.obj             \
67         gthreadpool.obj         \
68         gtimer.obj              \
69         gtree.obj               \
70         gunibreak.obj           \
71         gunidecomp.obj          \
72         guniprop.obj            \
73         gutf8.obj               \
74         gutils.obj              \
75         gwin32.obj
76
77 glibconfig.h: glibconfig.h.win32
78         copy glibconfig.h.win32 glibconfig.h
79
80 config.h: config.h.win32
81         copy config.h.win32 config.h
82
83 makefile.msc: makefile.msc.in
84         $(SED) -e s,@GLIB[_]MAJOR_VERSION@,@GLIB_MAJOR_VERSION@, \
85                -e s,@GLIB[_]MINOR_VERSION@,@GLIB_MINOR_VERSION@, <makefile.msc.in >$@
86
87 ################ glib
88
89 glib-$(GLIB_VER).dll : $(glib_OBJECTS) glib.def
90         $(CC) $(CFLAGS) -LD -Feglib-$(GLIB_VER).dll $(glib_OBJECTS) $(INTL_LIBS) $(LIBICONV_LIBS) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:glib.def
91
92 gspawn-win32-helper.exe : gspawn-win32-helper.c glib-$(GLIB_VER).dll
93         $(CC) $(CFLAGS) -Fe$@ -DG_LOG_DOMAIN=\"gspawn-win32-helper\" gspawn-win32-helper.c glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:windows user32.lib
94
95 ################ subdirectories
96
97 sub-gmodule :
98         cd gmodule
99         -$(MAKE) -f makefile.msc all
100         cd ..
101
102 sub-gthread :
103         cd gthread
104         -$(MAKE) -f makefile.msc all
105         cd ..
106
107 sub-gobject :
108         cd gobject
109         -$(MAKE) -f makefile.msc all
110         cd ..
111
112 ################ test progs
113
114 testglib.obj : testglib.c
115         $(CC) -c $(CFLAGS) -DG_LOG_DOMAIN=\"testglib\" testglib.c
116
117 testglib.exe : glib-$(GLIB_VER).dll testglib.obj
118         $(CC) $(CFLAGS) -Fetestglib.exe testglib.obj glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
119
120 testgdate.obj : testgdate.c
121         $(CC) -c $(CFLAGS) -DG_LOG_DOMAIN=\"testgdate\" testgdate.c
122
123 testgdate.exe : glib-$(GLIB_VER).dll testgdate.obj
124         $(CC) $(CFLAGS) -Fetestgdate.exe testgdate.obj glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
125
126 testgdateparser.obj : testgdateparser.c
127         $(CC) -c $(CFLAGS) -DG_LOG_DOMAIN=\"testgdateparser\" testgdateparser.c
128
129 testgdateparser.exe : glib-$(GLIB_VER).dll testgdateparser.obj
130         $(CC) $(CFLAGS) -Fetestgdateparser.exe testgdateparser.obj glib-$(GLIB_VER).lib $(LDFLAGS) /subsystem:console
131
132 ################ other stuff
133
134 clean::
135         del config.h
136         del glibconfig.h
137         cd gmodule
138         $(MAKE) -f makefile.msc clean
139         cd ..
140         cd gthread
141         $(MAKE) -f makefile.msc clean
142         cd ..
143         cd gobject
144         $(MAKE) -f makefile.msc clean
145         cd ..