3322453860e24067e5c33eae97a34acc216ad720
[ffmpeg.git] / libavcodec / Makefile
1 #
2 # libavcodec Makefile
3 # (c) 2000-2005 Fabrice Bellard
4 #
5 include ../config.mak
6
7 CFLAGS+=-I$(SRC_PATH)/libswscale $(AMR_CFLAGS)
8
9 OBJS= bitstream.o \
10       utils.o \
11       allcodecs.o \
12       mpegvideo.o \
13       jrevdct.o \
14       jfdctfst.o \
15       jfdctint.o\
16       mjpeg.o \
17       resample.o \
18       resample2.o \
19       dsputil.o \
20       motion_est.o \
21       imgconvert.o \
22       mpeg12.o \
23       mpegaudiodec.o \
24       simple_idct.o \
25       ratecontrol.o \
26       eval.o \
27       error_resilience.o \
28       fft.o \
29       mdct.o \
30       raw.o \
31       golomb.o \
32       cabac.o\
33       faandct.o \
34       parser.o \
35       vp3dsp.o \
36       h264idct.o \
37       rangecoder.o \
38       pnm.o \
39       h263.o \
40       msmpeg4.o \
41       h263dec.o \
42       opt.o \
43       bitstream_filter.o \
44       audioconvert.o \
45
46
47 HEADERS = avcodec.h opt.h
48
49 OBJS-$(CONFIG_AASC_DECODER)            += aasc.o
50 OBJS-$(CONFIG_AC3_ENCODER)             += ac3enc.o
51 OBJS-$(CONFIG_ALAC_DECODER)            += alac.o
52 OBJS-$(CONFIG_ASV1_DECODER)            += asv1.o
53 OBJS-$(CONFIG_ASV1_ENCODER)            += asv1.o
54 OBJS-$(CONFIG_ASV2_DECODER)            += asv1.o
55 OBJS-$(CONFIG_ASV2_ENCODER)            += asv1.o
56 OBJS-$(CONFIG_AVS_DECODER)             += avs.o
57 OBJS-$(CONFIG_BMP_DECODER)             += bmp.o
58 OBJS-$(CONFIG_CAVS_DECODER)            += cavs.o cavsdsp.o
59 OBJS-$(CONFIG_CINEPAK_DECODER)         += cinepak.o
60 OBJS-$(CONFIG_CLJR_DECODER)            += cljr.o
61 OBJS-$(CONFIG_CLJR_ENCODER)            += cljr.o
62 OBJS-$(CONFIG_COOK_DECODER)            += cook.o
63 OBJS-$(CONFIG_CSCD_DECODER)            += cscd.o lzo.o
64 OBJS-$(CONFIG_CYUV_DECODER)            += cyuv.o
65 OBJS-$(CONFIG_DSICINVIDEO_DECODER)     += dsicinav.o
66 OBJS-$(CONFIG_DSICINAUDIO_DECODER)     += dsicinav.o
67 OBJS-$(CONFIG_DVBSUB_DECODER)          += dvbsubdec.o
68 OBJS-$(CONFIG_DVBSUB_ENCODER)          += dvbsub.o
69 OBJS-$(CONFIG_DVDSUB_DECODER)          += dvdsubdec.o
70 OBJS-$(CONFIG_DVDSUB_ENCODER)          += dvdsubenc.o
71 OBJS-$(CONFIG_DVVIDEO_DECODER)         += dv.o
72 OBJS-$(CONFIG_DVVIDEO_ENCODER)         += dv.o
73 OBJS-$(CONFIG_EIGHTBPS_DECODER)        += 8bps.o
74 OBJS-$(CONFIG_FFV1_DECODER)            += ffv1.o
75 OBJS-$(CONFIG_FFV1_ENCODER)            += ffv1.o
76 OBJS-$(CONFIG_FFVHUFF_DECODER)         += huffyuv.o
77 OBJS-$(CONFIG_FFVHUFF_ENCODER)         += huffyuv.o
78 OBJS-$(CONFIG_FLAC_DECODER)            += flac.o
79 OBJS-$(CONFIG_FLAC_ENCODER)            += flacenc.o
80 OBJS-$(CONFIG_FLASHSV_DECODER)         += flashsv.o
81 OBJS-$(CONFIG_FLIC_DECODER)            += flicvideo.o
82 OBJS-$(CONFIG_FOURXM_DECODER)          += 4xm.o
83 OBJS-$(CONFIG_FRAPS_DECODER)           += fraps.o
84 OBJS-$(CONFIG_GIF_DECODER)             += gifdec.o lzw.o
85 OBJS-$(CONFIG_GIF_ENCODER)             += gif.o
86 OBJS-$(CONFIG_H261_DECODER)            += h261.o
87 OBJS-$(CONFIG_H261_ENCODER)            += h261.o
88 OBJS-$(CONFIG_H264_DECODER)            += h264.o
89 OBJS-$(CONFIG_H264_ENCODER)            += h264enc.o h264dsp.o
90 OBJS-$(CONFIG_HUFFYUV_DECODER)         += huffyuv.o
91 OBJS-$(CONFIG_HUFFYUV_ENCODER)         += huffyuv.o
92 OBJS-$(CONFIG_IDCIN_DECODER)           += idcinvideo.o
93 OBJS-$(CONFIG_IMC_DECODER)             += imc.o
94 OBJS-$(CONFIG_INDEO2_DECODER)          += indeo2.o
95 OBJS-$(CONFIG_INDEO3_DECODER)          += indeo3.o
96 OBJS-$(CONFIG_INTERPLAY_VIDEO_DECODER) += interplayvideo.o
97 OBJS-$(CONFIG_INTERPLAY_DPCM_DECODER)  += dpcm.o
98 OBJS-$(CONFIG_KMVC_DECODER)            += kmvc.o
99 OBJS-$(CONFIG_LOCO_DECODER)            += loco.o
100 OBJS-$(CONFIG_MACE3_DECODER)           += mace.o
101 OBJS-$(CONFIG_MACE6_DECODER)           += mace.o
102 OBJS-$(CONFIG_MMVIDEO_DECODER)         += mmvideo.o
103 OBJS-$(CONFIG_MP2_ENCODER)             += mpegaudio.o
104 OBJS-$(CONFIG_MPC7_DECODER)            += mpc.o
105 OBJS-$(CONFIG_MSRLE_DECODER)           += msrle.o
106 OBJS-$(CONFIG_MSVIDEO1_DECODER)        += msvideo1.o
107 OBJS-$(CONFIG_MSZH_DECODER)            += lcl.o
108 OBJS-$(CONFIG_NUV_DECODER)             += nuv.o rtjpeg.o lzo.o
109 OBJS-$(CONFIG_PNG_DECODER)             += png.o
110 OBJS-$(CONFIG_PNG_ENCODER)             += png.o
111 OBJS-$(CONFIG_QDM2_DECODER)            += qdm2.o
112 OBJS-$(CONFIG_QDRAW_DECODER)           += qdrw.o
113 OBJS-$(CONFIG_QPEG_DECODER)            += qpeg.o
114 OBJS-$(CONFIG_QTRLE_DECODER)           += qtrle.o
115 OBJS-$(CONFIG_RA_144_DECODER)          += ra144.o
116 OBJS-$(CONFIG_RA_288_DECODER)          += ra288.o
117 OBJS-$(CONFIG_ROQ_DECODER)             += roqvideo.o
118 OBJS-$(CONFIG_ROQ_DPCM_DECODER)        += dpcm.o
119 OBJS-$(CONFIG_RPZA_DECODER)            += rpza.o
120 OBJS-$(CONFIG_RV10_DECODER)            += rv10.o
121 OBJS-$(CONFIG_RV10_ENCODER)            += rv10.o
122 OBJS-$(CONFIG_RV20_DECODER)            += rv10.o
123 OBJS-$(CONFIG_RV20_ENCODER)            += rv10.o
124 OBJS-$(CONFIG_SHORTEN_DECODER)         += shorten.o
125 OBJS-$(CONFIG_SMACKAUD_DECODER)        += smacker.o
126 OBJS-$(CONFIG_SMACKER_DECODER)         += smacker.o
127 OBJS-$(CONFIG_SMC_DECODER)             += smc.o
128 OBJS-$(CONFIG_SNOW_DECODER)            += snow.o
129 OBJS-$(CONFIG_SNOW_ENCODER)            += snow.o
130 OBJS-$(CONFIG_SOL_DPCM_DECODER)        += dpcm.o
131 OBJS-$(CONFIG_SONIC_DECODER)           += sonic.o
132 OBJS-$(CONFIG_SONIC_ENCODER)           += sonic.o
133 OBJS-$(CONFIG_SONIC_LS_DECODER)        += sonic.o
134 OBJS-$(CONFIG_SVQ1_DECODER)            += svq1.o
135 OBJS-$(CONFIG_SVQ1_ENCODER)            += svq1.o
136 OBJS-$(CONFIG_SVQ3_DECODER)            += h264.o
137 OBJS-$(CONFIG_TARGA_DECODER)           += targa.o
138 OBJS-$(CONFIG_THEORA_DECODER)          += vp3.o
139 OBJS-$(CONFIG_TIERTEXSEQVIDEO_DECODER) += tiertexseqv.o
140 OBJS-$(CONFIG_TIFF_DECODER)            += tiff.o lzw.o
141 OBJS-$(CONFIG_TRUEMOTION1_DECODER)     += truemotion1.o
142 OBJS-$(CONFIG_TRUEMOTION2_DECODER)     += truemotion2.o
143 OBJS-$(CONFIG_TRUESPEECH_DECODER)      += truespeech.o
144 OBJS-$(CONFIG_TSCC_DECODER)            += tscc.o
145 OBJS-$(CONFIG_TTA_DECODER)             += tta.o
146 OBJS-$(CONFIG_ULTI_DECODER)            += ulti.o
147 OBJS-$(CONFIG_VC1_DECODER)             += vc1.o vc1dsp.o
148 OBJS-$(CONFIG_VCR1_DECODER)            += vcr1.o
149 OBJS-$(CONFIG_VCR1_ENCODER)            += vcr1.o
150 OBJS-$(CONFIG_VMDAUDIO_DECODER)        += vmdav.o
151 OBJS-$(CONFIG_VMDVIDEO_DECODER)        += vmdav.o
152 OBJS-$(CONFIG_VMNC_DECODER)            += vmnc.o
153 OBJS-$(CONFIG_VORBIS_DECODER)          += vorbis.o vorbis_data.o
154 OBJS-$(CONFIG_VORBIS_ENCODER)          += vorbis_enc.o vorbis.o vorbis_data.o
155 OBJS-$(CONFIG_VP3_DECODER)             += vp3.o
156 OBJS-$(CONFIG_VP5_DECODER)             += vp5.o vp56.o vp56data.o
157 OBJS-$(CONFIG_VP6_DECODER)             += vp6.o vp56.o vp56data.o
158 OBJS-$(CONFIG_VQA_DECODER)             += vqavideo.o
159 OBJS-$(CONFIG_WAVPACK_DECODER)         += wavpack.o
160 OBJS-$(CONFIG_WMAV1_DECODER)           += wmadec.o
161 OBJS-$(CONFIG_WMAV2_DECODER)           += wmadec.o
162 OBJS-$(CONFIG_WMV3_DECODER)            += vc1.o vc1dsp.o
163 OBJS-$(CONFIG_WNV1_DECODER)            += wnv1.o
164 OBJS-$(CONFIG_WS_SND1_DECODER)         += ws-snd1.o
165 OBJS-$(CONFIG_XAN_DPCM_DECODER)        += dpcm.o
166 OBJS-$(CONFIG_XAN_WC3_DECODER)         += xan.o
167 OBJS-$(CONFIG_XAN_WC4_DECODER)         += xan.o
168 OBJS-$(CONFIG_XL_DECODER)              += xl.o
169 OBJS-$(CONFIG_ZLIB_DECODER)            += lcl.o
170 OBJS-$(CONFIG_ZLIB_ENCODER)            += lcl.o
171 OBJS-$(CONFIG_ZMBV_DECODER)            += zmbv.o
172 OBJS-$(CONFIG_ZMBV_ENCODER)            += zmbvenc.o
173
174 OBJS-$(CONFIG_PCM_S32LE_DECODER)       += pcm.o
175 OBJS-$(CONFIG_PCM_S32LE_ENCODER)       += pcm.o
176 OBJS-$(CONFIG_PCM_S32BE_DECODER)       += pcm.o
177 OBJS-$(CONFIG_PCM_S32BE_ENCODER)       += pcm.o
178 OBJS-$(CONFIG_PCM_U32LE_DECODER)       += pcm.o
179 OBJS-$(CONFIG_PCM_U32LE_ENCODER)       += pcm.o
180 OBJS-$(CONFIG_PCM_U32BE_DECODER)       += pcm.o
181 OBJS-$(CONFIG_PCM_U32BE_ENCODER)       += pcm.o
182 OBJS-$(CONFIG_PCM_S24LE_DECODER)       += pcm.o
183 OBJS-$(CONFIG_PCM_S24LE_ENCODER)       += pcm.o
184 OBJS-$(CONFIG_PCM_S24BE_DECODER)       += pcm.o
185 OBJS-$(CONFIG_PCM_S24BE_ENCODER)       += pcm.o
186 OBJS-$(CONFIG_PCM_U24LE_DECODER)       += pcm.o
187 OBJS-$(CONFIG_PCM_U24LE_ENCODER)       += pcm.o
188 OBJS-$(CONFIG_PCM_U24BE_DECODER)       += pcm.o
189 OBJS-$(CONFIG_PCM_U24BE_ENCODER)       += pcm.o
190 OBJS-$(CONFIG_PCM_S24DAUD_DECODER)     += pcm.o
191 OBJS-$(CONFIG_PCM_S24DAUD_ENCODER)     += pcm.o
192 OBJS-$(CONFIG_PCM_S16LE_DECODER)       += pcm.o
193 OBJS-$(CONFIG_PCM_S16LE_ENCODER)       += pcm.o
194 OBJS-$(CONFIG_PCM_S16BE_DECODER)       += pcm.o
195 OBJS-$(CONFIG_PCM_S16BE_ENCODER)       += pcm.o
196 OBJS-$(CONFIG_PCM_U16LE_DECODER)       += pcm.o
197 OBJS-$(CONFIG_PCM_U16LE_ENCODER)       += pcm.o
198 OBJS-$(CONFIG_PCM_U16BE_DECODER)       += pcm.o
199 OBJS-$(CONFIG_PCM_U16BE_ENCODER)       += pcm.o
200 OBJS-$(CONFIG_PCM_S8_DECODER)          += pcm.o
201 OBJS-$(CONFIG_PCM_S8_ENCODER)          += pcm.o
202 OBJS-$(CONFIG_PCM_U8_DECODER)          += pcm.o
203 OBJS-$(CONFIG_PCM_U8_ENCODER)          += pcm.o
204 OBJS-$(CONFIG_PCM_ALAW_DECODER)        += pcm.o
205 OBJS-$(CONFIG_PCM_ALAW_ENCODER)        += pcm.o
206 OBJS-$(CONFIG_PCM_MULAW_DECODER)       += pcm.o
207 OBJS-$(CONFIG_PCM_MULAW_ENCODER)       += pcm.o
208
209 OBJS-$(CONFIG_ADPCM_4XM_DECODER)       += adpcm.o
210 OBJS-$(CONFIG_ADPCM_4XM_ENCODER)       += adpcm.o
211 OBJS-$(CONFIG_ADPCM_ADX_DECODER)       += adx.o
212 OBJS-$(CONFIG_ADPCM_ADX_ENCODER)       += adx.o
213 OBJS-$(CONFIG_ADPCM_CT_DECODER)        += adpcm.o
214 OBJS-$(CONFIG_ADPCM_CT_ENCODER)        += adpcm.o
215 OBJS-$(CONFIG_ADPCM_EA_DECODER)        += adpcm.o
216 OBJS-$(CONFIG_ADPCM_EA_ENCODER)        += adpcm.o
217 OBJS-$(CONFIG_ADPCM_G726_DECODER)      += g726.o
218 OBJS-$(CONFIG_ADPCM_G726_ENCODER)      += g726.o
219 OBJS-$(CONFIG_ADPCM_IMA_DK3_DECODER)   += adpcm.o
220 OBJS-$(CONFIG_ADPCM_IMA_DK3_ENCODER)   += adpcm.o
221 OBJS-$(CONFIG_ADPCM_IMA_DK4_DECODER)   += adpcm.o
222 OBJS-$(CONFIG_ADPCM_IMA_DK4_ENCODER)   += adpcm.o
223 OBJS-$(CONFIG_ADPCM_IMA_QT_DECODER)    += adpcm.o
224 OBJS-$(CONFIG_ADPCM_IMA_QT_ENCODER)    += adpcm.o
225 OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_DECODER)+= adpcm.o
226 OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_ENCODER)+= adpcm.o
227 OBJS-$(CONFIG_ADPCM_IMA_WAV_DECODER)   += adpcm.o
228 OBJS-$(CONFIG_ADPCM_IMA_WAV_ENCODER)   += adpcm.o
229 OBJS-$(CONFIG_ADPCM_IMA_WS_DECODER)    += adpcm.o
230 OBJS-$(CONFIG_ADPCM_IMA_WS_ENCODER)    += adpcm.o
231 OBJS-$(CONFIG_ADPCM_MS_DECODER)        += adpcm.o
232 OBJS-$(CONFIG_ADPCM_MS_ENCODER)        += adpcm.o
233 OBJS-$(CONFIG_ADPCM_SBPRO_2_DECODER)   += adpcm.o
234 OBJS-$(CONFIG_ADPCM_SBPRO_2_ENCODER)   += adpcm.o
235 OBJS-$(CONFIG_ADPCM_SBPRO_3_DECODER)   += adpcm.o
236 OBJS-$(CONFIG_ADPCM_SBPRO_3_ENCODER)   += adpcm.o
237 OBJS-$(CONFIG_ADPCM_SBPRO_4_DECODER)   += adpcm.o
238 OBJS-$(CONFIG_ADPCM_SBPRO_4_ENCODER)   += adpcm.o
239 OBJS-$(CONFIG_ADPCM_SWF_DECODER)       += adpcm.o
240 OBJS-$(CONFIG_ADPCM_SWF_ENCODER)       += adpcm.o
241 OBJS-$(CONFIG_ADPCM_XA_DECODER)        += adpcm.o
242 OBJS-$(CONFIG_ADPCM_XA_ENCODER)        += adpcm.o
243 OBJS-$(CONFIG_ADPCM_YAMAHA_DECODER)    += adpcm.o
244 OBJS-$(CONFIG_ADPCM_YAMAHA_ENCODER)    += adpcm.o
245
246 # external codec libraries
247 OBJS-$(CONFIG_LIBA52)                  += a52dec.o
248 OBJS-$(CONFIG_LIBA52)$(CONFIG_LIBA52BIN)  += liba52/bit_allocate.o \
249                                              liba52/bitstream.o    \
250                                              liba52/downmix.o      \
251                                              liba52/imdct.o        \
252                                              liba52/parse.o        \
253                                              liba52/crc.o          \
254                                              liba52/resample.o
255 OBJS-$(CONFIG_LIBDTS)                  += dtsdec.o
256 OBJS-$(CONFIG_LIBFAAC)                 += faac.o
257 OBJS-$(CONFIG_LIBFAAD)                 += faad.o
258 OBJS-$(CONFIG_LIBGSM)                  += libgsm.o
259 OBJS-$(CONFIG_LIBMP3LAME)              += mp3lameaudio.o
260 OBJS-$(CONFIG_LIBVORBIS)               += oggvorbis.o
261 OBJS-$(CONFIG_X264)                    += x264.o
262 OBJS-$(CONFIG_XVID)                    += xvidff.o xvid_rc.o
263
264 OBJS-$(CONFIG_AMR)                     += amr.o
265 OBJS-$(CONFIG_AMR_NB)                  += amr_float/sp_dec.o     \
266                                           amr_float/sp_enc.o     \
267                                           amr_float/interf_dec.o \
268                                           amr_float/interf_enc.o
269
270 ifeq ($(CONFIG_AMR_NB_FIXED),yes)
271 EXTRAOBJS += amr/*.o
272 EXTRADEPS=amrlibs
273 endif
274
275 OBJS-$(CONFIG_AMR_WB)                  += amrwb_float/dec_acelp.o \
276                                           amrwb_float/dec_dtx.o   \
277                                           amrwb_float/dec_gain.o  \
278                                           amrwb_float/dec_if.o    \
279                                           amrwb_float/dec_lpc.o   \
280                                           amrwb_float/dec_main.o  \
281                                           amrwb_float/dec_rom.o   \
282                                           amrwb_float/dec_util.o  \
283                                           amrwb_float/enc_acelp.o \
284                                           amrwb_float/enc_dtx.o   \
285                                           amrwb_float/enc_gain.o  \
286                                           amrwb_float/enc_if.o    \
287                                           amrwb_float/enc_lpc.o   \
288                                           amrwb_float/enc_main.o  \
289                                           amrwb_float/enc_rom.o   \
290                                           amrwb_float/enc_util.o  \
291                                           amrwb_float/if_rom.o
292
293 OBJS-$(CONFIG_AAC_PARSER)              += parser.o
294 OBJS-$(CONFIG_AC3_PARSER)              += parser.o
295 OBJS-$(CONFIG_CAVSVIDEO_PARSER)        += cavs.o parser.o
296 OBJS-$(CONFIG_DVBSUB_PARSER)           += dvbsubdec.o
297 OBJS-$(CONFIG_DVDSUB_PARSER)           += dvdsubdec.o
298 OBJS-$(CONFIG_H261_PARSER)             += h261.o
299 OBJS-$(CONFIG_H263_PARSER)             += h263dec.o
300 OBJS-$(CONFIG_H264_PARSER)             += h264.o
301 OBJS-$(CONFIG_MJPEG_PARSER)            += mjpeg.o
302 OBJS-$(CONFIG_MPEG4VIDEO_PARSER)       += parser.o
303 OBJS-$(CONFIG_MPEGAUDIO_PARSER)        += parser.o
304 OBJS-$(CONFIG_MPEGVIDEO_PARSER)        += parser.o
305 OBJS-$(CONFIG_PNM_PARSER)              += pnm.o
306
307 OBJS-$(HAVE_PTHREADS)                  += pthread.o
308 OBJS-$(HAVE_W32THREADS)                += w32thread.o
309 OBJS-$(HAVE_OS2THREADS)                += os2thread.o
310 OBJS-$(HAVE_BEOSTHREADS)               += beosthread.o
311
312 OBJS-$(HAVE_XVMC_ACCEL)                += xvmcvideo.o
313
314 ifneq ($(CONFIG_SWSCALER),yes)
315 OBJS += imgresample.o
316 endif
317
318 # i386 mmx specific stuff
319 ifeq ($(TARGET_MMX),yes)
320 OBJS += i386/fdct_mmx.o \
321         i386/cputest.o \
322         i386/dsputil_mmx.o \
323         i386/mpegvideo_mmx.o \
324         i386/motion_est_mmx.o \
325         i386/simple_idct_mmx.o \
326         i386/idct_mmx_xvid.o \
327         i386/fft_sse.o \
328         i386/vp3dsp_mmx.o \
329         i386/vp3dsp_sse2.o \
330         i386/fft_3dn.o \
331         i386/fft_3dn2.o \
332         i386/snowdsp_mmx.o \
333
334 ifeq ($(CONFIG_GPL),yes)
335 OBJS += i386/idct_mmx.o
336 endif
337 ifeq ($(CONFIG_CAVS_DECODER),yes)
338 OBJS += i386/cavsdsp_mmx.o
339 endif
340 endif
341
342 # armv4l specific stuff
343 ASM_OBJS-$(TARGET_ARCH_ARMV4L)         += armv4l/jrevdct_arm.o     \
344                                           armv4l/simple_idct_arm.o \
345                                           armv4l/dsputil_arm_s.o   \
346
347 OBJS-$(TARGET_ARCH_ARMV4L)             += armv4l/dsputil_arm.o   \
348                                           armv4l/mpegvideo_arm.o \
349
350 OBJS-$(TARGET_IWMMXT)                  += armv4l/dsputil_iwmmxt.o   \
351                                           armv4l/mpegvideo_iwmmxt.o \
352
353 ASM_OBJS-$(TARGET_ARMV5TE)             += armv4l/simple_idct_armv5te.o \
354
355 # sun sparc
356 OBJS-$(TARGET_ARCH_SPARC)              += sparc/dsputil_vis.o \
357
358 sparc/dsputil_vis.o: CFLAGS += -mcpu=ultrasparc -mtune=ultrasparc
359
360 # sun mediaLib specific stuff
361 OBJS-$(HAVE_MLIB)                      += mlib/dsputil_mlib.o \
362
363 # alpha specific stuff
364 OBJS-$(TARGET_ARCH_ALPHA)              += alpha/dsputil_alpha.o     \
365                                           alpha/mpegvideo_alpha.o   \
366                                           alpha/simple_idct_alpha.o \
367                                           alpha/motion_est_alpha.o  \
368
369 ASM_OBJS-$(TARGET_ARCH_ALPHA)          += alpha/dsputil_alpha_asm.o  \
370                                           alpha/motion_est_mvi_asm.o \
371
372 OBJS-$(TARGET_ARCH_POWERPC)            += ppc/dsputil_ppc.o   \
373                                           ppc/mpegvideo_ppc.o \
374
375 OBJS-$(TARGET_MMI)                     += ps2/dsputil_mmi.o   \
376                                           ps2/idct_mmi.o      \
377                                           ps2/mpegvideo_mmi.o \
378
379 OBJS-$(TARGET_ARCH_SH4)                += sh4/idct_sh4.o      \
380                                           sh4/dsputil_sh4.o   \
381                                           sh4/dsputil_align.o \
382
383 OBJS-$(TARGET_ALTIVEC)                 += ppc/dsputil_altivec.o      \
384                                           ppc/mpegvideo_altivec.o    \
385                                           ppc/idct_altivec.o         \
386                                           ppc/fft_altivec.o          \
387                                           ppc/gmc_altivec.o          \
388                                           ppc/fdct_altivec.o         \
389                                           ppc/float_altivec.o        \
390
391 ifeq ($(TARGET_ALTIVEC),yes)
392 OBJS-$(CONFIG_H264_DECODER)            += ppc/h264_altivec.o
393 OBJS-$(CONFIG_SNOW_DECODER)            += ppc/snow_altivec.o
394 OBJS-$(CONFIG_VC1_DECODER)             += ppc/vc1dsp_altivec.o
395 OBJS-$(CONFIG_WMV3_DECODER)            += ppc/vc1dsp_altivec.o
396 endif
397
398 OBJS-$(TARGET_ARCH_BFIN)               += bfin/dsputil_bfin.o \
399
400 CFLAGS += $(CFLAGS-yes)
401 OBJS += $(OBJS-yes)
402 ASM_OBJS += $(ASM_OBJS-yes)
403
404 EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
405
406 NAME=avcodec
407 ifeq ($(BUILD_SHARED),yes)
408 LIBVERSION=$(LAVCVERSION)
409 LIBMAJOR=$(LAVCMAJOR)
410 endif
411
412 TESTS= imgresample-test fft-test
413 ifeq ($(TARGET_ARCH_X86),yes)
414 TESTS+= cpuid_test dct-test motion-test
415 endif
416
417 include ../common.mak
418
419 amrlibs:
420         $(MAKE) -C amr spclib fipoplib
421
422 tests: apiexample $(TESTS)
423
424 clean::
425         rm -f \
426            i386/*.o i386/*~ \
427            armv4l/*.o armv4l/*~ \
428            mlib/*.o mlib/*~ \
429            alpha/*.o alpha/*~ \
430            ppc/*.o ppc/*~ \
431            ps2/*.o ps2/*~ \
432            sh4/*.o sh4/*~ \
433            sparc/*.o sparc/*~ \
434            liba52/*.o liba52/*~ \
435            amr_float/*.o \
436            apiexample $(TESTS)
437         -$(MAKE) -C amr clean
438         -$(MAKE) -C amrwb_float -f makefile.gcc clean
439
440 apiexample: apiexample.o $(LIB)
441
442 cpuid_test: i386/cputest.c
443         $(CC) $(CFLAGS) -D__TEST__ -o $@ $<
444
445 imgresample-test: imgresample.c $(LIB)
446         $(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS)
447
448 dct-test: dct-test.o fdctref.o $(LIB)
449
450 motion-test: motion_test.o $(LIB)
451
452 fft-test: fft-test.o $(LIB)
453
454 .PHONY: amrlibs tests