cosmetics after last commit
[libav.git] / libavcodec / Makefile
CommitLineData
4cc281d9
FB
1#
2# libavcodec Makefile
6d6d7970 3# (c) 2000-2005 Fabrice Bellard
4cc281d9 4#
980fc7b8
FB
5include ../config.mak
6
a163ed1a 7CFLAGS+=-I$(SRC_PATH)/libswscale $(AMR_CFLAGS)
de6d9b64 8
7fd265a7
DB
9OBJS= 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 \
748c2fca
MN
42 opt.o \
43 bitstream_filter.o \
0eb6817d 44 audioconvert.o \
748c2fca 45
240c1657 46
bb42f829 47HEADERS = avcodec.h opt.h
8b2121e3 48
bac3be38 49OBJS-$(CONFIG_AASC_DECODER) += aasc.o
4258a0a3 50OBJS-$(CONFIG_AC3_ENCODER) += ac3enc.o ac3.o
bac3be38
MR
51OBJS-$(CONFIG_ALAC_DECODER) += alac.o
52OBJS-$(CONFIG_ASV1_DECODER) += asv1.o
53OBJS-$(CONFIG_ASV1_ENCODER) += asv1.o
54OBJS-$(CONFIG_ASV2_DECODER) += asv1.o
55OBJS-$(CONFIG_ASV2_ENCODER) += asv1.o
56OBJS-$(CONFIG_AVS_DECODER) += avs.o
1e6c6759 57OBJS-$(CONFIG_BETHSOFTVID_DECODER) += bethsoftvideo.o
a29ff6b7 58OBJS-$(CONFIG_BMP_DECODER) += bmp.o
52548eee 59OBJS-$(CONFIG_BMP_ENCODER) += bmpenc.o
9a0ddd09 60OBJS-$(CONFIG_C93_DECODER) += c93.o
bac3be38
MR
61OBJS-$(CONFIG_CAVS_DECODER) += cavs.o cavsdsp.o
62OBJS-$(CONFIG_CINEPAK_DECODER) += cinepak.o
bac3be38
MR
63OBJS-$(CONFIG_CLJR_DECODER) += cljr.o
64OBJS-$(CONFIG_CLJR_ENCODER) += cljr.o
a29ff6b7 65OBJS-$(CONFIG_COOK_DECODER) += cook.o
4302963d 66OBJS-$(CONFIG_CSCD_DECODER) += cscd.o
bac3be38 67OBJS-$(CONFIG_CYUV_DECODER) += cyuv.o
01ca9ac3 68OBJS-$(CONFIG_DCA_DECODER) += dca.o
52b6bad2 69OBJS-$(CONFIG_DNXHD_DECODER) += dnxhddec.o
72450e50
BC
70OBJS-$(CONFIG_DSICINVIDEO_DECODER) += dsicinav.o
71OBJS-$(CONFIG_DSICINAUDIO_DECODER) += dsicinav.o
bac3be38
MR
72OBJS-$(CONFIG_DVBSUB_DECODER) += dvbsubdec.o
73OBJS-$(CONFIG_DVBSUB_ENCODER) += dvbsub.o
ebd6a694 74OBJS-$(CONFIG_DVDSUB_DECODER) += dvdsubdec.o
bac3be38
MR
75OBJS-$(CONFIG_DVDSUB_ENCODER) += dvdsubenc.o
76OBJS-$(CONFIG_DVVIDEO_DECODER) += dv.o
77OBJS-$(CONFIG_DVVIDEO_ENCODER) += dv.o
33a0dd37 78OBJS-$(CONFIG_DXA_DECODER) += dxa.o
bac3be38
MR
79OBJS-$(CONFIG_EIGHTBPS_DECODER) += 8bps.o
80OBJS-$(CONFIG_FFV1_DECODER) += ffv1.o
81OBJS-$(CONFIG_FFV1_ENCODER) += ffv1.o
a29ff6b7
MR
82OBJS-$(CONFIG_FFVHUFF_DECODER) += huffyuv.o
83OBJS-$(CONFIG_FFVHUFF_ENCODER) += huffyuv.o
bac3be38
MR
84OBJS-$(CONFIG_FLAC_DECODER) += flac.o
85OBJS-$(CONFIG_FLAC_ENCODER) += flacenc.o
90d912af
MR
86OBJS-$(CONFIG_FLASHSV_DECODER) += flashsv.o
87OBJS-$(CONFIG_FLASHSV_ENCODER) += flashsvenc.o
bac3be38
MR
88OBJS-$(CONFIG_FLIC_DECODER) += flicvideo.o
89OBJS-$(CONFIG_FOURXM_DECODER) += 4xm.o
90OBJS-$(CONFIG_FRAPS_DECODER) += fraps.o
ffc5430b 91OBJS-$(CONFIG_GIF_DECODER) += gifdec.o lzw.o
93481fe5 92OBJS-$(CONFIG_GIF_ENCODER) += gif.o
bac3be38
MR
93OBJS-$(CONFIG_H261_DECODER) += h261.o
94OBJS-$(CONFIG_H261_ENCODER) += h261.o
95OBJS-$(CONFIG_H264_DECODER) += h264.o
c6b237da 96OBJS-$(CONFIG_H264_ENCODER) += h264enc.o h264dsp.o
bac3be38
MR
97OBJS-$(CONFIG_HUFFYUV_DECODER) += huffyuv.o
98OBJS-$(CONFIG_HUFFYUV_ENCODER) += huffyuv.o
bac3be38 99OBJS-$(CONFIG_IDCIN_DECODER) += idcinvideo.o
84ed36da 100OBJS-$(CONFIG_IMC_DECODER) += imc.o
bac3be38
MR
101OBJS-$(CONFIG_INDEO2_DECODER) += indeo2.o
102OBJS-$(CONFIG_INDEO3_DECODER) += indeo3.o
103OBJS-$(CONFIG_INTERPLAY_VIDEO_DECODER) += interplayvideo.o
f7e79298 104OBJS-$(CONFIG_INTERPLAY_DPCM_DECODER) += dpcm.o
bac3be38 105OBJS-$(CONFIG_KMVC_DECODER) += kmvc.o
bac3be38
MR
106OBJS-$(CONFIG_LOCO_DECODER) += loco.o
107OBJS-$(CONFIG_MACE3_DECODER) += mace.o
108OBJS-$(CONFIG_MACE6_DECODER) += mace.o
a29ff6b7 109OBJS-$(CONFIG_MMVIDEO_DECODER) += mmvideo.o
bac3be38 110OBJS-$(CONFIG_MP2_ENCODER) += mpegaudio.o
185c7b6b 111OBJS-$(CONFIG_MPC7_DECODER) += mpc.o
bac3be38
MR
112OBJS-$(CONFIG_MSRLE_DECODER) += msrle.o
113OBJS-$(CONFIG_MSVIDEO1_DECODER) += msvideo1.o
a29ff6b7 114OBJS-$(CONFIG_MSZH_DECODER) += lcl.o
4302963d 115OBJS-$(CONFIG_NUV_DECODER) += nuv.o rtjpeg.o
bac3be38
MR
116OBJS-$(CONFIG_PNG_DECODER) += png.o
117OBJS-$(CONFIG_PNG_ENCODER) += png.o
118OBJS-$(CONFIG_QDM2_DECODER) += qdm2.o
119OBJS-$(CONFIG_QDRAW_DECODER) += qdrw.o
120OBJS-$(CONFIG_QPEG_DECODER) += qpeg.o
121OBJS-$(CONFIG_QTRLE_DECODER) += qtrle.o
122OBJS-$(CONFIG_RA_144_DECODER) += ra144.o
123OBJS-$(CONFIG_RA_288_DECODER) += ra288.o
124OBJS-$(CONFIG_ROQ_DECODER) += roqvideo.o
f7e79298 125OBJS-$(CONFIG_ROQ_DPCM_DECODER) += dpcm.o
bac3be38
MR
126OBJS-$(CONFIG_RPZA_DECODER) += rpza.o
127OBJS-$(CONFIG_RV10_DECODER) += rv10.o
128OBJS-$(CONFIG_RV10_ENCODER) += rv10.o
129OBJS-$(CONFIG_RV20_DECODER) += rv10.o
130OBJS-$(CONFIG_RV20_ENCODER) += rv10.o
2d99eed1
XS
131OBJS-$(CONFIG_SGI_DECODER) += sgidec.o
132OBJS-$(CONFIG_SGI_ENCODER) += sgienc.o rle.o
bac3be38 133OBJS-$(CONFIG_SHORTEN_DECODER) += shorten.o
bac3be38 134OBJS-$(CONFIG_SMACKAUD_DECODER) += smacker.o
a29ff6b7 135OBJS-$(CONFIG_SMACKER_DECODER) += smacker.o
bac3be38
MR
136OBJS-$(CONFIG_SMC_DECODER) += smc.o
137OBJS-$(CONFIG_SNOW_DECODER) += snow.o
138OBJS-$(CONFIG_SNOW_ENCODER) += snow.o
f7e79298 139OBJS-$(CONFIG_SOL_DPCM_DECODER) += dpcm.o
bac3be38
MR
140OBJS-$(CONFIG_SONIC_DECODER) += sonic.o
141OBJS-$(CONFIG_SONIC_ENCODER) += sonic.o
142OBJS-$(CONFIG_SONIC_LS_DECODER) += sonic.o
143OBJS-$(CONFIG_SVQ1_DECODER) += svq1.o
144OBJS-$(CONFIG_SVQ1_ENCODER) += svq1.o
a29ff6b7 145OBJS-$(CONFIG_SVQ3_DECODER) += h264.o
3689cf16 146OBJS-$(CONFIG_TARGA_DECODER) += targa.o
1ca286e1 147OBJS-$(CONFIG_TARGA_ENCODER) += targaenc.o rle.o
da91ed59 148OBJS-$(CONFIG_THEORA_DECODER) += vp3.o xiph.o
9a64e044 149OBJS-$(CONFIG_TIERTEXSEQVIDEO_DECODER) += tiertexseqv.o
ffc5430b 150OBJS-$(CONFIG_TIFF_DECODER) += tiff.o lzw.o
efd2afc2 151OBJS-$(CONFIG_TIFF_ENCODER) += tiffenc.o rle.o lzwenc.o
bac3be38
MR
152OBJS-$(CONFIG_TRUEMOTION1_DECODER) += truemotion1.o
153OBJS-$(CONFIG_TRUEMOTION2_DECODER) += truemotion2.o
154OBJS-$(CONFIG_TRUESPEECH_DECODER) += truespeech.o
bac3be38 155OBJS-$(CONFIG_TSCC_DECODER) += tscc.o
a29ff6b7 156OBJS-$(CONFIG_TTA_DECODER) += tta.o
bac3be38 157OBJS-$(CONFIG_ULTI_DECODER) += ulti.o
64db55ae 158OBJS-$(CONFIG_VC1_DECODER) += vc1.o vc1dsp.o
bac3be38
MR
159OBJS-$(CONFIG_VCR1_DECODER) += vcr1.o
160OBJS-$(CONFIG_VCR1_ENCODER) += vcr1.o
bac3be38 161OBJS-$(CONFIG_VMDAUDIO_DECODER) += vmdav.o
a29ff6b7 162OBJS-$(CONFIG_VMDVIDEO_DECODER) += vmdav.o
eb57c889 163OBJS-$(CONFIG_VMNC_DECODER) += vmnc.o
5bb127a9 164OBJS-$(CONFIG_VORBIS_DECODER) += vorbis.o vorbis_data.o xiph.o
e3893992 165OBJS-$(CONFIG_VORBIS_ENCODER) += vorbis_enc.o vorbis.o vorbis_data.o
bac3be38 166OBJS-$(CONFIG_VP3_DECODER) += vp3.o
5ce117c3
AJ
167OBJS-$(CONFIG_VP5_DECODER) += vp5.o vp56.o vp56data.o
168OBJS-$(CONFIG_VP6_DECODER) += vp6.o vp56.o vp56data.o
bac3be38 169OBJS-$(CONFIG_VQA_DECODER) += vqavideo.o
730581f3 170OBJS-$(CONFIG_WAVPACK_DECODER) += wavpack.o
59686073
MN
171OBJS-$(CONFIG_WMAV1_DECODER) += wmadec.o wma.o
172OBJS-$(CONFIG_WMAV2_DECODER) += wmadec.o wma.o
173OBJS-$(CONFIG_WMAV1_ENCODER) += wmaenc.o wma.o
174OBJS-$(CONFIG_WMAV2_ENCODER) += wmaenc.o wma.o
248bc6bb 175OBJS-$(CONFIG_WMV3_DECODER) += vc1.o vc1dsp.o
bac3be38
MR
176OBJS-$(CONFIG_WNV1_DECODER) += wnv1.o
177OBJS-$(CONFIG_WS_SND1_DECODER) += ws-snd1.o
f7e79298 178OBJS-$(CONFIG_XAN_DPCM_DECODER) += dpcm.o
bac3be38
MR
179OBJS-$(CONFIG_XAN_WC3_DECODER) += xan.o
180OBJS-$(CONFIG_XAN_WC4_DECODER) += xan.o
181OBJS-$(CONFIG_XL_DECODER) += xl.o
a29ff6b7
MR
182OBJS-$(CONFIG_ZLIB_DECODER) += lcl.o
183OBJS-$(CONFIG_ZLIB_ENCODER) += lcl.o
bac3be38 184OBJS-$(CONFIG_ZMBV_DECODER) += zmbv.o
3dd52c5a 185OBJS-$(CONFIG_ZMBV_ENCODER) += zmbvenc.o
bac3be38 186
327dcfd3
MR
187OBJS-$(CONFIG_PCM_S32LE_DECODER) += pcm.o
188OBJS-$(CONFIG_PCM_S32LE_ENCODER) += pcm.o
189OBJS-$(CONFIG_PCM_S32BE_DECODER) += pcm.o
190OBJS-$(CONFIG_PCM_S32BE_ENCODER) += pcm.o
191OBJS-$(CONFIG_PCM_U32LE_DECODER) += pcm.o
192OBJS-$(CONFIG_PCM_U32LE_ENCODER) += pcm.o
193OBJS-$(CONFIG_PCM_U32BE_DECODER) += pcm.o
194OBJS-$(CONFIG_PCM_U32BE_ENCODER) += pcm.o
195OBJS-$(CONFIG_PCM_S24LE_DECODER) += pcm.o
196OBJS-$(CONFIG_PCM_S24LE_ENCODER) += pcm.o
197OBJS-$(CONFIG_PCM_S24BE_DECODER) += pcm.o
198OBJS-$(CONFIG_PCM_S24BE_ENCODER) += pcm.o
199OBJS-$(CONFIG_PCM_U24LE_DECODER) += pcm.o
200OBJS-$(CONFIG_PCM_U24LE_ENCODER) += pcm.o
201OBJS-$(CONFIG_PCM_U24BE_DECODER) += pcm.o
202OBJS-$(CONFIG_PCM_U24BE_ENCODER) += pcm.o
203OBJS-$(CONFIG_PCM_S24DAUD_DECODER) += pcm.o
204OBJS-$(CONFIG_PCM_S24DAUD_ENCODER) += pcm.o
205OBJS-$(CONFIG_PCM_S16LE_DECODER) += pcm.o
206OBJS-$(CONFIG_PCM_S16LE_ENCODER) += pcm.o
207OBJS-$(CONFIG_PCM_S16BE_DECODER) += pcm.o
208OBJS-$(CONFIG_PCM_S16BE_ENCODER) += pcm.o
209OBJS-$(CONFIG_PCM_U16LE_DECODER) += pcm.o
210OBJS-$(CONFIG_PCM_U16LE_ENCODER) += pcm.o
211OBJS-$(CONFIG_PCM_U16BE_DECODER) += pcm.o
212OBJS-$(CONFIG_PCM_U16BE_ENCODER) += pcm.o
213OBJS-$(CONFIG_PCM_S8_DECODER) += pcm.o
214OBJS-$(CONFIG_PCM_S8_ENCODER) += pcm.o
215OBJS-$(CONFIG_PCM_U8_DECODER) += pcm.o
216OBJS-$(CONFIG_PCM_U8_ENCODER) += pcm.o
217OBJS-$(CONFIG_PCM_ALAW_DECODER) += pcm.o
218OBJS-$(CONFIG_PCM_ALAW_ENCODER) += pcm.o
219OBJS-$(CONFIG_PCM_MULAW_DECODER) += pcm.o
220OBJS-$(CONFIG_PCM_MULAW_ENCODER) += pcm.o
221
222OBJS-$(CONFIG_ADPCM_4XM_DECODER) += adpcm.o
223OBJS-$(CONFIG_ADPCM_4XM_ENCODER) += adpcm.o
7239fb57
MR
224OBJS-$(CONFIG_ADPCM_ADX_DECODER) += adx.o
225OBJS-$(CONFIG_ADPCM_ADX_ENCODER) += adx.o
327dcfd3
MR
226OBJS-$(CONFIG_ADPCM_CT_DECODER) += adpcm.o
227OBJS-$(CONFIG_ADPCM_CT_ENCODER) += adpcm.o
228OBJS-$(CONFIG_ADPCM_EA_DECODER) += adpcm.o
229OBJS-$(CONFIG_ADPCM_EA_ENCODER) += adpcm.o
230OBJS-$(CONFIG_ADPCM_G726_DECODER) += g726.o
231OBJS-$(CONFIG_ADPCM_G726_ENCODER) += g726.o
232OBJS-$(CONFIG_ADPCM_IMA_DK3_DECODER) += adpcm.o
233OBJS-$(CONFIG_ADPCM_IMA_DK3_ENCODER) += adpcm.o
234OBJS-$(CONFIG_ADPCM_IMA_DK4_DECODER) += adpcm.o
235OBJS-$(CONFIG_ADPCM_IMA_DK4_ENCODER) += adpcm.o
236OBJS-$(CONFIG_ADPCM_IMA_QT_DECODER) += adpcm.o
237OBJS-$(CONFIG_ADPCM_IMA_QT_ENCODER) += adpcm.o
9b1a3ea0
DB
238OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_DECODER) += adpcm.o
239OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_ENCODER) += adpcm.o
327dcfd3
MR
240OBJS-$(CONFIG_ADPCM_IMA_WAV_DECODER) += adpcm.o
241OBJS-$(CONFIG_ADPCM_IMA_WAV_ENCODER) += adpcm.o
242OBJS-$(CONFIG_ADPCM_IMA_WS_DECODER) += adpcm.o
243OBJS-$(CONFIG_ADPCM_IMA_WS_ENCODER) += adpcm.o
244OBJS-$(CONFIG_ADPCM_MS_DECODER) += adpcm.o
245OBJS-$(CONFIG_ADPCM_MS_ENCODER) += adpcm.o
246OBJS-$(CONFIG_ADPCM_SBPRO_2_DECODER) += adpcm.o
247OBJS-$(CONFIG_ADPCM_SBPRO_2_ENCODER) += adpcm.o
248OBJS-$(CONFIG_ADPCM_SBPRO_3_DECODER) += adpcm.o
249OBJS-$(CONFIG_ADPCM_SBPRO_3_ENCODER) += adpcm.o
250OBJS-$(CONFIG_ADPCM_SBPRO_4_DECODER) += adpcm.o
251OBJS-$(CONFIG_ADPCM_SBPRO_4_ENCODER) += adpcm.o
252OBJS-$(CONFIG_ADPCM_SWF_DECODER) += adpcm.o
253OBJS-$(CONFIG_ADPCM_SWF_ENCODER) += adpcm.o
d1e0d21f 254OBJS-$(CONFIG_ADPCM_THP_DECODER) += adpcm.o
327dcfd3
MR
255OBJS-$(CONFIG_ADPCM_XA_DECODER) += adpcm.o
256OBJS-$(CONFIG_ADPCM_XA_ENCODER) += adpcm.o
257OBJS-$(CONFIG_ADPCM_YAMAHA_DECODER) += adpcm.o
258OBJS-$(CONFIG_ADPCM_YAMAHA_ENCODER) += adpcm.o
259
20c9dfe3 260# external codec libraries
7bc5f2a8 261OBJS-$(CONFIG_LIBA52) += a52dec.o
3ffab361 262OBJS-$(CONFIG_LIBDTS) += dtsdec.o
20c9dfe3
DB
263OBJS-$(CONFIG_LIBFAAC) += faac.o
264OBJS-$(CONFIG_LIBFAAD) += faad.o
265OBJS-$(CONFIG_LIBGSM) += libgsm.o
266OBJS-$(CONFIG_LIBMP3LAME) += mp3lameaudio.o
150d2772 267OBJS-$(CONFIG_LIBTHEORA) += libtheoraenc.o
20c9dfe3
DB
268OBJS-$(CONFIG_LIBVORBIS) += oggvorbis.o
269OBJS-$(CONFIG_X264) += x264.o
270OBJS-$(CONFIG_XVID) += xvidff.o xvid_rc.o
23c99253 271
6636b7e8
MR
272OBJS-$(CONFIG_AMR) += amr.o
273OBJS-$(CONFIG_AMR_NB) += amr_float/sp_dec.o \
bac3be38
MR
274 amr_float/sp_enc.o \
275 amr_float/interf_dec.o \
276 amr_float/interf_enc.o
280bd7b7 277
6636b7e8 278ifeq ($(CONFIG_AMR_NB_FIXED),yes)
bac3be38
MR
279EXTRAOBJS += amr/*.o
280EXTRADEPS=amrlibs
5c5dea3f 281endif
81e0d0b4 282
7a5f09f6 283OBJS-$(CONFIG_AMR_WB) += amrwb_float/dec_acelp.o \
bac3be38
MR
284 amrwb_float/dec_dtx.o \
285 amrwb_float/dec_gain.o \
286 amrwb_float/dec_if.o \
287 amrwb_float/dec_lpc.o \
288 amrwb_float/dec_main.o \
289 amrwb_float/dec_rom.o \
290 amrwb_float/dec_util.o \
291 amrwb_float/enc_acelp.o \
292 amrwb_float/enc_dtx.o \
293 amrwb_float/enc_gain.o \
294 amrwb_float/enc_if.o \
295 amrwb_float/enc_lpc.o \
296 amrwb_float/enc_main.o \
297 amrwb_float/enc_rom.o \
298 amrwb_float/enc_util.o \
299 amrwb_float/if_rom.o
300
af9e7d18 301OBJS-$(CONFIG_AAC_PARSER) += parser.o
43a0791b 302OBJS-$(CONFIG_AC3_PARSER) += parser.o ac3.o
53aa68b3 303OBJS-$(CONFIG_CAVSVIDEO_PARSER) += cavs.o parser.o
af9e7d18 304OBJS-$(CONFIG_DVBSUB_PARSER) += dvbsubdec.o
ebd6a694 305OBJS-$(CONFIG_DVDSUB_PARSER) += dvdsubdec.o
af9e7d18
MR
306OBJS-$(CONFIG_H261_PARSER) += h261.o
307OBJS-$(CONFIG_H263_PARSER) += h263dec.o
308OBJS-$(CONFIG_H264_PARSER) += h264.o
309OBJS-$(CONFIG_MJPEG_PARSER) += mjpeg.o
310OBJS-$(CONFIG_MPEG4VIDEO_PARSER) += parser.o
311OBJS-$(CONFIG_MPEGAUDIO_PARSER) += parser.o
312OBJS-$(CONFIG_MPEGVIDEO_PARSER) += parser.o
313OBJS-$(CONFIG_PNM_PARSER) += pnm.o
314
bac3be38
MR
315OBJS-$(HAVE_PTHREADS) += pthread.o
316OBJS-$(HAVE_W32THREADS) += w32thread.o
317OBJS-$(HAVE_OS2THREADS) += os2thread.o
318OBJS-$(HAVE_BEOSTHREADS) += beosthread.o
319
320OBJS-$(HAVE_XVMC_ACCEL) += xvmcvideo.o
bb4c2140 321
790c9ca7
LA
322ifneq ($(CONFIG_SWSCALER),yes)
323OBJS += imgresample.o
324endif
325
1026a8d4 326# processor-specific code
980fc7b8 327ifeq ($(TARGET_MMX),yes)
7fd265a7
DB
328OBJS += i386/fdct_mmx.o \
329 i386/cputest.o \
330 i386/dsputil_mmx.o \
331 i386/mpegvideo_mmx.o \
332 i386/motion_est_mmx.o \
333 i386/simple_idct_mmx.o \
0eb59ddb 334 i386/idct_mmx_xvid.o \
7fd265a7
DB
335 i386/fft_sse.o \
336 i386/vp3dsp_mmx.o \
337 i386/vp3dsp_sse2.o \
338 i386/fft_3dn.o \
339 i386/fft_3dn2.o \
7fd265a7 340
3dc09ed1
DB
341OBJS-$(CONFIG_GPL) += i386/idct_mmx.o
342OBJS-$(CONFIG_CAVS_DECODER) += i386/cavsdsp_mmx.o
e870111e 343OBJS-$(CONFIG_SNOW_DECODER) += i386/snowdsp_mmx.o
de6d9b64
FB
344endif
345
bac3be38
MR
346ASM_OBJS-$(TARGET_ARCH_ARMV4L) += armv4l/jrevdct_arm.o \
347 armv4l/simple_idct_arm.o \
5064755e
DB
348 armv4l/dsputil_arm_s.o \
349
bac3be38 350OBJS-$(TARGET_ARCH_ARMV4L) += armv4l/dsputil_arm.o \
5064755e
DB
351 armv4l/mpegvideo_arm.o \
352
bac3be38 353OBJS-$(TARGET_IWMMXT) += armv4l/dsputil_iwmmxt.o \
5064755e
DB
354 armv4l/mpegvideo_iwmmxt.o \
355
356ASM_OBJS-$(TARGET_ARMV5TE) += armv4l/simple_idct_armv5te.o \
7a886063 357 armv4l/mpegvideo_armv5te.o \
bac3be38 358
7d42886b
MR
359ASM_OBJS-$(HAVE_ARMV6) += armv4l/simple_idct_armv6.o
360
5064755e
DB
361OBJS-$(TARGET_ARCH_SPARC) += sparc/dsputil_vis.o \
362
bac3be38 363sparc/dsputil_vis.o: CFLAGS += -mcpu=ultrasparc -mtune=ultrasparc
3d03c0a2 364
5064755e 365OBJS-$(HAVE_MLIB) += mlib/dsputil_mlib.o \
6ad1fa5a 366
bac3be38
MR
367OBJS-$(TARGET_ARCH_ALPHA) += alpha/dsputil_alpha.o \
368 alpha/mpegvideo_alpha.o \
369 alpha/simple_idct_alpha.o \
5064755e
DB
370 alpha/motion_est_alpha.o \
371
bac3be38 372ASM_OBJS-$(TARGET_ARCH_ALPHA) += alpha/dsputil_alpha_asm.o \
5064755e
DB
373 alpha/motion_est_mvi_asm.o \
374
375OBJS-$(TARGET_ARCH_POWERPC) += ppc/dsputil_ppc.o \
376 ppc/mpegvideo_ppc.o \
bac3be38 377
bac3be38
MR
378OBJS-$(TARGET_MMI) += ps2/dsputil_mmi.o \
379 ps2/idct_mmi.o \
5064755e
DB
380 ps2/mpegvideo_mmi.o \
381
bac3be38
MR
382OBJS-$(TARGET_ARCH_SH4) += sh4/idct_sh4.o \
383 sh4/dsputil_sh4.o \
5064755e
DB
384 sh4/dsputil_align.o \
385
bac3be38
MR
386OBJS-$(TARGET_ALTIVEC) += ppc/dsputil_altivec.o \
387 ppc/mpegvideo_altivec.o \
388 ppc/idct_altivec.o \
389 ppc/fft_altivec.o \
390 ppc/gmc_altivec.o \
391 ppc/fdct_altivec.o \
5064755e
DB
392 ppc/float_altivec.o \
393
8cff89be
DB
394ifeq ($(TARGET_ALTIVEC),yes)
395OBJS-$(CONFIG_H264_DECODER) += ppc/h264_altivec.o
396OBJS-$(CONFIG_SNOW_DECODER) += ppc/snow_altivec.o
397OBJS-$(CONFIG_VC1_DECODER) += ppc/vc1dsp_altivec.o
398OBJS-$(CONFIG_WMV3_DECODER) += ppc/vc1dsp_altivec.o
399endif
400
5064755e 401OBJS-$(TARGET_ARCH_BFIN) += bfin/dsputil_bfin.o \
bac3be38 402
67fd620c
MH
403ASM_OBJS-$(TARGET_ARCH_BFIN) += bfin/pixels_bfin.o \
404 bfin/idct_bfin.o \
405 bfin/fdct_bfin.o \
67fd620c 406
14f29f79
DB
407EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
408
4bdd05e7 409NAME=avcodec
f3b60109
DB
410LIBVERSION=$(LAVCVERSION)
411LIBMAJOR=$(LAVCMAJOR)
e164fbfe 412
51aeb7aa 413TESTS= imgresample-test fft-test dct-test
e164fbfe 414ifeq ($(TARGET_ARCH_X86),yes)
51aeb7aa 415TESTS+= cpuid_test motion-test
e164fbfe 416endif
de6d9b64 417
997baf01 418include ../common.mak
8b2121e3 419
bc634f6f
ZK
420amrlibs:
421 $(MAKE) -C amr spclib fipoplib
422
93555ad5 423tests: apiexample $(TESTS)
de6d9b64 424
c7f1a2f5 425clean::
8b2121e3 426 rm -f \
98013cc1 427 i386/*.o i386/*~ \
3d03c0a2 428 armv4l/*.o armv4l/*~ \
c34270f5 429 mlib/*.o mlib/*~ \
1e98dffb 430 alpha/*.o alpha/*~ \
59925ef2 431 ppc/*.o ppc/*~ \
d46aba26 432 ps2/*.o ps2/*~ \
0c6bd2ea 433 sh4/*.o sh4/*~ \
bb476ff3 434 sparc/*.o sparc/*~ \
c7f1a2f5 435 amr_float/*.o \
57514323 436 apiexample $(TESTS)
215e46e6
DB
437 -$(MAKE) -C amr clean
438 -$(MAKE) -C amrwb_float -f makefile.gcc clean
d663a1fd 439
c6c46511 440apiexample: apiexample.o $(LIB)
de6d9b64 441
c10e9f70
NK
442cpuid_test: i386/cputest.c
443 $(CC) $(CFLAGS) -D__TEST__ -o $@ $<
444
0ec92a15 445imgresample-test: imgresample.c $(LIB)
9933dc71 446 $(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS)
de6d9b64 447
9ebc63a9 448dct-test: dct-test.o fdctref.o $(LIB)
d771bcae 449
4300403e 450motion-test: motion_test.o $(LIB)
4300403e 451
923ceff8 452fft-test: fft-test.o $(LIB)
3263626f
DB
453
454.PHONY: amrlibs tests