Fix MSVC identification, patch by Eddie Pang.
[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 61OBJS-$(CONFIG_DSICINAUDIO_DECODER) += dsicinav.o
379374ea 62OBJS-$(CONFIG_DSICINVIDEO_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
f7e79298 100OBJS-$(CONFIG_INTERPLAY_DPCM_DECODER) += dpcm.o
379374ea 101OBJS-$(CONFIG_INTERPLAY_VIDEO_DECODER) += interplayvideo.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
8dcbcef6 133OBJS-$(CONFIG_NELLYMOSER_DECODER) += nellymoserdec.o mdct.o fft.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
b4abe1d1 137OBJS-$(CONFIG_PCX_DECODER) += pcx.o
9ac2e797
AJ
138OBJS-$(CONFIG_PGM_ENCODER) += pnmenc.o pnm.o
139OBJS-$(CONFIG_PGMYUV_ENCODER) += pnmenc.o pnm.o
b958a7f1
MR
140OBJS-$(CONFIG_PNG_DECODER) += png.o pngdec.o
141OBJS-$(CONFIG_PNG_ENCODER) += png.o pngenc.o
9ac2e797 142OBJS-$(CONFIG_PPM_ENCODER) += pnmenc.o pnm.o
b46d68c6 143OBJS-$(CONFIG_PTX_DECODER) += ptx.o
9f77cab2 144OBJS-$(CONFIG_QDM2_DECODER) += qdm2.o mdct.o fft.o mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
bac3be38
MR
145OBJS-$(CONFIG_QDRAW_DECODER) += qdrw.o
146OBJS-$(CONFIG_QPEG_DECODER) += qpeg.o
147OBJS-$(CONFIG_QTRLE_DECODER) += qtrle.o
d3b7406c 148OBJS-$(CONFIG_QTRLE_ENCODER) += qtrleenc.o
bac3be38
MR
149OBJS-$(CONFIG_RA_144_DECODER) += ra144.o
150OBJS-$(CONFIG_RA_288_DECODER) += ra288.o
3a763f0f
AJ
151OBJS-$(CONFIG_RAWVIDEO_DECODER) += rawdec.o
152OBJS-$(CONFIG_RAWVIDEO_ENCODER) += rawenc.o
55c970e3 153OBJS-$(CONFIG_ROQ_DECODER) += roqvideodec.o roqvideo.o
03e3e765 154OBJS-$(CONFIG_ROQ_ENCODER) += roqvideoenc.o roqvideo.o elbg.o
f7e79298 155OBJS-$(CONFIG_ROQ_DPCM_DECODER) += dpcm.o
f025588b 156OBJS-$(CONFIG_ROQ_DPCM_ENCODER) += roqaudioenc.o
bac3be38 157OBJS-$(CONFIG_RPZA_DECODER) += rpza.o
df8e3460 158OBJS-$(CONFIG_RV10_DECODER) += rv10.o h263.o
a9fb241c 159OBJS-$(CONFIG_RV10_ENCODER) += rv10.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
df8e3460 160OBJS-$(CONFIG_RV20_DECODER) += rv10.o h263.o
a9fb241c 161OBJS-$(CONFIG_RV20_ENCODER) += rv10.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
2d99eed1
XS
162OBJS-$(CONFIG_SGI_DECODER) += sgidec.o
163OBJS-$(CONFIG_SGI_ENCODER) += sgienc.o rle.o
6f9a35bb 164OBJS-$(CONFIG_SHORTEN_DECODER) += shorten.o golomb.o
bac3be38 165OBJS-$(CONFIG_SMACKAUD_DECODER) += smacker.o
a29ff6b7 166OBJS-$(CONFIG_SMACKER_DECODER) += smacker.o
bac3be38 167OBJS-$(CONFIG_SMC_DECODER) += smc.o
0d336e44 168OBJS-$(CONFIG_SNOW_DECODER) += snow.o rangecoder.o
a9fb241c 169OBJS-$(CONFIG_SNOW_ENCODER) += snow.o rangecoder.o motion_est.o ratecontrol.o h263.o
f7e79298 170OBJS-$(CONFIG_SOL_DPCM_DECODER) += dpcm.o
6f9a35bb
PI
171OBJS-$(CONFIG_SONIC_DECODER) += sonic.o golomb.o
172OBJS-$(CONFIG_SONIC_ENCODER) += sonic.o golomb.o
173OBJS-$(CONFIG_SONIC_LS_ENCODER) += sonic.o golomb.o
40cce9ff 174OBJS-$(CONFIG_SP5X_DECODER) += sp5xdec.o mjpegdec.o mjpeg.o
3c808d8c 175OBJS-$(CONFIG_SUNRAST_DECODER) += sunrast.o
df8e3460 176OBJS-$(CONFIG_SVQ1_DECODER) += svq1dec.o svq1.o h263.o
bdf5df08 177OBJS-$(CONFIG_SVQ1_ENCODER) += svq1enc.o svq1.o motion_est.o h263.o
c92a30bb 178OBJS-$(CONFIG_SVQ3_DECODER) += h264.o h264idct.o h264pred.o cabac.o golomb.o
3689cf16 179OBJS-$(CONFIG_TARGA_DECODER) += targa.o
1ca286e1 180OBJS-$(CONFIG_TARGA_ENCODER) += targaenc.o rle.o
9b5dc867 181OBJS-$(CONFIG_THEORA_DECODER) += vp3.o xiph.o vp3dsp.o
5acd8d9e 182OBJS-$(CONFIG_THP_DECODER) += mjpegdec.o mjpeg.o
9a64e044 183OBJS-$(CONFIG_TIERTEXSEQVIDEO_DECODER) += tiertexseqv.o
ffc5430b 184OBJS-$(CONFIG_TIFF_DECODER) += tiff.o lzw.o
efd2afc2 185OBJS-$(CONFIG_TIFF_ENCODER) += tiffenc.o rle.o lzwenc.o
bac3be38
MR
186OBJS-$(CONFIG_TRUEMOTION1_DECODER) += truemotion1.o
187OBJS-$(CONFIG_TRUEMOTION2_DECODER) += truemotion2.o
188OBJS-$(CONFIG_TRUESPEECH_DECODER) += truespeech.o
bac3be38 189OBJS-$(CONFIG_TSCC_DECODER) += tscc.o
a29ff6b7 190OBJS-$(CONFIG_TTA_DECODER) += tta.o
1ca779e7 191OBJS-$(CONFIG_TXD_DECODER) += txd.o s3tc.o
bac3be38 192OBJS-$(CONFIG_ULTI_DECODER) += ulti.o
66f7679c 193OBJS-$(CONFIG_VB_DECODER) += vb.o
9abc7e0f 194OBJS-$(CONFIG_VC1_DECODER) += vc1.o vc1data.o vc1dsp.o msmpeg4data.o intrax8.o intrax8dsp.o
bac3be38
MR
195OBJS-$(CONFIG_VCR1_DECODER) += vcr1.o
196OBJS-$(CONFIG_VCR1_ENCODER) += vcr1.o
bac3be38 197OBJS-$(CONFIG_VMDAUDIO_DECODER) += vmdav.o
a29ff6b7 198OBJS-$(CONFIG_VMDVIDEO_DECODER) += vmdav.o
eb57c889 199OBJS-$(CONFIG_VMNC_DECODER) += vmnc.o
78a010fb
BL
200OBJS-$(CONFIG_VORBIS_DECODER) += vorbis_dec.o vorbis.o vorbis_data.o xiph.o mdct.o fft.o
201OBJS-$(CONFIG_VORBIS_ENCODER) += vorbis_enc.o vorbis.o vorbis_data.o mdct.o fft.o
9b5dc867
PI
202OBJS-$(CONFIG_VP3_DECODER) += vp3.o vp3dsp.o
203OBJS-$(CONFIG_VP5_DECODER) += vp5.o vp56.o vp56data.o vp3dsp.o
f28b1048
AJ
204OBJS-$(CONFIG_VP6_DECODER) += vp6.o vp56.o vp56data.o vp3dsp.o huffman.o
205OBJS-$(CONFIG_VP6A_DECODER) += vp6.o vp56.o vp56data.o vp3dsp.o huffman.o
206OBJS-$(CONFIG_VP6F_DECODER) += vp6.o vp56.o vp56data.o vp3dsp.o huffman.o
bac3be38 207OBJS-$(CONFIG_VQA_DECODER) += vqavideo.o
730581f3 208OBJS-$(CONFIG_WAVPACK_DECODER) += wavpack.o
78a010fb 209OBJS-$(CONFIG_WMAV1_DECODER) += wmadec.o wma.o mdct.o fft.o
78a010fb 210OBJS-$(CONFIG_WMAV1_ENCODER) += wmaenc.o wma.o mdct.o fft.o
379374ea 211OBJS-$(CONFIG_WMAV2_DECODER) += wmadec.o wma.o mdct.o fft.o
78a010fb 212OBJS-$(CONFIG_WMAV2_ENCODER) += wmaenc.o wma.o mdct.o fft.o
df8e3460 213OBJS-$(CONFIG_WMV1_DECODER) += h263dec.o h263.o
a9fb241c 214OBJS-$(CONFIG_WMV1_ENCODER) += mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
4d4f59d7
AJ
215OBJS-$(CONFIG_WMV2_DECODER) += wmv2dec.o wmv2.o msmpeg4.o msmpeg4data.o h263dec.o h263.o intrax8.o intrax8dsp.o
216OBJS-$(CONFIG_WMV2_ENCODER) += wmv2enc.o wmv2.o msmpeg4.o msmpeg4data.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o
986a865f 217OBJS-$(CONFIG_WMV3_DECODER) += vc1.o vc1data.o vc1dsp.o
bac3be38
MR
218OBJS-$(CONFIG_WNV1_DECODER) += wnv1.o
219OBJS-$(CONFIG_WS_SND1_DECODER) += ws-snd1.o
f7e79298 220OBJS-$(CONFIG_XAN_DPCM_DECODER) += dpcm.o
bac3be38
MR
221OBJS-$(CONFIG_XAN_WC3_DECODER) += xan.o
222OBJS-$(CONFIG_XAN_WC4_DECODER) += xan.o
223OBJS-$(CONFIG_XL_DECODER) += xl.o
7e2643ae 224OBJS-$(CONFIG_XSUB_DECODER) += xsubdec.o
00eb27f1
MR
225OBJS-$(CONFIG_ZLIB_DECODER) += lcldec.o
226OBJS-$(CONFIG_ZLIB_ENCODER) += lclenc.o
bac3be38 227OBJS-$(CONFIG_ZMBV_DECODER) += zmbv.o
3dd52c5a 228OBJS-$(CONFIG_ZMBV_ENCODER) += zmbvenc.o
bac3be38 229
327dcfd3
MR
230OBJS-$(CONFIG_PCM_S32BE_DECODER) += pcm.o
231OBJS-$(CONFIG_PCM_S32BE_ENCODER) += pcm.o
379374ea
DB
232OBJS-$(CONFIG_PCM_S32LE_DECODER) += pcm.o
233OBJS-$(CONFIG_PCM_S32LE_ENCODER) += pcm.o
327dcfd3
MR
234OBJS-$(CONFIG_PCM_U32BE_DECODER) += pcm.o
235OBJS-$(CONFIG_PCM_U32BE_ENCODER) += pcm.o
379374ea
DB
236OBJS-$(CONFIG_PCM_U32LE_DECODER) += pcm.o
237OBJS-$(CONFIG_PCM_U32LE_ENCODER) += pcm.o
327dcfd3
MR
238OBJS-$(CONFIG_PCM_S24BE_DECODER) += pcm.o
239OBJS-$(CONFIG_PCM_S24BE_ENCODER) += pcm.o
379374ea
DB
240OBJS-$(CONFIG_PCM_S24LE_DECODER) += pcm.o
241OBJS-$(CONFIG_PCM_S24LE_ENCODER) += pcm.o
327dcfd3
MR
242OBJS-$(CONFIG_PCM_U24BE_DECODER) += pcm.o
243OBJS-$(CONFIG_PCM_U24BE_ENCODER) += pcm.o
379374ea
DB
244OBJS-$(CONFIG_PCM_U24LE_DECODER) += pcm.o
245OBJS-$(CONFIG_PCM_U24LE_ENCODER) += pcm.o
327dcfd3
MR
246OBJS-$(CONFIG_PCM_S24DAUD_DECODER) += pcm.o
247OBJS-$(CONFIG_PCM_S24DAUD_ENCODER) += pcm.o
248OBJS-$(CONFIG_PCM_S16LE_DECODER) += pcm.o
249OBJS-$(CONFIG_PCM_S16LE_ENCODER) += pcm.o
725d86bf 250OBJS-$(CONFIG_PCM_S16LE_PLANAR_DECODER)+= pcm.o
327dcfd3
MR
251OBJS-$(CONFIG_PCM_S16BE_DECODER) += pcm.o
252OBJS-$(CONFIG_PCM_S16BE_ENCODER) += pcm.o
253OBJS-$(CONFIG_PCM_U16LE_DECODER) += pcm.o
254OBJS-$(CONFIG_PCM_U16LE_ENCODER) += pcm.o
255OBJS-$(CONFIG_PCM_U16BE_DECODER) += pcm.o
256OBJS-$(CONFIG_PCM_U16BE_ENCODER) += pcm.o
257OBJS-$(CONFIG_PCM_S8_DECODER) += pcm.o
258OBJS-$(CONFIG_PCM_S8_ENCODER) += pcm.o
259OBJS-$(CONFIG_PCM_U8_DECODER) += pcm.o
260OBJS-$(CONFIG_PCM_U8_ENCODER) += pcm.o
261OBJS-$(CONFIG_PCM_ALAW_DECODER) += pcm.o
262OBJS-$(CONFIG_PCM_ALAW_ENCODER) += pcm.o
263OBJS-$(CONFIG_PCM_MULAW_DECODER) += pcm.o
264OBJS-$(CONFIG_PCM_MULAW_ENCODER) += pcm.o
22cf0018
AJ
265OBJS-$(CONFIG_PCM_ZORK_DECODER) += pcm.o
266OBJS-$(CONFIG_PCM_ZORK_ENCODER) += pcm.o
327dcfd3
MR
267
268OBJS-$(CONFIG_ADPCM_4XM_DECODER) += adpcm.o
76c443c6 269OBJS-$(CONFIG_ADPCM_ADX_DECODER) += adxdec.o
c31dea61 270OBJS-$(CONFIG_ADPCM_ADX_ENCODER) += adxenc.o
327dcfd3 271OBJS-$(CONFIG_ADPCM_CT_DECODER) += adpcm.o
327dcfd3 272OBJS-$(CONFIG_ADPCM_EA_DECODER) += adpcm.o
e7583962
PR
273OBJS-$(CONFIG_ADPCM_EA_R1_DECODER) += adpcm.o
274OBJS-$(CONFIG_ADPCM_EA_R2_DECODER) += adpcm.o
275OBJS-$(CONFIG_ADPCM_EA_R3_DECODER) += adpcm.o
271b4095 276OBJS-$(CONFIG_ADPCM_EA_XAS_DECODER) += adpcm.o
327dcfd3
MR
277OBJS-$(CONFIG_ADPCM_G726_DECODER) += g726.o
278OBJS-$(CONFIG_ADPCM_G726_ENCODER) += g726.o
3a7f5d07 279OBJS-$(CONFIG_ADPCM_IMA_AMV_DECODER) += adpcm.o
327dcfd3 280OBJS-$(CONFIG_ADPCM_IMA_DK3_DECODER) += adpcm.o
327dcfd3 281OBJS-$(CONFIG_ADPCM_IMA_DK4_DECODER) += adpcm.o
fac84d3c 282OBJS-$(CONFIG_ADPCM_IMA_EA_EACS_DECODER) += adpcm.o
7bb65d89 283OBJS-$(CONFIG_ADPCM_IMA_EA_SEAD_DECODER) += adpcm.o
327dcfd3 284OBJS-$(CONFIG_ADPCM_IMA_QT_DECODER) += adpcm.o
9b1a3ea0 285OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_DECODER) += adpcm.o
327dcfd3
MR
286OBJS-$(CONFIG_ADPCM_IMA_WAV_DECODER) += adpcm.o
287OBJS-$(CONFIG_ADPCM_IMA_WAV_ENCODER) += adpcm.o
288OBJS-$(CONFIG_ADPCM_IMA_WS_DECODER) += adpcm.o
327dcfd3
MR
289OBJS-$(CONFIG_ADPCM_MS_DECODER) += adpcm.o
290OBJS-$(CONFIG_ADPCM_MS_ENCODER) += adpcm.o
291OBJS-$(CONFIG_ADPCM_SBPRO_2_DECODER) += adpcm.o
327dcfd3 292OBJS-$(CONFIG_ADPCM_SBPRO_3_DECODER) += adpcm.o
327dcfd3 293OBJS-$(CONFIG_ADPCM_SBPRO_4_DECODER) += adpcm.o
327dcfd3
MR
294OBJS-$(CONFIG_ADPCM_SWF_DECODER) += adpcm.o
295OBJS-$(CONFIG_ADPCM_SWF_ENCODER) += adpcm.o
d1e0d21f 296OBJS-$(CONFIG_ADPCM_THP_DECODER) += adpcm.o
327dcfd3 297OBJS-$(CONFIG_ADPCM_XA_DECODER) += adpcm.o
327dcfd3
MR
298OBJS-$(CONFIG_ADPCM_YAMAHA_DECODER) += adpcm.o
299OBJS-$(CONFIG_ADPCM_YAMAHA_ENCODER) += adpcm.o
300
5118cae6 301# libavformat dependencies
1ace4419 302OBJS-$(CONFIG_MATROSKA_MUXER) += xiph.o
5118cae6
BC
303OBJS-$(CONFIG_OGG_MUXER) += xiph.o
304
20c9dfe3 305# external codec libraries
6f1af735 306OBJS-$(CONFIG_LIBA52) += liba52.o
64e13d69
DB
307OBJS-$(CONFIG_LIBAMR_NB) += libamr.o
308OBJS-$(CONFIG_LIBAMR_WB) += libamr.o
6f1af735
DB
309OBJS-$(CONFIG_LIBFAAC) += libfaac.o
310OBJS-$(CONFIG_LIBFAAD) += libfaad.o
20c9dfe3 311OBJS-$(CONFIG_LIBGSM) += libgsm.o
6f1af735 312OBJS-$(CONFIG_LIBMP3LAME) += libmp3lame.o
150d2772 313OBJS-$(CONFIG_LIBTHEORA) += libtheoraenc.o
6f1af735 314OBJS-$(CONFIG_LIBVORBIS) += libvorbis.o
9097a8e4
DB
315OBJS-$(CONFIG_LIBX264) += libx264.o
316OBJS-$(CONFIG_LIBXVID) += libxvidff.o libxvid_rc.o
23c99253 317
bac3be38 318
99ff31dc
AJ
319OBJS-$(CONFIG_AAC_PARSER) += aac_parser.o aac_ac3_parser.o
320OBJS-$(CONFIG_AC3_PARSER) += ac3_parser.o ac3tab.o aac_ac3_parser.o
c5a60225 321OBJS-$(CONFIG_CAVSVIDEO_PARSER) += cavs_parser.o
98c98e04 322OBJS-$(CONFIG_DCA_PARSER) += dca_parser.o
027f43f0 323OBJS-$(CONFIG_DVBSUB_PARSER) += dvbsub_parser.o
44c56000 324OBJS-$(CONFIG_DVDSUB_PARSER) += dvdsub_parser.o
3883a99b 325OBJS-$(CONFIG_H261_PARSER) += h261_parser.o
c33d9814 326OBJS-$(CONFIG_H263_PARSER) += h263_parser.o
26b4fe82 327OBJS-$(CONFIG_H264_PARSER) += h264_parser.o
b16560a3 328OBJS-$(CONFIG_MJPEG_PARSER) += mjpeg_parser.o
6b493b2f 329OBJS-$(CONFIG_MLP_PARSER) += mlp_parser.o
df8e3460 330OBJS-$(CONFIG_MPEG4VIDEO_PARSER) += mpeg4video_parser.o h263.o
2a68cd08 331OBJS-$(CONFIG_MPEGAUDIO_PARSER) += mpegaudio_parser.o mpegaudiodecheader.o mpegaudiodata.o
7f50d4ac 332OBJS-$(CONFIG_MPEGVIDEO_PARSER) += mpegvideo_parser.o
9ac2e797 333OBJS-$(CONFIG_PNM_PARSER) += pnm_parser.o pnm.o
5982ae94 334OBJS-$(CONFIG_VC1_PARSER) += vc1_parser.o
af9e7d18 335
8bf63e1c 336OBJS-$(CONFIG_DUMP_EXTRADATA_BSF) += dump_extradata_bsf.o
bdfae2a5 337OBJS-$(CONFIG_H264_MP4TOANNEXB_BSF) += h264_mp4toannexb_bsf.o
1e97ce4a
DB
338OBJS-$(CONFIG_IMX_DUMP_HEADER_BSF) += imx_dump_header_bsf.o
339OBJS-$(CONFIG_MJPEGA_DUMP_HEADER_BSF) += mjpega_dump_header_bsf.o
234c6ed7 340OBJS-$(CONFIG_MOV2TEXTSUB_BSF) += movsub_bsf.o
a975d9e2 341OBJS-$(CONFIG_MP3_HEADER_COMPRESS_BSF) += mp3_header_compress_bsf.o
b57eed12 342OBJS-$(CONFIG_MP3_HEADER_DECOMPRESS_BSF) += mp3_header_decompress_bsf.o mpegaudiodata.o
1e97ce4a
DB
343OBJS-$(CONFIG_NOISE_BSF) += noise_bsf.o
344OBJS-$(CONFIG_REMOVE_EXTRADATA_BSF) += remove_extradata_bsf.o
234c6ed7 345OBJS-$(CONFIG_TEXT2MOVSUB_BSF) += movsub_bsf.o
cd61e407 346
1e97ce4a
DB
347OBJS-$(HAVE_BEOSTHREADS) += beosthread.o
348OBJS-$(HAVE_OS2THREADS) += os2thread.o
bac3be38
MR
349OBJS-$(HAVE_PTHREADS) += pthread.o
350OBJS-$(HAVE_W32THREADS) += w32thread.o
bac3be38
MR
351
352OBJS-$(HAVE_XVMC_ACCEL) += xvmcvideo.o
bb4c2140 353
790c9ca7
LA
354ifneq ($(CONFIG_SWSCALER),yes)
355OBJS += imgresample.o
356endif
357
1026a8d4 358# processor-specific code
3f5b56e5 359ifeq ($(HAVE_MMX),yes)
7fd265a7
DB
360OBJS += i386/fdct_mmx.o \
361 i386/cputest.o \
362 i386/dsputil_mmx.o \
363 i386/mpegvideo_mmx.o \
364 i386/motion_est_mmx.o \
365 i386/simple_idct_mmx.o \
0eb59ddb 366 i386/idct_mmx_xvid.o \
7fd265a7 367 i386/fft_sse.o \
7fd265a7
DB
368 i386/fft_3dn.o \
369 i386/fft_3dn2.o \
7fd265a7 370
3dc09ed1 371OBJS-$(CONFIG_GPL) += i386/idct_mmx.o
770202c3 372
3dc09ed1 373OBJS-$(CONFIG_CAVS_DECODER) += i386/cavsdsp_mmx.o
407c50a0 374OBJS-$(CONFIG_FLAC_ENCODER) += i386/flacdsp_mmx.o
770202c3 375OBJS-$(CONFIG_SNOW_DECODER) += i386/snowdsp_mmx.o
5b67ce2a 376OBJS-$(CONFIG_VC1_DECODER) += i386/vc1dsp_mmx.o
9b5dc867
PI
377OBJS-$(CONFIG_VP3_DECODER) += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
378OBJS-$(CONFIG_VP5_DECODER) += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
379OBJS-$(CONFIG_VP6_DECODER) += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
0cd05c08 380OBJS-$(CONFIG_VP6A_DECODER) += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
00b5ec15 381OBJS-$(CONFIG_VP6F_DECODER) += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
5b67ce2a 382OBJS-$(CONFIG_WMV3_DECODER) += i386/vc1dsp_mmx.o
de6d9b64
FB
383endif
384
18ca9a4a 385ASM_OBJS-$(ARCH_ARMV4L) += armv4l/jrevdct_arm.o \
bac3be38 386 armv4l/simple_idct_arm.o \
5064755e
DB
387 armv4l/dsputil_arm_s.o \
388
18ca9a4a 389OBJS-$(ARCH_ARMV4L) += armv4l/dsputil_arm.o \
5064755e
DB
390 armv4l/mpegvideo_arm.o \
391
3f5b56e5 392OBJS-$(HAVE_IWMMXT) += armv4l/dsputil_iwmmxt.o \
5064755e
DB
393 armv4l/mpegvideo_iwmmxt.o \
394
3f5b56e5 395ASM_OBJS-$(HAVE_ARMV5TE) += armv4l/simple_idct_armv5te.o \
7a886063 396 armv4l/mpegvideo_armv5te.o \
bac3be38 397
3f5b56e5 398ASM_OBJS-$(HAVE_ARMV6) += armv4l/simple_idct_armv6.o \
7d42886b 399
b146873c 400OBJS-$(HAVE_VIS) += sparc/dsputil_vis.o \
d9420d4d 401 sparc/simple_idct_vis.o \
5064755e 402
5064755e 403OBJS-$(HAVE_MLIB) += mlib/dsputil_mlib.o \
6ad1fa5a 404
18ca9a4a 405OBJS-$(ARCH_ALPHA) += alpha/dsputil_alpha.o \
1e97ce4a 406 alpha/motion_est_alpha.o \
bac3be38
MR
407 alpha/mpegvideo_alpha.o \
408 alpha/simple_idct_alpha.o \
5064755e 409
18ca9a4a 410ASM_OBJS-$(ARCH_ALPHA) += alpha/dsputil_alpha_asm.o \
5064755e
DB
411 alpha/motion_est_mvi_asm.o \
412
18ca9a4a 413OBJS-$(ARCH_POWERPC) += ppc/dsputil_ppc.o \
bac3be38 414
3f5b56e5 415OBJS-$(HAVE_MMI) += ps2/dsputil_mmi.o \
bac3be38 416 ps2/idct_mmi.o \
5064755e
DB
417 ps2/mpegvideo_mmi.o \
418
18ca9a4a 419OBJS-$(ARCH_SH4) += sh4/idct_sh4.o \
5064755e 420 sh4/dsputil_align.o \
1e97ce4a 421 sh4/dsputil_sh4.o \
5064755e 422
89523bee 423ALTIVEC-OBJS-yes += ppc/dsputil_altivec.o \
bac3be38 424 ppc/fdct_altivec.o \
1e97ce4a 425 ppc/fft_altivec.o \
5064755e 426 ppc/float_altivec.o \
1e97ce4a
DB
427 ppc/gmc_altivec.o \
428 ppc/idct_altivec.o \
1f1aadc3 429 ppc/int_altivec.o \
1e97ce4a 430 ppc/mpegvideo_altivec.o \
5064755e 431
89523bee
LB
432ALTIVEC-OBJS-$(CONFIG_H264_DECODER) += ppc/h264_altivec.o
433ALTIVEC-OBJS-$(CONFIG_SNOW_DECODER) += ppc/snow_altivec.o
434ALTIVEC-OBJS-$(CONFIG_VC1_DECODER) += ppc/vc1dsp_altivec.o
435ALTIVEC-OBJS-$(CONFIG_WMV3_DECODER) += ppc/vc1dsp_altivec.o
436
437# -maltivec is needed in order to build AltiVec code.
438$(ALTIVEC-OBJS-yes): CFLAGS += -maltivec -mabi=altivec
439
440# check_altivec must be built without -maltivec
441OBJS-$(HAVE_ALTIVEC) += $(ALTIVEC-OBJS-yes) \
442 ppc/check_altivec.o
8cff89be 443
18ca9a4a 444OBJS-$(ARCH_BFIN) += bfin/dsputil_bfin.o \
1a822d30 445 bfin/mpegvideo_bfin.o \
b9dc3279 446 bfin/vp3_bfin.o \
bac3be38 447
18ca9a4a 448ASM_OBJS-$(ARCH_BFIN) += bfin/pixels_bfin.o \
67fd620c 449 bfin/fdct_bfin.o \
1e97ce4a 450 bfin/idct_bfin.o \
b9dc3279 451 bfin/vp3_idct_bfin.o \
67fd620c 452
14f29f79
DB
453EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
454
4bdd05e7 455NAME=avcodec
f3b60109
DB
456LIBVERSION=$(LAVCVERSION)
457LIBMAJOR=$(LAVCMAJOR)
e164fbfe 458
fe34942e
DB
459TESTS = $(addsuffix -test$(EXESUF), cabac dct eval fft h264 imgresample rangecoder snow)
460ifeq ($(ARCH_X86),yes)
461TESTS += cpuid-test$(EXESUF) motion-test$(EXESUF)
462endif
463
997baf01 464include ../common.mak
8b2121e3 465
c7f1a2f5 466clean::
8b2121e3 467 rm -f \
1e98dffb 468 alpha/*.o alpha/*~ \
e9bfae45 469 armv4l/*.o armv4l/*~ \
18b8b43b 470 bfin/*.o bfin/*~ \
e9bfae45
DB
471 i386/*.o i386/*~ \
472 mlib/*.o mlib/*~ \
59925ef2 473 ppc/*.o ppc/*~ \
d46aba26 474 ps2/*.o ps2/*~ \
0c6bd2ea 475 sh4/*.o sh4/*~ \
bb476ff3 476 sparc/*.o sparc/*~ \
bca9e0bc 477 apiexample$(EXESUF)
7f4f3e16 478
eba6ba4a
DB
479cpuid-test$(EXESUF): i386/cputest.c
480apiexample$(EXESUF): apiexample.o $(LIBNAME)
481dct-test$(EXESUF): dct-test.o fdctref.o $(LIBNAME)
482fft-test$(EXESUF): fft-test.o $(LIBNAME)
483motion-test$(EXESUF): motion-test.o $(LIBNAME)