Fixed #2984304. Fix compilation errors reported by gcc 4.5.0.
[dirac-research.git] / win / Makefile
blob37c7af4cafaf5d28c3eb046f0a80ca8c9b9659f8
2 # Makefile for Microsoft Visual C++
5 CPP = cl
6 CPPFLAGS = /Ox /EHsc /I.. /nologo
8 all : libraries encoder decoder conversion instrumentation picheader
10 libraries : DiracCommon.lib DiracMotionEst.lib DiracDecoder.lib DiracEncoder.lib \
11 DiracInstrument.lib
13 encoder : DiracEncoder.exe
15 decoder : DiracDecoder.exe
17 conversion : BMPtoRGB.exe RGBtoBMP.exe RGBtoUYVY.exe RGBtoYUV411.exe \
18 RGBtoYUV420.exe RGBtoYUV422.exe RGBtoYUV444.exe UYVYtoRGB.exe \
19 YUV411toRGB.exe YUV420toRGB.exe YUV422toRGB.exe YUV444toRGB.exe
21 instrumentation : DiracInstrumentation.exe
23 picheader : DiracMakeHeader.exe
25 clean :
26 -del *.obj
27 -del *.lib
28 -del *.exe
30 DiracCommon.lib : band_codec.obj bit_manager.obj common.obj frame.obj \
31 golomb.obj frame_buffer.obj mot_comp.obj motion.obj mv_codec.obj \
32 pic_io.obj upconvert.obj wavelet_utils.obj cmd_line.obj \
33 dirac_assertions.obj dirac_cppparser.obj dirac_parser.obj
34 lib /out:$@ /nologo $**
36 band_codec.obj : ..\libdirac_common\band_codec.cpp
37 $(CPP) $(CPPFLAGS) /c $**
39 bit_manager.obj : ..\libdirac_common\bit_manager.cpp
40 $(CPP) $(CPPFLAGS) /c $**
42 common.obj : ..\libdirac_common\common.cpp
43 $(CPP) $(CPPFLAGS) /c $**
45 frame.obj : ..\libdirac_common\frame.cpp
46 $(CPP) $(CPPFLAGS) /c $**
48 golomb.obj : ..\libdirac_common\golomb.cpp
49 $(CPP) $(CPPFLAGS) /c $**
51 frame_buffer.obj : ..\libdirac_common\frame_buffer.cpp
52 $(CPP) $(CPPFLAGS) /c $**
54 mot_comp.obj : ..\libdirac_common\mot_comp.cpp
55 $(CPP) $(CPPFLAGS) /c $**
57 motion.obj : ..\libdirac_common\motion.cpp
58 $(CPP) $(CPPFLAGS) /c $**
60 mv_codec.obj : ..\libdirac_common\mv_codec.cpp
61 $(CPP) $(CPPFLAGS) /c $**
63 pic_io.obj : ..\libdirac_common\pic_io.cpp
64 $(CPP) $(CPPFLAGS) /c $**
66 upconvert.obj : ..\libdirac_common\upconvert.cpp
67 $(CPP) $(CPPFLAGS) /c $**
69 wavelet_utils.obj : ..\libdirac_common\wavelet_utils.cpp
70 $(CPP) $(CPPFLAGS) /c $**
72 cmd_line.obj : ..\libdirac_common\cmd_line.cpp
73 $(CPP) $(CPPFLAGS) /c $**
75 dirac_assertions.obj : ..\libdirac_common\dirac_assertions.cpp
76 $(CPP) $(CPPFLAGS) /c $**
78 dirac_cppparser.obj : ..\libdirac_decoder\dirac_cppparser.cpp
79 $(CPP) $(CPPFLAGS) /c $**
81 dirac_parser.obj : ..\libdirac_decoder\dirac_parser.cpp
82 $(CPP) $(CPPFLAGS) /c $**
84 DiracMotionEst.lib : block_match.obj downconvert.obj me_mode_decn.obj \
85 me_subpel.obj me_utils.obj motion_estimate.obj pixel_match.obj
86 lib /out:$@ /nologo $**
88 block_match.obj : ..\libdirac_motionest\block_match.cpp
89 $(CPP) $(CPPFLAGS) /c $**
91 downconvert.obj : ..\libdirac_motionest\downconvert.cpp
92 $(CPP) $(CPPFLAGS) /c $**
94 me_mode_decn.obj : ..\libdirac_motionest\me_mode_decn.cpp
95 $(CPP) $(CPPFLAGS) /c $**
97 me_subpel.obj : ..\libdirac_motionest\me_subpel.cpp
98 $(CPP) $(CPPFLAGS) /c $**
100 me_utils.obj : ..\libdirac_motionest\me_utils.cpp
101 $(CPP) $(CPPFLAGS) /c $**
103 motion_estimate.obj : ..\libdirac_motionest\motion_estimate.cpp
104 $(CPP) $(CPPFLAGS) /c $**
106 pixel_match.obj : ..\libdirac_motionest\pixel_match.cpp
107 $(CPP) $(CPPFLAGS) /c $**
109 DiracDecoder.lib : comp_decompress.obj frame_decompress.obj seq_decompress.obj
110 lib /out:$@ /nologo $**
112 comp_decompress.obj : ..\libdirac_decoder\comp_decompress.cpp
113 $(CPP) $(CPPFLAGS) /c $**
115 frame_decompress.obj : ..\libdirac_decoder\frame_decompress.cpp
116 $(CPP) $(CPPFLAGS) /c $**
118 seq_decompress.obj : ..\libdirac_decoder\seq_decompress.cpp
119 $(CPP) $(CPPFLAGS) /c $**
121 DiracEncoder.lib : comp_compress.obj frame_compress.obj seq_compress.obj \
122 quality_monitor.obj
123 lib /out:$@ /nologo $**
125 comp_compress.obj : ..\libdirac_encoder\comp_compress.cpp
126 $(CPP) $(CPPFLAGS) /c $**
128 frame_compress.obj : ..\libdirac_encoder\frame_compress.cpp
129 $(CPP) $(CPPFLAGS) /c $**
131 seq_compress.obj : ..\libdirac_encoder\seq_compress.cpp
132 $(CPP) $(CPPFLAGS) /c $**
134 quality_monitor.obj : ..\libdirac_encoder\quality_monitor.cpp
135 $(CPP) $(CPPFLAGS) /c $**
137 encmain.obj : ..\encoder\encmain.cpp
138 $(CPP) $(CPPFLAGS) /c $**
140 decmain.obj : ..\decoder\decmain.cpp
141 $(CPP) $(CPPFLAGS) /c $**
143 DiracEncoder.exe : encmain.obj DiracEncoder.lib DiracMotionEst.lib DiracCommon.lib
144 link /out:DiracEncoder.exe /nologo $**
146 DiracDecoder.exe : decmain.obj DiracDecoder.lib DiracCommon.lib
147 link /out:DiracDecoder.exe /nologo $**
150 bitmap.obj : ..\util\conversion\common\bitmap.cpp
151 $(CPP) $(CPPFLAGS) /c $**
153 setstdiomode.obj : ..\util\conversion\common\setstdiomode.cpp
154 $(CPP) $(CPPFLAGS) /c $**
157 BMPtoRGB.obj : ..\util\conversion\BMPtoRGB.cpp
158 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
160 RGBtoBMP.obj : ..\util\conversion\RGBtoBMP.cpp
161 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
163 RGBtoUYVY.obj : ..\util\conversion\RGBtoUYVY.cpp
164 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
166 RGBtoYUV411.obj : ..\util\conversion\RGBtoYUV411.cpp
167 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
169 RGBtoYUV420.obj : ..\util\conversion\RGBtoYUV420.cpp
170 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
172 RGBtoYUV422.obj : ..\util\conversion\RGBtoYUV422.cpp
173 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
175 RGBtoYUV444.obj : ..\util\conversion\RGBtoYUV444.cpp
176 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
178 UYVYtoRGB.obj : ..\util\conversion\UYVYtoRGB.cpp
179 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
181 YUV411toRGB.obj : ..\util\conversion\YUV411toRGB.cpp
182 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
184 YUV420toRGB.obj : ..\util\conversion\YUV420toRGB.cpp
185 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
187 YUV422toRGB.obj : ..\util\conversion\YUV422toRGB.cpp
188 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
190 YUV444toRGB.obj : ..\util\conversion\YUV444toRGB.cpp
191 $(CPP) $(CPPFLAGS) /I ..\util\conversion\common /c /c $**
194 BMPtoRGB.exe : BMPtoRGB.obj setstdiomode.obj bitmap.obj
195 link /out:BMPtoRGB.exe /nologo $**
197 RGBtoBMP.exe : RGBtoBMP.obj setstdiomode.obj bitmap.obj
198 link /out:RGBtoBMP.exe /nologo $**
200 RGBtoUYVY.exe : RGBtoUYVY.obj setstdiomode.obj bitmap.obj
201 link /out:RGBtoUYVY.exe /nologo $**
203 RGBtoYUV411.exe : RGBtoYUV411.obj setstdiomode.obj bitmap.obj
204 link /out:RGBtoYUV411.exe /nologo $**
206 RGBtoYUV420.exe : RGBtoYUV420.obj setstdiomode.obj bitmap.obj
207 link /out:RGBtoYUV420.exe /nologo $**
209 RGBtoYUV422.exe : RGBtoYUV422.obj setstdiomode.obj bitmap.obj
210 link /out:RGBtoYUV422.exe /nologo $**
212 RGBtoYUV444.exe : RGBtoYUV444.obj setstdiomode.obj bitmap.obj
213 link /out:RGBtoYUV444.exe /nologo $**
215 UYVYtoRGB.exe : UYVYtoRGB.obj setstdiomode.obj bitmap.obj
216 link /out:UYVYtoRGB.exe /nologo $**
218 YUV411toRGB.exe : YUV411toRGB.obj setstdiomode.obj bitmap.obj
219 link /out:YUV411toRGB.exe /nologo $**
221 YUV420toRGB.exe : YUV420toRGB.obj setstdiomode.obj bitmap.obj
222 link /out:YUV420toRGB.exe /nologo $**
224 YUV422toRGB.exe : YUV422toRGB.obj setstdiomode.obj bitmap.obj
225 link /out:YUV422toRGB.exe /nologo $**
227 YUV444toRGB.exe : YUV444toRGB.obj setstdiomode.obj bitmap.obj
228 link /out:YUV444toRGB.exe /nologo $**
230 DiracInstrument.lib : overlay.obj overlay_symbols.obj draw_overlay.obj \
231 motion_arrows.obj motion_colour.obj motion_colour_arrows.obj \
232 pred_mode.obj sad.obj split_mode.obj
233 lib /out:$@ /nologo $**
235 overlay.obj : ..\util\instrumentation\libdirac_instrument\overlay.cpp
236 $(CPP) $(CPPFLAGS) /c $**
238 overlay_symbols.obj : ..\util\instrumentation\libdirac_instrument\overlay_symbols.cpp
239 $(CPP) $(CPPFLAGS) /c $**
241 draw_overlay.obj : ..\util\instrumentation\libdirac_instrument\draw_overlay.cpp
242 $(CPP) $(CPPFLAGS) /c $**
244 motion_arrows.obj : ..\util\instrumentation\libdirac_instrument\motion_arrows.cpp
245 $(CPP) $(CPPFLAGS) /c $**
247 motion_colour.obj : ..\util\instrumentation\libdirac_instrument\motion_colour.cpp
248 $(CPP) $(CPPFLAGS) /c $**
250 motion_colour_arrows.obj : ..\util\instrumentation\libdirac_instrument\motion_colour_arrows.cpp
251 $(CPP) $(CPPFLAGS) /c $**
253 pred_mode.obj : ..\util\instrumentation\libdirac_instrument\pred_mode.cpp
254 $(CPP) $(CPPFLAGS) /c $**
256 sad.obj : ..\util\instrumentation\libdirac_instrument\sad.cpp
257 $(CPP) $(CPPFLAGS) /c $**
259 split_mode.obj : ..\util\instrumentation\libdirac_instrument\split_mode.cpp
260 $(CPP) $(CPPFLAGS) /c $**
262 process_sequence.obj : ..\util\instrumentation\process_sequence.cpp
263 $(CPP) $(CPPFLAGS) /c $**
265 instrmain.obj : ..\util\instrumentation\instrmain.cpp
266 $(CPP) $(CPPFLAGS) /c $**
268 DiracInstrumentation.exe : process_sequence.obj instrmain.obj \
269 DiracInstrument.lib DiracMotionEst.lib DiracCommon.lib
270 link /out:DiracInstrumentation.exe /nologo $**
272 headmain.obj : ..\picheader\headmain.cpp
273 $(CPP) $(CPPFLAGS) /c $**
275 DiracMakeHeader.exe : headmain.obj DiracCommon.lib
276 link /out:DiracMakeHeader.exe /nologo $**