use ff_ prefix for extern vars
[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
1e97ce4a
DB
7CFLAGS += -I$(SRC_PATH)/libswscale -I$(SRC_PATH)/libavcodec
8
9OBJS = allcodecs.o \
10 audioconvert.o \
11 bitstream.o \
12 bitstream_filter.o \
13 dsputil.o \
14 error_resilience.o \
15 eval.o \
16 faandct.o \
17 imgconvert.o \
18 jrevdct.o \
19 jfdctfst.o \
20 jfdctint.o\
1b04f3e0
DB
21 mpeg12.o \
22 mpeg12data.o \
1e97ce4a
DB
23 mpegvideo.o \
24 opt.o \
25 parser.o \
26 raw.o \
27 resample.o \
28 resample2.o \
29 simple_idct.o \
30 utils.o \
748c2fca 31
240c1657 32
bb42f829 33HEADERS = avcodec.h opt.h
8b2121e3 34
bac3be38 35OBJS-$(CONFIG_AASC_DECODER) += aasc.o
6ea67bbb 36OBJS-$(CONFIG_AC3_DECODER) += ac3dec.o ac3tab.o ac3.o mdct.o fft.o
7adb10be 37OBJS-$(CONFIG_AC3_ENCODER) += ac3enc.o ac3tab.o ac3.o
bac3be38 38OBJS-$(CONFIG_ALAC_DECODER) += alac.o
8787d837 39OBJS-$(CONFIG_AMV_DECODER) += sp5xdec.o mjpegdec.o mjpeg.o
bf4a1f17 40OBJS-$(CONFIG_APE_DECODER) += apedec.o
bac3be38
MR
41OBJS-$(CONFIG_ASV1_DECODER) += asv1.o
42OBJS-$(CONFIG_ASV1_ENCODER) += asv1.o
43OBJS-$(CONFIG_ASV2_DECODER) += asv1.o
44OBJS-$(CONFIG_ASV2_ENCODER) += asv1.o
78a010fb 45OBJS-$(CONFIG_ATRAC3_DECODER) += atrac3.o mdct.o fft.o
bac3be38 46OBJS-$(CONFIG_AVS_DECODER) += avs.o
1e6c6759 47OBJS-$(CONFIG_BETHSOFTVID_DECODER) += bethsoftvideo.o
a29ff6b7 48OBJS-$(CONFIG_BMP_DECODER) += bmp.o
52548eee 49OBJS-$(CONFIG_BMP_ENCODER) += bmpenc.o
9a0ddd09 50OBJS-$(CONFIG_C93_DECODER) += c93.o
844d9012 51OBJS-$(CONFIG_CAVS_DECODER) += cavs.o cavsdec.o cavsdsp.o golomb.o
bac3be38 52OBJS-$(CONFIG_CINEPAK_DECODER) += cinepak.o
bac3be38
MR
53OBJS-$(CONFIG_CLJR_DECODER) += cljr.o
54OBJS-$(CONFIG_CLJR_ENCODER) += cljr.o
78a010fb 55OBJS-$(CONFIG_COOK_DECODER) += cook.o mdct.o fft.o
4302963d 56OBJS-$(CONFIG_CSCD_DECODER) += cscd.o
bac3be38 57OBJS-$(CONFIG_CYUV_DECODER) += cyuv.o
01ca9ac3 58OBJS-$(CONFIG_DCA_DECODER) += dca.o
d3dc629c 59OBJS-$(CONFIG_DNXHD_DECODER) += dnxhddec.o dnxhddata.o
bcf8eb11 60OBJS-$(CONFIG_DNXHD_ENCODER) += dnxhdenc.o dnxhddata.o mpegvideo_enc.o motion_est.o ratecontrol.o
72450e50
BC
61OBJS-$(CONFIG_DSICINVIDEO_DECODER) += dsicinav.o
62OBJS-$(CONFIG_DSICINAUDIO_DECODER) += dsicinav.o
bac3be38
MR
63OBJS-$(CONFIG_DVBSUB_DECODER) += dvbsubdec.o
64OBJS-$(CONFIG_DVBSUB_ENCODER) += dvbsub.o
ebd6a694 65OBJS-$(CONFIG_DVDSUB_DECODER) += dvdsubdec.o
bac3be38
MR
66OBJS-$(CONFIG_DVDSUB_ENCODER) += dvdsubenc.o
67OBJS-$(CONFIG_DVVIDEO_DECODER) += dv.o
68OBJS-$(CONFIG_DVVIDEO_ENCODER) += dv.o
33a0dd37 69OBJS-$(CONFIG_DXA_DECODER) += dxa.o
bac3be38 70OBJS-$(CONFIG_EIGHTBPS_DECODER) += 8bps.o
0d336e44
AJ
71OBJS-$(CONFIG_FFV1_DECODER) += ffv1.o rangecoder.o golomb.o
72OBJS-$(CONFIG_FFV1_ENCODER) += ffv1.o rangecoder.o
a29ff6b7
MR
73OBJS-$(CONFIG_FFVHUFF_DECODER) += huffyuv.o
74OBJS-$(CONFIG_FFVHUFF_ENCODER) += huffyuv.o
6f9a35bb
PI
75OBJS-$(CONFIG_FLAC_DECODER) += flac.o golomb.o
76OBJS-$(CONFIG_FLAC_ENCODER) += flacenc.o golomb.o
90d912af
MR
77OBJS-$(CONFIG_FLASHSV_DECODER) += flashsv.o
78OBJS-$(CONFIG_FLASHSV_ENCODER) += flashsvenc.o
bac3be38 79OBJS-$(CONFIG_FLIC_DECODER) += flicvideo.o
df8e3460 80OBJS-$(CONFIG_FLV_DECODER) += h263dec.o h263.o
a9fb241c 81OBJS-$(CONFIG_FLV_ENCODER) += mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
bac3be38 82OBJS-$(CONFIG_FOURXM_DECODER) += 4xm.o
437c2079 83OBJS-$(CONFIG_FRAPS_DECODER) += fraps.o huffman.o
ffc5430b 84OBJS-$(CONFIG_GIF_DECODER) += gifdec.o lzw.o
93481fe5 85OBJS-$(CONFIG_GIF_ENCODER) += gif.o
d632239c 86OBJS-$(CONFIG_H261_DECODER) += h261dec.o h261.o
a9fb241c 87OBJS-$(CONFIG_H261_ENCODER) += h261enc.o h261.o mpegvideo_enc.o motion_est.o ratecontrol.o
df8e3460
AJ
88OBJS-$(CONFIG_H263_DECODER) += h263dec.o h263.o
89OBJS-$(CONFIG_H263I_DECODER) += h263dec.o h263.o
a9fb241c
AJ
90OBJS-$(CONFIG_H263_ENCODER) += mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
91OBJS-$(CONFIG_H263P_ENCODER) += mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
c92a30bb 92OBJS-$(CONFIG_H264_DECODER) += h264.o h264idct.o h264pred.o cabac.o golomb.o
bd38efff 93OBJS-$(CONFIG_H264_ENCODER) += h264enc.o h264dspenc.o
bac3be38
MR
94OBJS-$(CONFIG_HUFFYUV_DECODER) += huffyuv.o
95OBJS-$(CONFIG_HUFFYUV_ENCODER) += huffyuv.o
bac3be38 96OBJS-$(CONFIG_IDCIN_DECODER) += idcinvideo.o
78a010fb 97OBJS-$(CONFIG_IMC_DECODER) += imc.o mdct.o fft.o
bac3be38
MR
98OBJS-$(CONFIG_INDEO2_DECODER) += indeo2.o
99OBJS-$(CONFIG_INDEO3_DECODER) += indeo3.o
100OBJS-$(CONFIG_INTERPLAY_VIDEO_DECODER) += interplayvideo.o
f7e79298 101OBJS-$(CONFIG_INTERPLAY_DPCM_DECODER) += dpcm.o
6f9a35bb
PI
102OBJS-$(CONFIG_JPEGLS_DECODER) += jpeglsdec.o jpegls.o mjpegdec.o mjpeg.o golomb.o
103OBJS-$(CONFIG_JPEGLS_ENCODER) += jpeglsenc.o jpegls.o golomb.o
bac3be38 104OBJS-$(CONFIG_KMVC_DECODER) += kmvc.o
a9fb241c 105OBJS-$(CONFIG_LJPEG_ENCODER) += ljpegenc.o mjpegenc.o mjpeg.o mpegvideo_enc.o motion_est.o ratecontrol.o
6f9a35bb 106OBJS-$(CONFIG_LOCO_DECODER) += loco.o golomb.o
bac3be38
MR
107OBJS-$(CONFIG_MACE3_DECODER) += mace.o
108OBJS-$(CONFIG_MACE6_DECODER) += mace.o
5acd8d9e 109OBJS-$(CONFIG_MJPEG_DECODER) += mjpegdec.o mjpeg.o
a9fb241c 110OBJS-$(CONFIG_MJPEG_ENCODER) += mjpegenc.o mjpeg.o mpegvideo_enc.o motion_est.o ratecontrol.o
0a59a18b 111OBJS-$(CONFIG_MJPEGB_DECODER) += mjpegbdec.o mjpegdec.o mjpeg.o
a29ff6b7 112OBJS-$(CONFIG_MMVIDEO_DECODER) += mmvideo.o
9f77cab2 113OBJS-$(CONFIG_MP2_DECODER) += mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
08aa2c9b 114OBJS-$(CONFIG_MP2_ENCODER) += mpegaudioenc.o mpegaudio.o mpegaudiodata.o
9f77cab2
AJ
115OBJS-$(CONFIG_MP3_DECODER) += mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
116OBJS-$(CONFIG_MP3ADU_DECODER) += mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
117OBJS-$(CONFIG_MP3ON4_DECODER) += mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
24e649af 118OBJS-$(CONFIG_MPC7_DECODER) += mpc7.o mpc.o mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
12877faf 119OBJS-$(CONFIG_MPC8_DECODER) += mpc8.o mpc.o mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
a9fb241c
AJ
120OBJS-$(CONFIG_MPEG1VIDEO_ENCODER) += mpeg12enc.o mpeg12data.o mpegvideo_enc.o motion_est.o ratecontrol.o
121OBJS-$(CONFIG_MPEG2VIDEO_ENCODER) += mpeg12enc.o mpeg12data.o mpegvideo_enc.o motion_est.o ratecontrol.o
df8e3460 122OBJS-$(CONFIG_MPEG4_DECODER) += h263dec.o h263.o
a9fb241c 123OBJS-$(CONFIG_MPEG4_ENCODER) += mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
df8e3460 124OBJS-$(CONFIG_MSMPEG4V1_DECODER) += msmpeg4.o msmpeg4data.o h263dec.o h263.o
a9fb241c 125OBJS-$(CONFIG_MSMPEG4V1_ENCODER) += msmpeg4.o msmpeg4data.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
df8e3460 126OBJS-$(CONFIG_MSMPEG4V2_DECODER) += msmpeg4.o msmpeg4data.o h263dec.o h263.o
a9fb241c 127OBJS-$(CONFIG_MSMPEG4V2_ENCODER) += msmpeg4.o msmpeg4data.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
df8e3460 128OBJS-$(CONFIG_MSMPEG4V3_DECODER) += msmpeg4.o msmpeg4data.o h263dec.o h263.o
a9fb241c 129OBJS-$(CONFIG_MSMPEG4V3_ENCODER) += msmpeg4.o msmpeg4data.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
bac3be38
MR
130OBJS-$(CONFIG_MSRLE_DECODER) += msrle.o
131OBJS-$(CONFIG_MSVIDEO1_DECODER) += msvideo1.o
00eb27f1 132OBJS-$(CONFIG_MSZH_DECODER) += lcldec.o
636b13c5 133OBJS-$(CONFIG_NELLYMOSER_DECODER) += nellymoserdec.o
4302963d 134OBJS-$(CONFIG_NUV_DECODER) += nuv.o rtjpeg.o
9ac2e797
AJ
135OBJS-$(CONFIG_PAM_ENCODER) += pnmenc.o pnm.o
136OBJS-$(CONFIG_PBM_ENCODER) += pnmenc.o pnm.o
137OBJS-$(CONFIG_PGM_ENCODER) += pnmenc.o pnm.o
138OBJS-$(CONFIG_PGMYUV_ENCODER) += pnmenc.o pnm.o
b958a7f1
MR
139OBJS-$(CONFIG_PNG_DECODER) += png.o pngdec.o
140OBJS-$(CONFIG_PNG_ENCODER) += png.o pngenc.o
9ac2e797 141OBJS-$(CONFIG_PPM_ENCODER) += pnmenc.o pnm.o
b46d68c6 142OBJS-$(CONFIG_PTX_DECODER) += ptx.o
9f77cab2 143OBJS-$(CONFIG_QDM2_DECODER) += qdm2.o mdct.o fft.o mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
bac3be38
MR
144OBJS-$(CONFIG_QDRAW_DECODER) += qdrw.o
145OBJS-$(CONFIG_QPEG_DECODER) += qpeg.o
146OBJS-$(CONFIG_QTRLE_DECODER) += qtrle.o
d3b7406c 147OBJS-$(CONFIG_QTRLE_ENCODER) += qtrleenc.o
bac3be38
MR
148OBJS-$(CONFIG_RA_144_DECODER) += ra144.o
149OBJS-$(CONFIG_RA_288_DECODER) += ra288.o
3a763f0f
AJ
150OBJS-$(CONFIG_RAWVIDEO_DECODER) += rawdec.o
151OBJS-$(CONFIG_RAWVIDEO_ENCODER) += rawenc.o
55c970e3 152OBJS-$(CONFIG_ROQ_DECODER) += roqvideodec.o roqvideo.o
03e3e765 153OBJS-$(CONFIG_ROQ_ENCODER) += roqvideoenc.o roqvideo.o elbg.o
f7e79298 154OBJS-$(CONFIG_ROQ_DPCM_DECODER) += dpcm.o
f025588b 155OBJS-$(CONFIG_ROQ_DPCM_ENCODER) += roqaudioenc.o
bac3be38 156OBJS-$(CONFIG_RPZA_DECODER) += rpza.o
df8e3460 157OBJS-$(CONFIG_RV10_DECODER) += rv10.o h263.o
a9fb241c 158OBJS-$(CONFIG_RV10_ENCODER) += rv10.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
df8e3460 159OBJS-$(CONFIG_RV20_DECODER) += rv10.o h263.o
a9fb241c 160OBJS-$(CONFIG_RV20_ENCODER) += rv10.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
2d99eed1
XS
161OBJS-$(CONFIG_SGI_DECODER) += sgidec.o
162OBJS-$(CONFIG_SGI_ENCODER) += sgienc.o rle.o
6f9a35bb 163OBJS-$(CONFIG_SHORTEN_DECODER) += shorten.o golomb.o
bac3be38 164OBJS-$(CONFIG_SMACKAUD_DECODER) += smacker.o
a29ff6b7 165OBJS-$(CONFIG_SMACKER_DECODER) += smacker.o
bac3be38 166OBJS-$(CONFIG_SMC_DECODER) += smc.o
0d336e44 167OBJS-$(CONFIG_SNOW_DECODER) += snow.o rangecoder.o
a9fb241c 168OBJS-$(CONFIG_SNOW_ENCODER) += snow.o rangecoder.o motion_est.o ratecontrol.o h263.o
f7e79298 169OBJS-$(CONFIG_SOL_DPCM_DECODER) += dpcm.o
6f9a35bb
PI
170OBJS-$(CONFIG_SONIC_DECODER) += sonic.o golomb.o
171OBJS-$(CONFIG_SONIC_ENCODER) += sonic.o golomb.o
172OBJS-$(CONFIG_SONIC_LS_ENCODER) += sonic.o golomb.o
40cce9ff 173OBJS-$(CONFIG_SP5X_DECODER) += sp5xdec.o mjpegdec.o mjpeg.o
df8e3460 174OBJS-$(CONFIG_SVQ1_DECODER) += svq1dec.o svq1.o h263.o
bdf5df08 175OBJS-$(CONFIG_SVQ1_ENCODER) += svq1enc.o svq1.o motion_est.o h263.o
c92a30bb 176OBJS-$(CONFIG_SVQ3_DECODER) += h264.o h264idct.o h264pred.o cabac.o golomb.o
3689cf16 177OBJS-$(CONFIG_TARGA_DECODER) += targa.o
1ca286e1 178OBJS-$(CONFIG_TARGA_ENCODER) += targaenc.o rle.o
9b5dc867 179OBJS-$(CONFIG_THEORA_DECODER) += vp3.o xiph.o vp3dsp.o
5acd8d9e 180OBJS-$(CONFIG_THP_DECODER) += mjpegdec.o mjpeg.o
9a64e044 181OBJS-$(CONFIG_TIERTEXSEQVIDEO_DECODER) += tiertexseqv.o
ffc5430b 182OBJS-$(CONFIG_TIFF_DECODER) += tiff.o lzw.o
efd2afc2 183OBJS-$(CONFIG_TIFF_ENCODER) += tiffenc.o rle.o lzwenc.o
bac3be38
MR
184OBJS-$(CONFIG_TRUEMOTION1_DECODER) += truemotion1.o
185OBJS-$(CONFIG_TRUEMOTION2_DECODER) += truemotion2.o
186OBJS-$(CONFIG_TRUESPEECH_DECODER) += truespeech.o
bac3be38 187OBJS-$(CONFIG_TSCC_DECODER) += tscc.o
a29ff6b7 188OBJS-$(CONFIG_TTA_DECODER) += tta.o
1ca779e7 189OBJS-$(CONFIG_TXD_DECODER) += txd.o s3tc.o
bac3be38 190OBJS-$(CONFIG_ULTI_DECODER) += ulti.o
66f7679c 191OBJS-$(CONFIG_VB_DECODER) += vb.o
9abc7e0f 192OBJS-$(CONFIG_VC1_DECODER) += vc1.o vc1data.o vc1dsp.o msmpeg4data.o intrax8.o intrax8dsp.o
bac3be38
MR
193OBJS-$(CONFIG_VCR1_DECODER) += vcr1.o
194OBJS-$(CONFIG_VCR1_ENCODER) += vcr1.o
bac3be38 195OBJS-$(CONFIG_VMDAUDIO_DECODER) += vmdav.o
a29ff6b7 196OBJS-$(CONFIG_VMDVIDEO_DECODER) += vmdav.o
eb57c889 197OBJS-$(CONFIG_VMNC_DECODER) += vmnc.o
78a010fb
BL
198OBJS-$(CONFIG_VORBIS_DECODER) += vorbis_dec.o vorbis.o vorbis_data.o xiph.o mdct.o fft.o
199OBJS-$(CONFIG_VORBIS_ENCODER) += vorbis_enc.o vorbis.o vorbis_data.o mdct.o fft.o
9b5dc867
PI
200OBJS-$(CONFIG_VP3_DECODER) += vp3.o vp3dsp.o
201OBJS-$(CONFIG_VP5_DECODER) += vp5.o vp56.o vp56data.o vp3dsp.o
f28b1048
AJ
202OBJS-$(CONFIG_VP6_DECODER) += vp6.o vp56.o vp56data.o vp3dsp.o huffman.o
203OBJS-$(CONFIG_VP6A_DECODER) += vp6.o vp56.o vp56data.o vp3dsp.o huffman.o
204OBJS-$(CONFIG_VP6F_DECODER) += vp6.o vp56.o vp56data.o vp3dsp.o huffman.o
bac3be38 205OBJS-$(CONFIG_VQA_DECODER) += vqavideo.o
730581f3 206OBJS-$(CONFIG_WAVPACK_DECODER) += wavpack.o
78a010fb
BL
207OBJS-$(CONFIG_WMAV1_DECODER) += wmadec.o wma.o mdct.o fft.o
208OBJS-$(CONFIG_WMAV2_DECODER) += wmadec.o wma.o mdct.o fft.o
209OBJS-$(CONFIG_WMAV1_ENCODER) += wmaenc.o wma.o mdct.o fft.o
210OBJS-$(CONFIG_WMAV2_ENCODER) += wmaenc.o wma.o mdct.o fft.o
df8e3460 211OBJS-$(CONFIG_WMV1_DECODER) += h263dec.o h263.o
a9fb241c 212OBJS-$(CONFIG_WMV1_ENCODER) += mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
4d4f59d7
AJ
213OBJS-$(CONFIG_WMV2_DECODER) += wmv2dec.o wmv2.o msmpeg4.o msmpeg4data.o h263dec.o h263.o intrax8.o intrax8dsp.o
214OBJS-$(CONFIG_WMV2_ENCODER) += wmv2enc.o wmv2.o msmpeg4.o msmpeg4data.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
986a865f 215OBJS-$(CONFIG_WMV3_DECODER) += vc1.o vc1data.o vc1dsp.o
bac3be38
MR
216OBJS-$(CONFIG_WNV1_DECODER) += wnv1.o
217OBJS-$(CONFIG_WS_SND1_DECODER) += ws-snd1.o
f7e79298 218OBJS-$(CONFIG_XAN_DPCM_DECODER) += dpcm.o
bac3be38
MR
219OBJS-$(CONFIG_XAN_WC3_DECODER) += xan.o
220OBJS-$(CONFIG_XAN_WC4_DECODER) += xan.o
221OBJS-$(CONFIG_XL_DECODER) += xl.o
7e2643ae 222OBJS-$(CONFIG_XSUB_DECODER) += xsubdec.o
00eb27f1
MR
223OBJS-$(CONFIG_ZLIB_DECODER) += lcldec.o
224OBJS-$(CONFIG_ZLIB_ENCODER) += lclenc.o
bac3be38 225OBJS-$(CONFIG_ZMBV_DECODER) += zmbv.o
3dd52c5a 226OBJS-$(CONFIG_ZMBV_ENCODER) += zmbvenc.o
bac3be38 227
327dcfd3
MR
228OBJS-$(CONFIG_PCM_S32LE_DECODER) += pcm.o
229OBJS-$(CONFIG_PCM_S32LE_ENCODER) += pcm.o
230OBJS-$(CONFIG_PCM_S32BE_DECODER) += pcm.o
231OBJS-$(CONFIG_PCM_S32BE_ENCODER) += pcm.o
232OBJS-$(CONFIG_PCM_U32LE_DECODER) += pcm.o
233OBJS-$(CONFIG_PCM_U32LE_ENCODER) += pcm.o
234OBJS-$(CONFIG_PCM_U32BE_DECODER) += pcm.o
235OBJS-$(CONFIG_PCM_U32BE_ENCODER) += pcm.o
236OBJS-$(CONFIG_PCM_S24LE_DECODER) += pcm.o
237OBJS-$(CONFIG_PCM_S24LE_ENCODER) += pcm.o
238OBJS-$(CONFIG_PCM_S24BE_DECODER) += pcm.o
239OBJS-$(CONFIG_PCM_S24BE_ENCODER) += pcm.o
240OBJS-$(CONFIG_PCM_U24LE_DECODER) += pcm.o
241OBJS-$(CONFIG_PCM_U24LE_ENCODER) += pcm.o
242OBJS-$(CONFIG_PCM_U24BE_DECODER) += pcm.o
243OBJS-$(CONFIG_PCM_U24BE_ENCODER) += pcm.o
244OBJS-$(CONFIG_PCM_S24DAUD_DECODER) += pcm.o
245OBJS-$(CONFIG_PCM_S24DAUD_ENCODER) += pcm.o
246OBJS-$(CONFIG_PCM_S16LE_DECODER) += pcm.o
247OBJS-$(CONFIG_PCM_S16LE_ENCODER) += pcm.o
725d86bf 248OBJS-$(CONFIG_PCM_S16LE_PLANAR_DECODER)+= pcm.o
327dcfd3
MR
249OBJS-$(CONFIG_PCM_S16BE_DECODER) += pcm.o
250OBJS-$(CONFIG_PCM_S16BE_ENCODER) += pcm.o
251OBJS-$(CONFIG_PCM_U16LE_DECODER) += pcm.o
252OBJS-$(CONFIG_PCM_U16LE_ENCODER) += pcm.o
253OBJS-$(CONFIG_PCM_U16BE_DECODER) += pcm.o
254OBJS-$(CONFIG_PCM_U16BE_ENCODER) += pcm.o
255OBJS-$(CONFIG_PCM_S8_DECODER) += pcm.o
256OBJS-$(CONFIG_PCM_S8_ENCODER) += pcm.o
257OBJS-$(CONFIG_PCM_U8_DECODER) += pcm.o
258OBJS-$(CONFIG_PCM_U8_ENCODER) += pcm.o
259OBJS-$(CONFIG_PCM_ALAW_DECODER) += pcm.o
260OBJS-$(CONFIG_PCM_ALAW_ENCODER) += pcm.o
261OBJS-$(CONFIG_PCM_MULAW_DECODER) += pcm.o
262OBJS-$(CONFIG_PCM_MULAW_ENCODER) += pcm.o
263
264OBJS-$(CONFIG_ADPCM_4XM_DECODER) += adpcm.o
76c443c6 265OBJS-$(CONFIG_ADPCM_ADX_DECODER) += adxdec.o
c31dea61 266OBJS-$(CONFIG_ADPCM_ADX_ENCODER) += adxenc.o
327dcfd3 267OBJS-$(CONFIG_ADPCM_CT_DECODER) += adpcm.o
327dcfd3 268OBJS-$(CONFIG_ADPCM_EA_DECODER) += adpcm.o
e7583962
PR
269OBJS-$(CONFIG_ADPCM_EA_R1_DECODER) += adpcm.o
270OBJS-$(CONFIG_ADPCM_EA_R2_DECODER) += adpcm.o
271OBJS-$(CONFIG_ADPCM_EA_R3_DECODER) += adpcm.o
271b4095 272OBJS-$(CONFIG_ADPCM_EA_XAS_DECODER) += adpcm.o
327dcfd3
MR
273OBJS-$(CONFIG_ADPCM_G726_DECODER) += g726.o
274OBJS-$(CONFIG_ADPCM_G726_ENCODER) += g726.o
3a7f5d07 275OBJS-$(CONFIG_ADPCM_IMA_AMV_DECODER) += adpcm.o
327dcfd3 276OBJS-$(CONFIG_ADPCM_IMA_DK3_DECODER) += adpcm.o
327dcfd3 277OBJS-$(CONFIG_ADPCM_IMA_DK4_DECODER) += adpcm.o
fac84d3c 278OBJS-$(CONFIG_ADPCM_IMA_EA_EACS_DECODER) += adpcm.o
7bb65d89 279OBJS-$(CONFIG_ADPCM_IMA_EA_SEAD_DECODER) += adpcm.o
327dcfd3 280OBJS-$(CONFIG_ADPCM_IMA_QT_DECODER) += adpcm.o
9b1a3ea0 281OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_DECODER) += adpcm.o
327dcfd3
MR
282OBJS-$(CONFIG_ADPCM_IMA_WAV_DECODER) += adpcm.o
283OBJS-$(CONFIG_ADPCM_IMA_WAV_ENCODER) += adpcm.o
284OBJS-$(CONFIG_ADPCM_IMA_WS_DECODER) += adpcm.o
327dcfd3
MR
285OBJS-$(CONFIG_ADPCM_MS_DECODER) += adpcm.o
286OBJS-$(CONFIG_ADPCM_MS_ENCODER) += adpcm.o
287OBJS-$(CONFIG_ADPCM_SBPRO_2_DECODER) += adpcm.o
327dcfd3 288OBJS-$(CONFIG_ADPCM_SBPRO_3_DECODER) += adpcm.o
327dcfd3 289OBJS-$(CONFIG_ADPCM_SBPRO_4_DECODER) += adpcm.o
327dcfd3
MR
290OBJS-$(CONFIG_ADPCM_SWF_DECODER) += adpcm.o
291OBJS-$(CONFIG_ADPCM_SWF_ENCODER) += adpcm.o
d1e0d21f 292OBJS-$(CONFIG_ADPCM_THP_DECODER) += adpcm.o
327dcfd3 293OBJS-$(CONFIG_ADPCM_XA_DECODER) += adpcm.o
327dcfd3
MR
294OBJS-$(CONFIG_ADPCM_YAMAHA_DECODER) += adpcm.o
295OBJS-$(CONFIG_ADPCM_YAMAHA_ENCODER) += adpcm.o
296
5118cae6
BC
297# libavformat dependencies
298OBJS-$(CONFIG_OGG_MUXER) += xiph.o
299
20c9dfe3 300# external codec libraries
6f1af735
DB
301OBJS-$(CONFIG_LIBA52) += liba52.o
302OBJS-$(CONFIG_LIBAMR) += libamr.o
303OBJS-$(CONFIG_LIBFAAC) += libfaac.o
304OBJS-$(CONFIG_LIBFAAD) += libfaad.o
20c9dfe3 305OBJS-$(CONFIG_LIBGSM) += libgsm.o
6f1af735 306OBJS-$(CONFIG_LIBMP3LAME) += libmp3lame.o
150d2772 307OBJS-$(CONFIG_LIBTHEORA) += libtheoraenc.o
6f1af735 308OBJS-$(CONFIG_LIBVORBIS) += libvorbis.o
9097a8e4
DB
309OBJS-$(CONFIG_LIBX264) += libx264.o
310OBJS-$(CONFIG_LIBXVID) += libxvidff.o libxvid_rc.o
23c99253 311
bac3be38 312
99ff31dc
AJ
313OBJS-$(CONFIG_AAC_PARSER) += aac_parser.o aac_ac3_parser.o
314OBJS-$(CONFIG_AC3_PARSER) += ac3_parser.o ac3tab.o aac_ac3_parser.o
c5a60225 315OBJS-$(CONFIG_CAVSVIDEO_PARSER) += cavs_parser.o
98c98e04 316OBJS-$(CONFIG_DCA_PARSER) += dca_parser.o
027f43f0 317OBJS-$(CONFIG_DVBSUB_PARSER) += dvbsub_parser.o
44c56000 318OBJS-$(CONFIG_DVDSUB_PARSER) += dvdsub_parser.o
3883a99b 319OBJS-$(CONFIG_H261_PARSER) += h261_parser.o
c33d9814 320OBJS-$(CONFIG_H263_PARSER) += h263_parser.o
26b4fe82 321OBJS-$(CONFIG_H264_PARSER) += h264_parser.o
b16560a3 322OBJS-$(CONFIG_MJPEG_PARSER) += mjpeg_parser.o
df8e3460 323OBJS-$(CONFIG_MPEG4VIDEO_PARSER) += mpeg4video_parser.o h263.o
2a68cd08 324OBJS-$(CONFIG_MPEGAUDIO_PARSER) += mpegaudio_parser.o mpegaudiodecheader.o mpegaudiodata.o
7f50d4ac 325OBJS-$(CONFIG_MPEGVIDEO_PARSER) += mpegvideo_parser.o
9ac2e797 326OBJS-$(CONFIG_PNM_PARSER) += pnm_parser.o pnm.o
5982ae94 327OBJS-$(CONFIG_VC1_PARSER) += vc1_parser.o
af9e7d18 328
8bf63e1c 329OBJS-$(CONFIG_DUMP_EXTRADATA_BSF) += dump_extradata_bsf.o
bdfae2a5 330OBJS-$(CONFIG_H264_MP4TOANNEXB_BSF) += h264_mp4toannexb_bsf.o
1e97ce4a
DB
331OBJS-$(CONFIG_IMX_DUMP_HEADER_BSF) += imx_dump_header_bsf.o
332OBJS-$(CONFIG_MJPEGA_DUMP_HEADER_BSF) += mjpega_dump_header_bsf.o
a975d9e2 333OBJS-$(CONFIG_MP3_HEADER_COMPRESS_BSF) += mp3_header_compress_bsf.o
b57eed12 334OBJS-$(CONFIG_MP3_HEADER_DECOMPRESS_BSF) += mp3_header_decompress_bsf.o mpegaudiodata.o
1e97ce4a
DB
335OBJS-$(CONFIG_NOISE_BSF) += noise_bsf.o
336OBJS-$(CONFIG_REMOVE_EXTRADATA_BSF) += remove_extradata_bsf.o
cd61e407 337
1e97ce4a
DB
338OBJS-$(HAVE_BEOSTHREADS) += beosthread.o
339OBJS-$(HAVE_OS2THREADS) += os2thread.o
bac3be38
MR
340OBJS-$(HAVE_PTHREADS) += pthread.o
341OBJS-$(HAVE_W32THREADS) += w32thread.o
bac3be38
MR
342
343OBJS-$(HAVE_XVMC_ACCEL) += xvmcvideo.o
bb4c2140 344
790c9ca7
LA
345ifneq ($(CONFIG_SWSCALER),yes)
346OBJS += imgresample.o
347endif
348
1026a8d4 349# processor-specific code
3f5b56e5 350ifeq ($(HAVE_MMX),yes)
7fd265a7
DB
351OBJS += i386/fdct_mmx.o \
352 i386/cputest.o \
353 i386/dsputil_mmx.o \
354 i386/mpegvideo_mmx.o \
355 i386/motion_est_mmx.o \
356 i386/simple_idct_mmx.o \
0eb59ddb 357 i386/idct_mmx_xvid.o \
7fd265a7 358 i386/fft_sse.o \
7fd265a7
DB
359 i386/fft_3dn.o \
360 i386/fft_3dn2.o \
7fd265a7 361
3dc09ed1 362OBJS-$(CONFIG_GPL) += i386/idct_mmx.o
770202c3 363
3dc09ed1 364OBJS-$(CONFIG_CAVS_DECODER) += i386/cavsdsp_mmx.o
770202c3 365OBJS-$(CONFIG_SNOW_DECODER) += i386/snowdsp_mmx.o
9b5dc867
PI
366OBJS-$(CONFIG_VP3_DECODER) += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
367OBJS-$(CONFIG_VP5_DECODER) += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
368OBJS-$(CONFIG_VP6_DECODER) += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
0cd05c08 369OBJS-$(CONFIG_VP6A_DECODER) += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
00b5ec15 370OBJS-$(CONFIG_VP6F_DECODER) += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
de6d9b64
FB
371endif
372
18ca9a4a 373ASM_OBJS-$(ARCH_ARMV4L) += armv4l/jrevdct_arm.o \
bac3be38 374 armv4l/simple_idct_arm.o \
5064755e
DB
375 armv4l/dsputil_arm_s.o \
376
18ca9a4a 377OBJS-$(ARCH_ARMV4L) += armv4l/dsputil_arm.o \
5064755e
DB
378 armv4l/mpegvideo_arm.o \
379
3f5b56e5 380OBJS-$(HAVE_IWMMXT) += armv4l/dsputil_iwmmxt.o \
5064755e
DB
381 armv4l/mpegvideo_iwmmxt.o \
382
3f5b56e5 383ASM_OBJS-$(HAVE_ARMV5TE) += armv4l/simple_idct_armv5te.o \
7a886063 384 armv4l/mpegvideo_armv5te.o \
bac3be38 385
3f5b56e5 386ASM_OBJS-$(HAVE_ARMV6) += armv4l/simple_idct_armv6.o \
7d42886b 387
b146873c 388OBJS-$(HAVE_VIS) += sparc/dsputil_vis.o \
d9420d4d 389 sparc/simple_idct_vis.o \
5064755e 390
5064755e 391OBJS-$(HAVE_MLIB) += mlib/dsputil_mlib.o \
6ad1fa5a 392
18ca9a4a 393OBJS-$(ARCH_ALPHA) += alpha/dsputil_alpha.o \
1e97ce4a 394 alpha/motion_est_alpha.o \
bac3be38
MR
395 alpha/mpegvideo_alpha.o \
396 alpha/simple_idct_alpha.o \
5064755e 397
18ca9a4a 398ASM_OBJS-$(ARCH_ALPHA) += alpha/dsputil_alpha_asm.o \
5064755e
DB
399 alpha/motion_est_mvi_asm.o \
400
18ca9a4a 401OBJS-$(ARCH_POWERPC) += ppc/dsputil_ppc.o \
bac3be38 402
3f5b56e5 403OBJS-$(HAVE_MMI) += ps2/dsputil_mmi.o \
bac3be38 404 ps2/idct_mmi.o \
5064755e
DB
405 ps2/mpegvideo_mmi.o \
406
18ca9a4a 407OBJS-$(ARCH_SH4) += sh4/idct_sh4.o \
5064755e 408 sh4/dsputil_align.o \
1e97ce4a 409 sh4/dsputil_sh4.o \
5064755e 410
89523bee 411ALTIVEC-OBJS-yes += ppc/dsputil_altivec.o \
bac3be38 412 ppc/fdct_altivec.o \
1e97ce4a 413 ppc/fft_altivec.o \
5064755e 414 ppc/float_altivec.o \
1e97ce4a
DB
415 ppc/gmc_altivec.o \
416 ppc/idct_altivec.o \
1f1aadc3 417 ppc/int_altivec.o \
1e97ce4a 418 ppc/mpegvideo_altivec.o \
5064755e 419
89523bee
LB
420ALTIVEC-OBJS-$(CONFIG_H264_DECODER) += ppc/h264_altivec.o
421ALTIVEC-OBJS-$(CONFIG_SNOW_DECODER) += ppc/snow_altivec.o
422ALTIVEC-OBJS-$(CONFIG_VC1_DECODER) += ppc/vc1dsp_altivec.o
423ALTIVEC-OBJS-$(CONFIG_WMV3_DECODER) += ppc/vc1dsp_altivec.o
424
425# -maltivec is needed in order to build AltiVec code.
426$(ALTIVEC-OBJS-yes): CFLAGS += -maltivec -mabi=altivec
427
428# check_altivec must be built without -maltivec
429OBJS-$(HAVE_ALTIVEC) += $(ALTIVEC-OBJS-yes) \
430 ppc/check_altivec.o
8cff89be 431
18ca9a4a 432OBJS-$(ARCH_BFIN) += bfin/dsputil_bfin.o \
1a822d30 433 bfin/mpegvideo_bfin.o \
b9dc3279 434 bfin/vp3_bfin.o \
bac3be38 435
18ca9a4a 436ASM_OBJS-$(ARCH_BFIN) += bfin/pixels_bfin.o \
67fd620c 437 bfin/fdct_bfin.o \
1e97ce4a 438 bfin/idct_bfin.o \
b9dc3279 439 bfin/vp3_idct_bfin.o \
67fd620c 440
14f29f79
DB
441EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
442
4bdd05e7 443NAME=avcodec
f3b60109
DB
444LIBVERSION=$(LAVCVERSION)
445LIBMAJOR=$(LAVCMAJOR)
e164fbfe 446
997baf01 447include ../common.mak
8b2121e3 448
c7f1a2f5 449clean::
8b2121e3 450 rm -f \
1e98dffb 451 alpha/*.o alpha/*~ \
e9bfae45 452 armv4l/*.o armv4l/*~ \
18b8b43b 453 bfin/*.o bfin/*~ \
e9bfae45
DB
454 i386/*.o i386/*~ \
455 mlib/*.o mlib/*~ \
59925ef2 456 ppc/*.o ppc/*~ \
d46aba26 457 ps2/*.o ps2/*~ \
0c6bd2ea 458 sh4/*.o sh4/*~ \
bb476ff3 459 sparc/*.o sparc/*~ \
57514323 460 apiexample $(TESTS)
d663a1fd 461
7f4f3e16 462TESTS= imgresample-test fft-test dct-test
18ca9a4a 463ifeq ($(ARCH_X86),yes)
2458c5c1 464TESTS+= cpuid-test motion-test
7f4f3e16
DB
465endif
466
467tests: apiexample $(TESTS)
468
24743a76 469apiexample: apiexample.o $(LIBNAME)
de6d9b64 470
2458c5c1 471cpuid-test: i386/cputest.c
34933442 472 $(CC) $(CFLAGS) -DTEST -o $@ $<
c10e9f70 473
24743a76 474dct-test: dct-test.o fdctref.o $(LIBNAME)
1e97ce4a 475
24743a76 476fft-test: fft-test.o $(LIBNAME)
1e97ce4a 477
24743a76 478imgresample-test: imgresample.c $(LIBNAME)
9933dc71 479 $(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS)
de6d9b64 480
24743a76 481motion-test: motion-test.o $(LIBNAME)
4300403e 482
73508bc6 483.PHONY: tests