Makefile 26.3 KB
Newer Older
1 2
#
# libavcodec Makefile
3
# (c) 2000-2005 Fabrice Bellard
4
#
5 6
include ../config.mak

7 8 9
NAME = avcodec
FFLIBS = avutil

10 11 12 13 14 15
OBJS = allcodecs.o \
       audioconvert.o \
       bitstream.o \
       bitstream_filter.o \
       dsputil.o \
       eval.o \
Michael Niedermayer's avatar
Michael Niedermayer committed
16
       faanidct.o \
17 18 19 20 21 22 23 24 25
       imgconvert.o \
       jrevdct.o \
       opt.o \
       parser.o \
       raw.o \
       resample.o \
       resample2.o \
       simple_idct.o \
       utils.o \
26

Fabrice Bellard's avatar
Fabrice Bellard committed
27

Nico Sabbi's avatar
Nico Sabbi committed
28
HEADERS = avcodec.h opt.h
29

30 31
OBJS-$(CONFIG_ENCODERS)                += faandct.o jfdctfst.o jfdctint.o

Måns Rullgård's avatar
Måns Rullgård committed
32
OBJS-$(CONFIG_AASC_DECODER)            += aasc.o
33
OBJS-$(CONFIG_AC3_DECODER)             += ac3dec.o ac3tab.o ac3.o mdct.o fft.o
34
OBJS-$(CONFIG_AC3_ENCODER)             += ac3enc.o ac3tab.o ac3.o
Måns Rullgård's avatar
Måns Rullgård committed
35
OBJS-$(CONFIG_ALAC_DECODER)            += alac.o
Vladimir Voroshilov's avatar
Vladimir Voroshilov committed
36
OBJS-$(CONFIG_AMV_DECODER)             += sp5xdec.o mjpegdec.o mjpeg.o
Kostya Shishkov's avatar
Kostya Shishkov committed
37
OBJS-$(CONFIG_APE_DECODER)             += apedec.o
38 39 40 41
OBJS-$(CONFIG_ASV1_DECODER)            += asv1.o mpeg12data.o
OBJS-$(CONFIG_ASV1_ENCODER)            += asv1.o mpeg12data.o
OBJS-$(CONFIG_ASV2_DECODER)            += asv1.o mpeg12data.o
OBJS-$(CONFIG_ASV2_ENCODER)            += asv1.o mpeg12data.o
42
OBJS-$(CONFIG_ATRAC3_DECODER)          += atrac3.o mdct.o fft.o
Måns Rullgård's avatar
Måns Rullgård committed
43
OBJS-$(CONFIG_AVS_DECODER)             += avs.o
44
OBJS-$(CONFIG_BETHSOFTVID_DECODER)     += bethsoftvideo.o
45
OBJS-$(CONFIG_BMP_DECODER)             += bmp.o
46
OBJS-$(CONFIG_BMP_ENCODER)             += bmpenc.o
47
OBJS-$(CONFIG_C93_DECODER)             += c93.o
48
OBJS-$(CONFIG_CAVS_DECODER)            += cavs.o cavsdec.o cavsdsp.o golomb.o mpeg12data.o mpegvideo.o
Måns Rullgård's avatar
Måns Rullgård committed
49 50 51
OBJS-$(CONFIG_CINEPAK_DECODER)         += cinepak.o
OBJS-$(CONFIG_CLJR_DECODER)            += cljr.o
OBJS-$(CONFIG_CLJR_ENCODER)            += cljr.o
52
OBJS-$(CONFIG_COOK_DECODER)            += cook.o mdct.o fft.o
53
OBJS-$(CONFIG_CSCD_DECODER)            += cscd.o
Måns Rullgård's avatar
Måns Rullgård committed
54
OBJS-$(CONFIG_CYUV_DECODER)            += cyuv.o
Kostya Shishkov's avatar
Kostya Shishkov committed
55
OBJS-$(CONFIG_DCA_DECODER)             += dca.o
56
OBJS-$(CONFIG_DNXHD_DECODER)           += dnxhddec.o dnxhddata.o
57
OBJS-$(CONFIG_DNXHD_ENCODER)           += dnxhdenc.o dnxhddata.o mpegvideo_enc.o motion_est.o ratecontrol.o mpeg12data.o mpegvideo.o
58
OBJS-$(CONFIG_DSICINAUDIO_DECODER)     += dsicinav.o
59
OBJS-$(CONFIG_DSICINVIDEO_DECODER)     += dsicinav.o
Måns Rullgård's avatar
Måns Rullgård committed
60 61
OBJS-$(CONFIG_DVBSUB_DECODER)          += dvbsubdec.o
OBJS-$(CONFIG_DVBSUB_ENCODER)          += dvbsub.o
62
OBJS-$(CONFIG_DVDSUB_DECODER)          += dvdsubdec.o
Måns Rullgård's avatar
Måns Rullgård committed
63 64 65
OBJS-$(CONFIG_DVDSUB_ENCODER)          += dvdsubenc.o
OBJS-$(CONFIG_DVVIDEO_DECODER)         += dv.o
OBJS-$(CONFIG_DVVIDEO_ENCODER)         += dv.o
Kostya Shishkov's avatar
Kostya Shishkov committed
66
OBJS-$(CONFIG_DXA_DECODER)             += dxa.o
Måns Rullgård's avatar
Måns Rullgård committed
67
OBJS-$(CONFIG_EIGHTBPS_DECODER)        += 8bps.o
Jai Menon's avatar
Jai Menon committed
68 69
OBJS-$(CONFIG_EIGHTSVX_EXP_DECODER)    += 8svx.o
OBJS-$(CONFIG_EIGHTSVX_FIB_DECODER)    += 8svx.o
Eli Friedman's avatar
Eli Friedman committed
70
OBJS-$(CONFIG_ESCAPE124_DECODER)       += escape124.o
71 72
OBJS-$(CONFIG_FFV1_DECODER)            += ffv1.o rangecoder.o golomb.o
OBJS-$(CONFIG_FFV1_ENCODER)            += ffv1.o rangecoder.o
73 74
OBJS-$(CONFIG_FFVHUFF_DECODER)         += huffyuv.o
OBJS-$(CONFIG_FFVHUFF_ENCODER)         += huffyuv.o
75 76
OBJS-$(CONFIG_FLAC_DECODER)            += flac.o golomb.o
OBJS-$(CONFIG_FLAC_ENCODER)            += flacenc.o golomb.o
77 78
OBJS-$(CONFIG_FLASHSV_DECODER)         += flashsv.o
OBJS-$(CONFIG_FLASHSV_ENCODER)         += flashsvenc.o
Måns Rullgård's avatar
Måns Rullgård committed
79
OBJS-$(CONFIG_FLIC_DECODER)            += flicvideo.o
80 81
OBJS-$(CONFIG_FLV_DECODER)             += h263dec.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_FLV_ENCODER)             += mpegvideo_enc.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
Måns Rullgård's avatar
Måns Rullgård committed
82
OBJS-$(CONFIG_FOURXM_DECODER)          += 4xm.o
83
OBJS-$(CONFIG_FRAPS_DECODER)           += fraps.o huffman.o
84
OBJS-$(CONFIG_GIF_DECODER)             += gifdec.o lzw.o
85
OBJS-$(CONFIG_GIF_ENCODER)             += gif.o
86 87 88 89 90 91 92
OBJS-$(CONFIG_H261_DECODER)            += h261dec.o h261.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_H261_ENCODER)            += h261enc.o h261.o mpegvideo_enc.o motion_est.o ratecontrol.o mpeg12data.o mpegvideo.o
OBJS-$(CONFIG_H263_DECODER)            += h263dec.o h263.o h263_parser.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_H263I_DECODER)           += h263dec.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_H263_ENCODER)            += mpegvideo_enc.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_H263P_ENCODER)           += mpegvideo_enc.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_H264_DECODER)            += h264.o h264idct.o h264pred.o h264_parser.o cabac.o golomb.o mpegvideo.o error_resilience.o
93
OBJS-$(CONFIG_H264_ENCODER)            += h264enc.o h264dspenc.o
Måns Rullgård's avatar
Måns Rullgård committed
94 95 96
OBJS-$(CONFIG_HUFFYUV_DECODER)         += huffyuv.o
OBJS-$(CONFIG_HUFFYUV_ENCODER)         += huffyuv.o
OBJS-$(CONFIG_IDCIN_DECODER)           += idcinvideo.o
97
OBJS-$(CONFIG_IMC_DECODER)             += imc.o mdct.o fft.o
Måns Rullgård's avatar
Måns Rullgård committed
98 99
OBJS-$(CONFIG_INDEO2_DECODER)          += indeo2.o
OBJS-$(CONFIG_INDEO3_DECODER)          += indeo3.o
100
OBJS-$(CONFIG_INTERPLAY_DPCM_DECODER)  += dpcm.o
101
OBJS-$(CONFIG_INTERPLAY_VIDEO_DECODER) += interplayvideo.o
102 103
OBJS-$(CONFIG_JPEGLS_DECODER)          += jpeglsdec.o jpegls.o mjpegdec.o mjpeg.o golomb.o
OBJS-$(CONFIG_JPEGLS_ENCODER)          += jpeglsenc.o jpegls.o golomb.o
Måns Rullgård's avatar
Måns Rullgård committed
104
OBJS-$(CONFIG_KMVC_DECODER)            += kmvc.o
105
OBJS-$(CONFIG_LJPEG_ENCODER)           += ljpegenc.o mjpegenc.o mjpeg.o mpegvideo_enc.o motion_est.o ratecontrol.o mpeg12data.o mpegvideo.o
106
OBJS-$(CONFIG_LOCO_DECODER)            += loco.o golomb.o
Måns Rullgård's avatar
Måns Rullgård committed
107 108
OBJS-$(CONFIG_MACE3_DECODER)           += mace.o
OBJS-$(CONFIG_MACE6_DECODER)           += mace.o
Ramiro Polla's avatar
Ramiro Polla committed
109
OBJS-$(CONFIG_MIMIC_DECODER)           += mimic.o
110
OBJS-$(CONFIG_MJPEG_DECODER)           += mjpegdec.o mjpeg.o
111
OBJS-$(CONFIG_MJPEG_ENCODER)           += mjpegenc.o mjpeg.o mpegvideo_enc.o motion_est.o ratecontrol.o mpeg12data.o mpegvideo.o
112
OBJS-$(CONFIG_MJPEGB_DECODER)          += mjpegbdec.o mjpegdec.o mjpeg.o
113
OBJS-$(CONFIG_MMVIDEO_DECODER)         += mmvideo.o
114
OBJS-$(CONFIG_MP2_DECODER)             += mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
115
OBJS-$(CONFIG_MP2_ENCODER)             += mpegaudioenc.o mpegaudio.o mpegaudiodata.o
116 117 118
OBJS-$(CONFIG_MP3_DECODER)             += mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
OBJS-$(CONFIG_MP3ADU_DECODER)          += mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
OBJS-$(CONFIG_MP3ON4_DECODER)          += mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
119
OBJS-$(CONFIG_MPC7_DECODER)            += mpc7.o mpc.o mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
120
OBJS-$(CONFIG_MPC8_DECODER)            += mpc8.o mpc.o mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
121 122 123 124 125 126 127 128 129 130 131 132 133 134
OBJS-$(CONFIG_MDEC_DECODER)            += mpeg12.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MPEGVIDEO_DECODER)       += mpeg12.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MPEG1VIDEO_DECODER)      += mpeg12.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MPEG1VIDEO_ENCODER)      += mpeg12enc.o mpeg12data.o mpegvideo_enc.o motion_est.o ratecontrol.o mpeg12.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MPEG2VIDEO_DECODER)      += mpeg12.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MPEG2VIDEO_ENCODER)      += mpeg12enc.o mpeg12data.o mpegvideo_enc.o motion_est.o ratecontrol.o mpeg12.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MPEG4_DECODER)           += h263dec.o h263.o mpeg4video_parser.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MPEG4_ENCODER)           += mpegvideo_enc.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MSMPEG4V1_DECODER)       += msmpeg4.o msmpeg4data.o h263dec.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MSMPEG4V1_ENCODER)       += msmpeg4.o msmpeg4data.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MSMPEG4V2_DECODER)       += msmpeg4.o msmpeg4data.o h263dec.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MSMPEG4V2_ENCODER)       += msmpeg4.o msmpeg4data.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MSMPEG4V3_DECODER)       += msmpeg4.o msmpeg4data.o h263dec.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_MSMPEG4V3_ENCODER)       += msmpeg4.o msmpeg4data.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
Måns Rullgård's avatar
Måns Rullgård committed
135 136
OBJS-$(CONFIG_MSRLE_DECODER)           += msrle.o
OBJS-$(CONFIG_MSVIDEO1_DECODER)        += msvideo1.o
137
OBJS-$(CONFIG_MSZH_DECODER)            += lcldec.o
138
OBJS-$(CONFIG_NELLYMOSER_DECODER)      += nellymoserdec.o mdct.o fft.o
139
OBJS-$(CONFIG_NUV_DECODER)             += nuv.o rtjpeg.o
140 141
OBJS-$(CONFIG_PAM_ENCODER)             += pnmenc.o pnm.o
OBJS-$(CONFIG_PBM_ENCODER)             += pnmenc.o pnm.o
142
OBJS-$(CONFIG_PCX_DECODER)             += pcx.o
143 144
OBJS-$(CONFIG_PGM_ENCODER)             += pnmenc.o pnm.o
OBJS-$(CONFIG_PGMYUV_ENCODER)          += pnmenc.o pnm.o
145 146
OBJS-$(CONFIG_PNG_DECODER)             += png.o pngdec.o
OBJS-$(CONFIG_PNG_ENCODER)             += png.o pngenc.o
147
OBJS-$(CONFIG_PPM_ENCODER)             += pnmenc.o pnm.o
Ivo van Poorten's avatar
Ivo van Poorten committed
148
OBJS-$(CONFIG_PTX_DECODER)             += ptx.o
149
OBJS-$(CONFIG_QDM2_DECODER)            += qdm2.o mdct.o fft.o mpegaudiodec.o mpegaudiodecheader.o mpegaudio.o mpegaudiodata.o
Måns Rullgård's avatar
Måns Rullgård committed
150 151 152
OBJS-$(CONFIG_QDRAW_DECODER)           += qdrw.o
OBJS-$(CONFIG_QPEG_DECODER)            += qpeg.o
OBJS-$(CONFIG_QTRLE_DECODER)           += qtrle.o
Alexis Ballier's avatar
Alexis Ballier committed
153
OBJS-$(CONFIG_QTRLE_ENCODER)           += qtrleenc.o
Måns Rullgård's avatar
Måns Rullgård committed
154 155
OBJS-$(CONFIG_RA_144_DECODER)          += ra144.o
OBJS-$(CONFIG_RA_288_DECODER)          += ra288.o
156 157
OBJS-$(CONFIG_RAWVIDEO_DECODER)        += rawdec.o
OBJS-$(CONFIG_RAWVIDEO_ENCODER)        += rawenc.o
Sascha Sommer's avatar
Sascha Sommer committed
158
OBJS-$(CONFIG_RL2_DECODER)             += rl2.o
159
OBJS-$(CONFIG_ROQ_DECODER)             += roqvideodec.o roqvideo.o
Vitor Sessak's avatar
Vitor Sessak committed
160
OBJS-$(CONFIG_ROQ_ENCODER)             += roqvideoenc.o roqvideo.o elbg.o
161
OBJS-$(CONFIG_ROQ_DPCM_DECODER)        += dpcm.o
Vitor Sessak's avatar
Vitor Sessak committed
162
OBJS-$(CONFIG_ROQ_DPCM_ENCODER)        += roqaudioenc.o
Måns Rullgård's avatar
Måns Rullgård committed
163
OBJS-$(CONFIG_RPZA_DECODER)            += rpza.o
164 165 166 167
OBJS-$(CONFIG_RV10_DECODER)            += rv10.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_RV10_ENCODER)            += rv10.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_RV20_DECODER)            += rv10.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_RV20_ENCODER)            += rv10.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
168 169
OBJS-$(CONFIG_SGI_DECODER)             += sgidec.o
OBJS-$(CONFIG_SGI_ENCODER)             += sgienc.o rle.o
170
OBJS-$(CONFIG_SHORTEN_DECODER)         += shorten.o golomb.o
Måns Rullgård's avatar
Måns Rullgård committed
171
OBJS-$(CONFIG_SMACKAUD_DECODER)        += smacker.o
172
OBJS-$(CONFIG_SMACKER_DECODER)         += smacker.o
Måns Rullgård's avatar
Måns Rullgård committed
173
OBJS-$(CONFIG_SMC_DECODER)             += smc.o
174
OBJS-$(CONFIG_SNOW_DECODER)            += snow.o rangecoder.o
175
OBJS-$(CONFIG_SNOW_ENCODER)            += snow.o rangecoder.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
176
OBJS-$(CONFIG_SOL_DPCM_DECODER)        += dpcm.o
177 178 179
OBJS-$(CONFIG_SONIC_DECODER)           += sonic.o golomb.o
OBJS-$(CONFIG_SONIC_ENCODER)           += sonic.o golomb.o
OBJS-$(CONFIG_SONIC_LS_ENCODER)        += sonic.o golomb.o
180
OBJS-$(CONFIG_SP5X_DECODER)            += sp5xdec.o mjpegdec.o mjpeg.o
Ivo van Poorten's avatar
Ivo van Poorten committed
181
OBJS-$(CONFIG_SUNRAST_DECODER)         += sunrast.o
182 183 184
OBJS-$(CONFIG_SVQ1_DECODER)            += svq1dec.o svq1.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_SVQ1_ENCODER)            += svq1enc.o svq1.o motion_est.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_SVQ3_DECODER)            += h264.o h264idct.o h264pred.o h264_parser.o cabac.o golomb.o mpegvideo.o error_resilience.o
Kostya Shishkov's avatar
Kostya Shishkov committed
185
OBJS-$(CONFIG_TARGA_DECODER)           += targa.o
186
OBJS-$(CONFIG_TARGA_ENCODER)           += targaenc.o rle.o
187
OBJS-$(CONFIG_THEORA_DECODER)          += vp3.o xiph.o vp3dsp.o
188
OBJS-$(CONFIG_THP_DECODER)             += mjpegdec.o mjpeg.o
189
OBJS-$(CONFIG_TIERTEXSEQVIDEO_DECODER) += tiertexseqv.o
190
OBJS-$(CONFIG_TIFF_DECODER)            += tiff.o lzw.o
191
OBJS-$(CONFIG_TIFF_ENCODER)            += tiffenc.o rle.o lzwenc.o
Måns Rullgård's avatar
Måns Rullgård committed
192 193 194 195
OBJS-$(CONFIG_TRUEMOTION1_DECODER)     += truemotion1.o
OBJS-$(CONFIG_TRUEMOTION2_DECODER)     += truemotion2.o
OBJS-$(CONFIG_TRUESPEECH_DECODER)      += truespeech.o
OBJS-$(CONFIG_TSCC_DECODER)            += tscc.o
196
OBJS-$(CONFIG_TTA_DECODER)             += tta.o
Ivo van Poorten's avatar
Ivo van Poorten committed
197
OBJS-$(CONFIG_TXD_DECODER)             += txd.o s3tc.o
Måns Rullgård's avatar
Måns Rullgård committed
198
OBJS-$(CONFIG_ULTI_DECODER)            += ulti.o
199
OBJS-$(CONFIG_VB_DECODER)              += vb.o
200
OBJS-$(CONFIG_VC1_DECODER)             += vc1.o vc1data.o vc1dsp.o msmpeg4data.o h263dec.o h263.o intrax8.o intrax8dsp.o error_resilience.o
Måns Rullgård's avatar
Måns Rullgård committed
201 202 203
OBJS-$(CONFIG_VCR1_DECODER)            += vcr1.o
OBJS-$(CONFIG_VCR1_ENCODER)            += vcr1.o
OBJS-$(CONFIG_VMDAUDIO_DECODER)        += vmdav.o
204
OBJS-$(CONFIG_VMDVIDEO_DECODER)        += vmdav.o
205
OBJS-$(CONFIG_VMNC_DECODER)            += vmnc.o
206 207
OBJS-$(CONFIG_VORBIS_DECODER)          += vorbis_dec.o vorbis.o vorbis_data.o xiph.o mdct.o fft.o
OBJS-$(CONFIG_VORBIS_ENCODER)          += vorbis_enc.o vorbis.o vorbis_data.o mdct.o fft.o
208 209
OBJS-$(CONFIG_VP3_DECODER)             += vp3.o vp3dsp.o
OBJS-$(CONFIG_VP5_DECODER)             += vp5.o vp56.o vp56data.o vp3dsp.o
210 211 212
OBJS-$(CONFIG_VP6_DECODER)             += vp6.o vp56.o vp56data.o vp3dsp.o huffman.o
OBJS-$(CONFIG_VP6A_DECODER)            += vp6.o vp56.o vp56data.o vp3dsp.o huffman.o
OBJS-$(CONFIG_VP6F_DECODER)            += vp6.o vp56.o vp56data.o vp3dsp.o huffman.o
Måns Rullgård's avatar
Måns Rullgård committed
213
OBJS-$(CONFIG_VQA_DECODER)             += vqavideo.o
214
OBJS-$(CONFIG_WAVPACK_DECODER)         += wavpack.o
215 216
OBJS-$(CONFIG_WMAV1_DECODER)           += wmadec.o wma.o mdct.o fft.o
OBJS-$(CONFIG_WMAV1_ENCODER)           += wmaenc.o wma.o mdct.o fft.o
217
OBJS-$(CONFIG_WMAV2_DECODER)           += wmadec.o wma.o mdct.o fft.o
218
OBJS-$(CONFIG_WMAV2_ENCODER)           += wmaenc.o wma.o mdct.o fft.o
219 220 221 222 223
OBJS-$(CONFIG_WMV1_DECODER)            += h263dec.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_WMV1_ENCODER)            += mpegvideo_enc.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_WMV2_DECODER)            += wmv2dec.o wmv2.o msmpeg4.o msmpeg4data.o h263dec.o h263.o intrax8.o intrax8dsp.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_WMV2_ENCODER)            += wmv2enc.o wmv2.o msmpeg4.o msmpeg4data.o mpegvideo_enc.o motion_est.o ratecontrol.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
OBJS-$(CONFIG_WMV3_DECODER)            += vc1.o vc1data.o vc1dsp.o msmpeg4data.o h263dec.o h263.o intrax8.o intrax8dsp.o error_resilience.o
Måns Rullgård's avatar
Måns Rullgård committed
224 225
OBJS-$(CONFIG_WNV1_DECODER)            += wnv1.o
OBJS-$(CONFIG_WS_SND1_DECODER)         += ws-snd1.o
226
OBJS-$(CONFIG_XAN_DPCM_DECODER)        += dpcm.o
Måns Rullgård's avatar
Måns Rullgård committed
227 228 229
OBJS-$(CONFIG_XAN_WC3_DECODER)         += xan.o
OBJS-$(CONFIG_XAN_WC4_DECODER)         += xan.o
OBJS-$(CONFIG_XL_DECODER)              += xl.o
230
OBJS-$(CONFIG_XSUB_DECODER)            += xsubdec.o
231 232
OBJS-$(CONFIG_ZLIB_DECODER)            += lcldec.o
OBJS-$(CONFIG_ZLIB_ENCODER)            += lclenc.o
Måns Rullgård's avatar
Måns Rullgård committed
233
OBJS-$(CONFIG_ZMBV_DECODER)            += zmbv.o
Kostya Shishkov's avatar
Kostya Shishkov committed
234
OBJS-$(CONFIG_ZMBV_ENCODER)            += zmbvenc.o
Måns Rullgård's avatar
Måns Rullgård committed
235

236 237
OBJS-$(CONFIG_PCM_S32BE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_S32BE_ENCODER)       += pcm.o
238 239
OBJS-$(CONFIG_PCM_S32LE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_S32LE_ENCODER)       += pcm.o
240 241
OBJS-$(CONFIG_PCM_U32BE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_U32BE_ENCODER)       += pcm.o
242 243
OBJS-$(CONFIG_PCM_U32LE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_U32LE_ENCODER)       += pcm.o
244 245
OBJS-$(CONFIG_PCM_S24BE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_S24BE_ENCODER)       += pcm.o
246 247
OBJS-$(CONFIG_PCM_S24LE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_S24LE_ENCODER)       += pcm.o
248 249
OBJS-$(CONFIG_PCM_U24BE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_U24BE_ENCODER)       += pcm.o
250 251
OBJS-$(CONFIG_PCM_U24LE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_U24LE_ENCODER)       += pcm.o
252 253 254 255
OBJS-$(CONFIG_PCM_S24DAUD_DECODER)     += pcm.o
OBJS-$(CONFIG_PCM_S24DAUD_ENCODER)     += pcm.o
OBJS-$(CONFIG_PCM_S16LE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_S16LE_ENCODER)       += pcm.o
256
OBJS-$(CONFIG_PCM_S16LE_PLANAR_DECODER)+= pcm.o
257 258 259 260 261 262 263 264 265 266 267 268 269 270
OBJS-$(CONFIG_PCM_S16BE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_S16BE_ENCODER)       += pcm.o
OBJS-$(CONFIG_PCM_U16LE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_U16LE_ENCODER)       += pcm.o
OBJS-$(CONFIG_PCM_U16BE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_U16BE_ENCODER)       += pcm.o
OBJS-$(CONFIG_PCM_S8_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_S8_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_U8_DECODER)          += pcm.o
OBJS-$(CONFIG_PCM_U8_ENCODER)          += pcm.o
OBJS-$(CONFIG_PCM_ALAW_DECODER)        += pcm.o
OBJS-$(CONFIG_PCM_ALAW_ENCODER)        += pcm.o
OBJS-$(CONFIG_PCM_MULAW_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_MULAW_ENCODER)       += pcm.o
271 272
OBJS-$(CONFIG_PCM_ZORK_DECODER)        += pcm.o
OBJS-$(CONFIG_PCM_ZORK_ENCODER)        += pcm.o
273 274

OBJS-$(CONFIG_ADPCM_4XM_DECODER)       += adpcm.o
Aurelien Jacobs's avatar
Aurelien Jacobs committed
275
OBJS-$(CONFIG_ADPCM_ADX_DECODER)       += adxdec.o
276
OBJS-$(CONFIG_ADPCM_ADX_ENCODER)       += adxenc.o
277 278
OBJS-$(CONFIG_ADPCM_CT_DECODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_EA_DECODER)        += adpcm.o
Peter Ross's avatar
Peter Ross committed
279 280 281
OBJS-$(CONFIG_ADPCM_EA_R1_DECODER)     += adpcm.o
OBJS-$(CONFIG_ADPCM_EA_R2_DECODER)     += adpcm.o
OBJS-$(CONFIG_ADPCM_EA_R3_DECODER)     += adpcm.o
282
OBJS-$(CONFIG_ADPCM_EA_XAS_DECODER)    += adpcm.o
283 284
OBJS-$(CONFIG_ADPCM_G726_DECODER)      += g726.o
OBJS-$(CONFIG_ADPCM_G726_ENCODER)      += g726.o
Vitor Sessak's avatar
Vitor Sessak committed
285
OBJS-$(CONFIG_ADPCM_IMA_AMV_DECODER)   += adpcm.o
286 287
OBJS-$(CONFIG_ADPCM_IMA_DK3_DECODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_DK4_DECODER)   += adpcm.o
Peter Ross's avatar
Peter Ross committed
288
OBJS-$(CONFIG_ADPCM_IMA_EA_EACS_DECODER) += adpcm.o
Peter Ross's avatar
Peter Ross committed
289
OBJS-$(CONFIG_ADPCM_IMA_EA_SEAD_DECODER) += adpcm.o
290
OBJS-$(CONFIG_ADPCM_IMA_QT_DECODER)    += adpcm.o
Diego Biurrun's avatar
Diego Biurrun committed
291
OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_DECODER) += adpcm.o
292 293 294 295 296 297 298 299 300 301
OBJS-$(CONFIG_ADPCM_IMA_WAV_DECODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_WAV_ENCODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_WS_DECODER)    += adpcm.o
OBJS-$(CONFIG_ADPCM_MS_DECODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_MS_ENCODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_SBPRO_2_DECODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_SBPRO_3_DECODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_SBPRO_4_DECODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_SWF_DECODER)       += adpcm.o
OBJS-$(CONFIG_ADPCM_SWF_ENCODER)       += adpcm.o
302
OBJS-$(CONFIG_ADPCM_THP_DECODER)       += adpcm.o
303 304 305 306
OBJS-$(CONFIG_ADPCM_XA_DECODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_YAMAHA_DECODER)    += adpcm.o
OBJS-$(CONFIG_ADPCM_YAMAHA_ENCODER)    += adpcm.o

Baptiste Coudurier's avatar
Baptiste Coudurier committed
307
# libavformat dependencies
308
OBJS-$(CONFIG_GXF_DEMUXER)             += mpeg12data.o
309
OBJS-$(CONFIG_MATROSKA_AUDIO_MUXER)    += xiph.o
310
OBJS-$(CONFIG_MATROSKA_MUXER)          += xiph.o
311
OBJS-$(CONFIG_NUT_MUXER)               += mpegaudiodata.o
Baptiste Coudurier's avatar
Baptiste Coudurier committed
312
OBJS-$(CONFIG_OGG_MUXER)               += xiph.o
313
OBJS-$(CONFIG_RTP_MUXER)               += mpegvideo.o
Baptiste Coudurier's avatar
Baptiste Coudurier committed
314

315
# external codec libraries
316
OBJS-$(CONFIG_LIBA52)                  += liba52.o
317 318
OBJS-$(CONFIG_LIBAMR_NB)               += libamr.o
OBJS-$(CONFIG_LIBAMR_WB)               += libamr.o
319 320
OBJS-$(CONFIG_LIBFAAC)                 += libfaac.o
OBJS-$(CONFIG_LIBFAAD)                 += libfaad.o
321
OBJS-$(CONFIG_LIBGSM)                  += libgsm.o
322
OBJS-$(CONFIG_LIBMP3LAME)              += libmp3lame.o
Diego Biurrun's avatar
Diego Biurrun committed
323
OBJS-$(CONFIG_LIBTHEORA)               += libtheoraenc.o
324
OBJS-$(CONFIG_LIBVORBIS)               += libvorbis.o
325 326
OBJS-$(CONFIG_LIBX264)                 += libx264.o
OBJS-$(CONFIG_LIBXVID)                 += libxvidff.o libxvid_rc.o
327

Måns Rullgård's avatar
Måns Rullgård committed
328

329
OBJS-$(CONFIG_AAC_PARSER)              += aac_parser.o aac_ac3_parser.o mpeg4audio.o
330
OBJS-$(CONFIG_AC3_PARSER)              += ac3_parser.o ac3tab.o aac_ac3_parser.o
331
OBJS-$(CONFIG_CAVSVIDEO_PARSER)        += cavs_parser.o
332
OBJS-$(CONFIG_DCA_PARSER)              += dca_parser.o
333
OBJS-$(CONFIG_DVBSUB_PARSER)           += dvbsub_parser.o
334
OBJS-$(CONFIG_DVDSUB_PARSER)           += dvdsub_parser.o
335
OBJS-$(CONFIG_H261_PARSER)             += h261_parser.o
336
OBJS-$(CONFIG_H263_PARSER)             += h263_parser.o
337
OBJS-$(CONFIG_H264_PARSER)             += h264_parser.o
338
OBJS-$(CONFIG_MJPEG_PARSER)            += mjpeg_parser.o
Ian Caulfield's avatar
Ian Caulfield committed
339
OBJS-$(CONFIG_MLP_PARSER)              += mlp_parser.o
340
OBJS-$(CONFIG_MPEG4VIDEO_PARSER)       += mpeg4video_parser.o h263.o mpeg12data.o mpegvideo.o error_resilience.o
341
OBJS-$(CONFIG_MPEGAUDIO_PARSER)        += mpegaudio_parser.o mpegaudiodecheader.o mpegaudiodata.o
342
OBJS-$(CONFIG_MPEGVIDEO_PARSER)        += mpegvideo_parser.o mpeg12.o mpeg12data.o mpegvideo.o error_resilience.o
343
OBJS-$(CONFIG_PNM_PARSER)              += pnm_parser.o pnm.o
344
OBJS-$(CONFIG_VC1_PARSER)              += vc1_parser.o
345

346
OBJS-$(CONFIG_DUMP_EXTRADATA_BSF)      += dump_extradata_bsf.o
347
OBJS-$(CONFIG_H264_MP4TOANNEXB_BSF)    += h264_mp4toannexb_bsf.o
348 349
OBJS-$(CONFIG_IMX_DUMP_HEADER_BSF)     += imx_dump_header_bsf.o
OBJS-$(CONFIG_MJPEGA_DUMP_HEADER_BSF)  += mjpega_dump_header_bsf.o
350
OBJS-$(CONFIG_MOV2TEXTSUB_BSF)         += movsub_bsf.o
351
OBJS-$(CONFIG_MP3_HEADER_COMPRESS_BSF) += mp3_header_compress_bsf.o
352
OBJS-$(CONFIG_MP3_HEADER_DECOMPRESS_BSF) += mp3_header_decompress_bsf.o mpegaudiodata.o
353 354
OBJS-$(CONFIG_NOISE_BSF)               += noise_bsf.o
OBJS-$(CONFIG_REMOVE_EXTRADATA_BSF)    += remove_extradata_bsf.o
355
OBJS-$(CONFIG_TEXT2MOVSUB_BSF)         += movsub_bsf.o
356

357 358
OBJS-$(HAVE_BEOSTHREADS)               += beosthread.o
OBJS-$(HAVE_OS2THREADS)                += os2thread.o
Måns Rullgård's avatar
Måns Rullgård committed
359 360 361
OBJS-$(HAVE_PTHREADS)                  += pthread.o
OBJS-$(HAVE_W32THREADS)                += w32thread.o

362
OBJS-$(HAVE_XVMC)                      += xvmcvideo.o
363

364
ifneq ($(CONFIG_SWSCALE),yes)
Luca Abeni's avatar
Luca Abeni committed
365 366 367
OBJS += imgresample.o
endif

Diego Biurrun's avatar
Diego Biurrun committed
368
# processor-specific code
369
ifeq ($(HAVE_MMX),yes)
370 371 372 373 374 375
OBJS += i386/fdct_mmx.o \
        i386/cputest.o \
        i386/dsputil_mmx.o \
        i386/mpegvideo_mmx.o \
        i386/motion_est_mmx.o \
        i386/simple_idct_mmx.o \
376
        i386/idct_mmx_xvid.o \
377 378 379 380
        i386/fft_sse.o \
        i386/fft_3dn.o \
        i386/fft_3dn2.o \

Diego Biurrun's avatar
Diego Biurrun committed
381
OBJS-$(CONFIG_GPL)                     += i386/idct_mmx.o
382

383 384
OBJS-$(CONFIG_ENCODERS)                += i386/dsputilenc_mmx.o

Diego Biurrun's avatar
Diego Biurrun committed
385
OBJS-$(CONFIG_CAVS_DECODER)            += i386/cavsdsp_mmx.o
386
OBJS-$(CONFIG_FLAC_ENCODER)            += i386/flacdsp_mmx.o
387
OBJS-$(CONFIG_SNOW_DECODER)            += i386/snowdsp_mmx.o
388
OBJS-$(CONFIG_VC1_DECODER)             += i386/vc1dsp_mmx.o
389 390 391
OBJS-$(CONFIG_VP3_DECODER)             += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
OBJS-$(CONFIG_VP5_DECODER)             += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
OBJS-$(CONFIG_VP6_DECODER)             += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
392
OBJS-$(CONFIG_VP6A_DECODER)            += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
393
OBJS-$(CONFIG_VP6F_DECODER)            += i386/vp3dsp_mmx.o i386/vp3dsp_sse2.o
394
OBJS-$(CONFIG_WMV3_DECODER)            += i386/vc1dsp_mmx.o
Fabrice Bellard's avatar
Fabrice Bellard committed
395 396
endif

397
ASM_OBJS-$(ARCH_ARMV4L)                += armv4l/jrevdct_arm.o     \
Måns Rullgård's avatar
Måns Rullgård committed
398
                                          armv4l/simple_idct_arm.o \
399 400
                                          armv4l/dsputil_arm_s.o   \

401
OBJS-$(ARCH_ARMV4L)                    += armv4l/dsputil_arm.o   \
402 403
                                          armv4l/mpegvideo_arm.o \

404
OBJS-$(HAVE_IWMMXT)                    += armv4l/dsputil_iwmmxt.o   \
405 406
                                          armv4l/mpegvideo_iwmmxt.o \

407 408
OBJS-$(HAVE_ARMV5TE)                   += armv4l/mpegvideo_armv5te.o \

409
ASM_OBJS-$(HAVE_ARMV5TE)               += armv4l/simple_idct_armv5te.o \
Måns Rullgård's avatar
Måns Rullgård committed
410

411
ASM_OBJS-$(HAVE_ARMV6)                 += armv4l/simple_idct_armv6.o \
Måns Rullgård's avatar
Måns Rullgård committed
412

413
OBJS-$(HAVE_VIS)                       += sparc/dsputil_vis.o \
414
                                          sparc/simple_idct_vis.o \
415

416
OBJS-$(CONFIG_MLIB)                    += mlib/dsputil_mlib.o \
417

418
OBJS-$(ARCH_ALPHA)                     += alpha/dsputil_alpha.o     \
419
                                          alpha/motion_est_alpha.o  \
Måns Rullgård's avatar
Måns Rullgård committed
420 421
                                          alpha/mpegvideo_alpha.o   \
                                          alpha/simple_idct_alpha.o \
422

423
ASM_OBJS-$(ARCH_ALPHA)                 += alpha/dsputil_alpha_asm.o  \
424 425
                                          alpha/motion_est_mvi_asm.o \

426
OBJS-$(ARCH_POWERPC)                   += ppc/dsputil_ppc.o   \
Måns Rullgård's avatar
Måns Rullgård committed
427

428
OBJS-$(HAVE_MMI)                       += ps2/dsputil_mmi.o   \
Måns Rullgård's avatar
Måns Rullgård committed
429
                                          ps2/idct_mmi.o      \
430 431
                                          ps2/mpegvideo_mmi.o \

432
OBJS-$(ARCH_SH4)                       += sh4/idct_sh4.o      \
433
                                          sh4/dsputil_align.o \
434
                                          sh4/dsputil_sh4.o   \
435

436
ALTIVEC-OBJS-yes                       += ppc/dsputil_altivec.o      \
Måns Rullgård's avatar
Måns Rullgård committed
437
                                          ppc/fdct_altivec.o         \
438
                                          ppc/fft_altivec.o          \
439
                                          ppc/float_altivec.o        \
440 441
                                          ppc/gmc_altivec.o          \
                                          ppc/idct_altivec.o         \
442
                                          ppc/int_altivec.o          \
443
                                          ppc/mpegvideo_altivec.o    \
444

445 446 447 448 449 450 451 452 453 454 455
ALTIVEC-OBJS-$(CONFIG_H264_DECODER)    += ppc/h264_altivec.o
ALTIVEC-OBJS-$(CONFIG_SNOW_DECODER)    += ppc/snow_altivec.o
ALTIVEC-OBJS-$(CONFIG_VC1_DECODER)     += ppc/vc1dsp_altivec.o
ALTIVEC-OBJS-$(CONFIG_WMV3_DECODER)    += ppc/vc1dsp_altivec.o

# -maltivec is needed in order to build AltiVec code.
$(ALTIVEC-OBJS-yes): CFLAGS += -maltivec -mabi=altivec

# check_altivec must be built without -maltivec
OBJS-$(HAVE_ALTIVEC)                   += $(ALTIVEC-OBJS-yes)       \
                                          ppc/check_altivec.o
456

457
OBJS-$(ARCH_BFIN)                      += bfin/dsputil_bfin.o \
458
                                          bfin/mpegvideo_bfin.o \
459
                                          bfin/vp3_bfin.o \
Måns Rullgård's avatar
Måns Rullgård committed
460

461
ASM_OBJS-$(ARCH_BFIN)                  += bfin/pixels_bfin.o \
462
                                          bfin/fdct_bfin.o   \
463
                                          bfin/idct_bfin.o   \
464
                                          bfin/vp3_idct_bfin.o   \
465

466 467 468 469 470
TESTS = $(addsuffix -test$(EXESUF), cabac dct eval fft h264 imgresample rangecoder snow)
ifeq ($(ARCH_X86),yes)
TESTS += cpuid-test$(EXESUF) motion-test$(EXESUF)
endif

471
include ../common.mak
472

473
clean::
474
	rm -f \
475
	   alpha/*.o alpha/*~ \
Diego Biurrun's avatar
Diego Biurrun committed
476
	   armv4l/*.o armv4l/*~ \
Marc Hoffman's avatar
Marc Hoffman committed
477
	   bfin/*.o bfin/*~ \
Diego Biurrun's avatar
Diego Biurrun committed
478 479
	   i386/*.o i386/*~ \
	   mlib/*.o mlib/*~ \
480
	   ppc/*.o ppc/*~ \
481
	   ps2/*.o ps2/*~ \
482
	   sh4/*.o sh4/*~ \
483
	   sparc/*.o sparc/*~ \
484
	   apiexample$(EXESUF)
485

Diego Biurrun's avatar
Diego Biurrun committed
486 487 488 489 490
cpuid-test$(EXESUF): i386/cputest.c
apiexample$(EXESUF): apiexample.o $(LIBNAME)
dct-test$(EXESUF): dct-test.o fdctref.o $(LIBNAME)
fft-test$(EXESUF): fft-test.o $(LIBNAME)
motion-test$(EXESUF): motion-test.o $(LIBNAME)