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

7
CFLAGS+=-I$(SRC_PATH)/libswscale $(AMR_CFLAGS)
glantau's avatar
glantau committed
8

9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
OBJS= bitstream.o \
      utils.o \
      allcodecs.o \
      mpegvideo.o \
      jrevdct.o \
      jfdctfst.o \
      jfdctint.o\
      mjpeg.o \
      resample.o \
      resample2.o \
      dsputil.o \
      motion_est.o \
      imgconvert.o \
      mpeg12.o \
      mpegaudiodec.o \
      simple_idct.o \
      ratecontrol.o \
      eval.o \
      error_resilience.o \
      fft.o \
      mdct.o \
      raw.o \
      golomb.o \
      cabac.o\
      faandct.o \
      parser.o \
      vp3dsp.o \
      h264idct.o \
      rangecoder.o \
      pnm.o \
      h263.o \
      msmpeg4.o \
      h263dec.o \
42 43
      opt.o \
      bitstream_filter.o \
michael's avatar
michael committed
44
      audioconvert.o \
45

bellard's avatar
bellard committed
46

nicodvb's avatar
nicodvb committed
47
HEADERS = avcodec.h opt.h
48

mru's avatar
mru committed
49 50 51 52 53 54 55 56
OBJS-$(CONFIG_AASC_DECODER)            += aasc.o
OBJS-$(CONFIG_AC3_ENCODER)             += ac3enc.o
OBJS-$(CONFIG_ALAC_DECODER)            += alac.o
OBJS-$(CONFIG_ASV1_DECODER)            += asv1.o
OBJS-$(CONFIG_ASV1_ENCODER)            += asv1.o
OBJS-$(CONFIG_ASV2_DECODER)            += asv1.o
OBJS-$(CONFIG_ASV2_ENCODER)            += asv1.o
OBJS-$(CONFIG_AVS_DECODER)             += avs.o
57
OBJS-$(CONFIG_BMP_DECODER)             += bmp.o
mru's avatar
mru committed
58 59 60 61
OBJS-$(CONFIG_CAVS_DECODER)            += cavs.o cavsdsp.o
OBJS-$(CONFIG_CINEPAK_DECODER)         += cinepak.o
OBJS-$(CONFIG_CLJR_DECODER)            += cljr.o
OBJS-$(CONFIG_CLJR_ENCODER)            += cljr.o
62 63
OBJS-$(CONFIG_COOK_DECODER)            += cook.o
OBJS-$(CONFIG_CSCD_DECODER)            += cscd.o lzo.o
mru's avatar
mru committed
64
OBJS-$(CONFIG_CYUV_DECODER)            += cyuv.o
65 66
OBJS-$(CONFIG_DSICINVIDEO_DECODER)     += dsicinav.o
OBJS-$(CONFIG_DSICINAUDIO_DECODER)     += dsicinav.o
mru's avatar
mru committed
67 68
OBJS-$(CONFIG_DVBSUB_DECODER)          += dvbsubdec.o
OBJS-$(CONFIG_DVBSUB_ENCODER)          += dvbsub.o
diego's avatar
diego committed
69
OBJS-$(CONFIG_DVDSUB_DECODER)          += dvdsubdec.o
mru's avatar
mru committed
70 71 72 73 74 75
OBJS-$(CONFIG_DVDSUB_ENCODER)          += dvdsubenc.o
OBJS-$(CONFIG_DVVIDEO_DECODER)         += dv.o
OBJS-$(CONFIG_DVVIDEO_ENCODER)         += dv.o
OBJS-$(CONFIG_EIGHTBPS_DECODER)        += 8bps.o
OBJS-$(CONFIG_FFV1_DECODER)            += ffv1.o
OBJS-$(CONFIG_FFV1_ENCODER)            += ffv1.o
76 77
OBJS-$(CONFIG_FFVHUFF_DECODER)         += huffyuv.o
OBJS-$(CONFIG_FFVHUFF_ENCODER)         += huffyuv.o
mru's avatar
mru committed
78 79
OBJS-$(CONFIG_FLAC_DECODER)            += flac.o
OBJS-$(CONFIG_FLAC_ENCODER)            += flacenc.o
80
OBJS-$(CONFIG_FLASHSV_DECODER)         += flashsv.o
mru's avatar
mru committed
81 82 83
OBJS-$(CONFIG_FLIC_DECODER)            += flicvideo.o
OBJS-$(CONFIG_FOURXM_DECODER)          += 4xm.o
OBJS-$(CONFIG_FRAPS_DECODER)           += fraps.o
84
OBJS-$(CONFIG_GIF_DECODER)             += gifdec.o lzw.o
85
OBJS-$(CONFIG_GIF_ENCODER)             += gif.o
mru's avatar
mru committed
86 87 88
OBJS-$(CONFIG_H261_DECODER)            += h261.o
OBJS-$(CONFIG_H261_ENCODER)            += h261.o
OBJS-$(CONFIG_H264_DECODER)            += h264.o
takis's avatar
takis committed
89
OBJS-$(CONFIG_H264_ENCODER)            += h264enc.o h264dsp.o
mru's avatar
mru committed
90 91 92
OBJS-$(CONFIG_HUFFYUV_DECODER)         += huffyuv.o
OBJS-$(CONFIG_HUFFYUV_ENCODER)         += huffyuv.o
OBJS-$(CONFIG_IDCIN_DECODER)           += idcinvideo.o
kostya's avatar
kostya committed
93
OBJS-$(CONFIG_IMC_DECODER)             += imc.o
mru's avatar
mru committed
94 95 96
OBJS-$(CONFIG_INDEO2_DECODER)          += indeo2.o
OBJS-$(CONFIG_INDEO3_DECODER)          += indeo3.o
OBJS-$(CONFIG_INTERPLAY_VIDEO_DECODER) += interplayvideo.o
97
OBJS-$(CONFIG_INTERPLAY_DPCM_DECODER)  += dpcm.o
mru's avatar
mru committed
98 99 100 101
OBJS-$(CONFIG_KMVC_DECODER)            += kmvc.o
OBJS-$(CONFIG_LOCO_DECODER)            += loco.o
OBJS-$(CONFIG_MACE3_DECODER)           += mace.o
OBJS-$(CONFIG_MACE6_DECODER)           += mace.o
102
OBJS-$(CONFIG_MMVIDEO_DECODER)         += mmvideo.o
mru's avatar
mru committed
103
OBJS-$(CONFIG_MP2_ENCODER)             += mpegaudio.o
kostya's avatar
kostya committed
104
OBJS-$(CONFIG_MPC7_DECODER)            += mpc.o
mru's avatar
mru committed
105 106
OBJS-$(CONFIG_MSRLE_DECODER)           += msrle.o
OBJS-$(CONFIG_MSVIDEO1_DECODER)        += msvideo1.o
107 108
OBJS-$(CONFIG_MSZH_DECODER)            += lcl.o
OBJS-$(CONFIG_NUV_DECODER)             += nuv.o rtjpeg.o lzo.o
mru's avatar
mru committed
109 110 111 112 113 114 115 116 117
OBJS-$(CONFIG_PNG_DECODER)             += png.o
OBJS-$(CONFIG_PNG_ENCODER)             += png.o
OBJS-$(CONFIG_QDM2_DECODER)            += qdm2.o
OBJS-$(CONFIG_QDRAW_DECODER)           += qdrw.o
OBJS-$(CONFIG_QPEG_DECODER)            += qpeg.o
OBJS-$(CONFIG_QTRLE_DECODER)           += qtrle.o
OBJS-$(CONFIG_RA_144_DECODER)          += ra144.o
OBJS-$(CONFIG_RA_288_DECODER)          += ra288.o
OBJS-$(CONFIG_ROQ_DECODER)             += roqvideo.o
118
OBJS-$(CONFIG_ROQ_DPCM_DECODER)        += dpcm.o
mru's avatar
mru committed
119 120 121 122 123 124 125
OBJS-$(CONFIG_RPZA_DECODER)            += rpza.o
OBJS-$(CONFIG_RV10_DECODER)            += rv10.o
OBJS-$(CONFIG_RV10_ENCODER)            += rv10.o
OBJS-$(CONFIG_RV20_DECODER)            += rv10.o
OBJS-$(CONFIG_RV20_ENCODER)            += rv10.o
OBJS-$(CONFIG_SHORTEN_DECODER)         += shorten.o
OBJS-$(CONFIG_SMACKAUD_DECODER)        += smacker.o
126
OBJS-$(CONFIG_SMACKER_DECODER)         += smacker.o
mru's avatar
mru committed
127 128 129
OBJS-$(CONFIG_SMC_DECODER)             += smc.o
OBJS-$(CONFIG_SNOW_DECODER)            += snow.o
OBJS-$(CONFIG_SNOW_ENCODER)            += snow.o
130
OBJS-$(CONFIG_SOL_DPCM_DECODER)        += dpcm.o
mru's avatar
mru committed
131 132 133 134 135
OBJS-$(CONFIG_SONIC_DECODER)           += sonic.o
OBJS-$(CONFIG_SONIC_ENCODER)           += sonic.o
OBJS-$(CONFIG_SONIC_LS_DECODER)        += sonic.o
OBJS-$(CONFIG_SVQ1_DECODER)            += svq1.o
OBJS-$(CONFIG_SVQ1_ENCODER)            += svq1.o
136
OBJS-$(CONFIG_SVQ3_DECODER)            += h264.o
kostya's avatar
kostya committed
137
OBJS-$(CONFIG_TARGA_DECODER)           += targa.o
138
OBJS-$(CONFIG_THEORA_DECODER)          += vp3.o
139
OBJS-$(CONFIG_TIERTEXSEQVIDEO_DECODER) += tiertexseqv.o
140
OBJS-$(CONFIG_TIFF_DECODER)            += tiff.o lzw.o
mru's avatar
mru committed
141 142 143 144
OBJS-$(CONFIG_TRUEMOTION1_DECODER)     += truemotion1.o
OBJS-$(CONFIG_TRUEMOTION2_DECODER)     += truemotion2.o
OBJS-$(CONFIG_TRUESPEECH_DECODER)      += truespeech.o
OBJS-$(CONFIG_TSCC_DECODER)            += tscc.o
145
OBJS-$(CONFIG_TTA_DECODER)             += tta.o
mru's avatar
mru committed
146
OBJS-$(CONFIG_ULTI_DECODER)            += ulti.o
147
OBJS-$(CONFIG_VC1_DECODER)             += vc1.o vc1dsp.o
mru's avatar
mru committed
148 149 150
OBJS-$(CONFIG_VCR1_DECODER)            += vcr1.o
OBJS-$(CONFIG_VCR1_ENCODER)            += vcr1.o
OBJS-$(CONFIG_VMDAUDIO_DECODER)        += vmdav.o
151
OBJS-$(CONFIG_VMDVIDEO_DECODER)        += vmdav.o
kostya's avatar
kostya committed
152
OBJS-$(CONFIG_VMNC_DECODER)            += vmnc.o
ods15's avatar
ods15 committed
153
OBJS-$(CONFIG_VORBIS_DECODER)          += vorbis.o vorbis_data.o
154
OBJS-$(CONFIG_VORBIS_ENCODER)          += vorbis_enc.o vorbis.o vorbis_data.o
mru's avatar
mru committed
155
OBJS-$(CONFIG_VP3_DECODER)             += vp3.o
aurel's avatar
aurel committed
156 157
OBJS-$(CONFIG_VP5_DECODER)             += vp5.o vp56.o vp56data.o
OBJS-$(CONFIG_VP6_DECODER)             += vp6.o vp56.o vp56data.o
mru's avatar
mru committed
158
OBJS-$(CONFIG_VQA_DECODER)             += vqavideo.o
kostya's avatar
kostya committed
159
OBJS-$(CONFIG_WAVPACK_DECODER)         += wavpack.o
mru's avatar
mru committed
160 161
OBJS-$(CONFIG_WMAV1_DECODER)           += wmadec.o
OBJS-$(CONFIG_WMAV2_DECODER)           += wmadec.o
162
OBJS-$(CONFIG_WMV3_DECODER)            += vc1.o vc1dsp.o
mru's avatar
mru committed
163 164
OBJS-$(CONFIG_WNV1_DECODER)            += wnv1.o
OBJS-$(CONFIG_WS_SND1_DECODER)         += ws-snd1.o
165
OBJS-$(CONFIG_XAN_DPCM_DECODER)        += dpcm.o
mru's avatar
mru committed
166 167 168
OBJS-$(CONFIG_XAN_WC3_DECODER)         += xan.o
OBJS-$(CONFIG_XAN_WC4_DECODER)         += xan.o
OBJS-$(CONFIG_XL_DECODER)              += xl.o
169 170
OBJS-$(CONFIG_ZLIB_DECODER)            += lcl.o
OBJS-$(CONFIG_ZLIB_ENCODER)            += lcl.o
mru's avatar
mru committed
171
OBJS-$(CONFIG_ZMBV_DECODER)            += zmbv.o
kostya's avatar
kostya committed
172
OBJS-$(CONFIG_ZMBV_ENCODER)            += zmbvenc.o
mru's avatar
mru committed
173

mru's avatar
mru committed
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
OBJS-$(CONFIG_PCM_S32LE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_S32LE_ENCODER)       += pcm.o
OBJS-$(CONFIG_PCM_S32BE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_S32BE_ENCODER)       += pcm.o
OBJS-$(CONFIG_PCM_U32LE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_U32LE_ENCODER)       += pcm.o
OBJS-$(CONFIG_PCM_U32BE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_U32BE_ENCODER)       += pcm.o
OBJS-$(CONFIG_PCM_S24LE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_S24LE_ENCODER)       += pcm.o
OBJS-$(CONFIG_PCM_S24BE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_S24BE_ENCODER)       += pcm.o
OBJS-$(CONFIG_PCM_U24LE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_U24LE_ENCODER)       += pcm.o
OBJS-$(CONFIG_PCM_U24BE_DECODER)       += pcm.o
OBJS-$(CONFIG_PCM_U24BE_ENCODER)       += pcm.o
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
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

OBJS-$(CONFIG_ADPCM_4XM_DECODER)       += adpcm.o
OBJS-$(CONFIG_ADPCM_4XM_ENCODER)       += adpcm.o
mru's avatar
mru committed
211 212
OBJS-$(CONFIG_ADPCM_ADX_DECODER)       += adx.o
OBJS-$(CONFIG_ADPCM_ADX_ENCODER)       += adx.o
mru's avatar
mru committed
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
OBJS-$(CONFIG_ADPCM_CT_DECODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_CT_ENCODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_EA_DECODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_EA_ENCODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_G726_DECODER)      += g726.o
OBJS-$(CONFIG_ADPCM_G726_ENCODER)      += g726.o
OBJS-$(CONFIG_ADPCM_IMA_DK3_DECODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_DK3_ENCODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_DK4_DECODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_DK4_ENCODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_QT_DECODER)    += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_QT_ENCODER)    += adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_DECODER)+= adpcm.o
OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_ENCODER)+= adpcm.o
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_IMA_WS_ENCODER)    += 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_2_ENCODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_SBPRO_3_DECODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_SBPRO_3_ENCODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_SBPRO_4_DECODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_SBPRO_4_ENCODER)   += adpcm.o
OBJS-$(CONFIG_ADPCM_SWF_DECODER)       += adpcm.o
OBJS-$(CONFIG_ADPCM_SWF_ENCODER)       += adpcm.o
OBJS-$(CONFIG_ADPCM_XA_DECODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_XA_ENCODER)        += adpcm.o
OBJS-$(CONFIG_ADPCM_YAMAHA_DECODER)    += adpcm.o
OBJS-$(CONFIG_ADPCM_YAMAHA_ENCODER)    += adpcm.o

mru's avatar
mru committed
246 247 248 249 250 251 252
OBJS-$(CONFIG_FAAD)                    += faad.o
OBJS-$(CONFIG_FAAC)                    += faac.o
OBJS-$(CONFIG_XVID)                    += xvidff.o xvid_rc.o
OBJS-$(CONFIG_X264)                    += x264.o
OBJS-$(CONFIG_MP3LAME)                 += mp3lameaudio.o
OBJS-$(CONFIG_LIBVORBIS)               += oggvorbis.o
OBJS-$(CONFIG_LIBGSM)                  += libgsm.o
iive's avatar
iive committed
253

kabi's avatar
kabi committed
254
# currently using liba52 for ac3 decoding
mru's avatar
mru committed
255
OBJS-$(CONFIG_A52)                     += a52dec.o
kabi's avatar
kabi committed
256 257

# using builtin liba52 or runtime linked liba52.so.0
mru's avatar
mru committed
258
OBJS-$(CONFIG_A52)$(CONFIG_A52BIN)     += liba52/bit_allocate.o \
mru's avatar
mru committed
259 260 261 262 263 264
                                          liba52/bitstream.o    \
                                          liba52/downmix.o      \
                                          liba52/imdct.o        \
                                          liba52/parse.o        \
                                          liba52/crc.o          \
                                          liba52/resample.o
265

266
# currently using libdts for dts decoding
mru's avatar
mru committed
267
OBJS-$(CONFIG_DTS)                     += dtsdec.o
268

269 270
OBJS-$(CONFIG_AMR)                     += amr.o
OBJS-$(CONFIG_AMR_NB)                  += amr_float/sp_dec.o     \
mru's avatar
mru committed
271 272 273
                                          amr_float/sp_enc.o     \
                                          amr_float/interf_dec.o \
                                          amr_float/interf_enc.o
274

275
ifeq ($(CONFIG_AMR_NB_FIXED),yes)
mru's avatar
mru committed
276 277
EXTRAOBJS += amr/*.o
EXTRADEPS=amrlibs
michael's avatar
michael committed
278
endif
michaelni's avatar
 
michaelni committed
279

mru's avatar
mru committed
280
OBJS-$(CONFIG_AMR_WB)                  += amrwb_float/dec_acelp.o \
mru's avatar
mru committed
281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297
                                          amrwb_float/dec_dtx.o   \
                                          amrwb_float/dec_gain.o  \
                                          amrwb_float/dec_if.o    \
                                          amrwb_float/dec_lpc.o   \
                                          amrwb_float/dec_main.o  \
                                          amrwb_float/dec_rom.o   \
                                          amrwb_float/dec_util.o  \
                                          amrwb_float/enc_acelp.o \
                                          amrwb_float/enc_dtx.o   \
                                          amrwb_float/enc_gain.o  \
                                          amrwb_float/enc_if.o    \
                                          amrwb_float/enc_lpc.o   \
                                          amrwb_float/enc_main.o  \
                                          amrwb_float/enc_rom.o   \
                                          amrwb_float/enc_util.o  \
                                          amrwb_float/if_rom.o

298 299
OBJS-$(CONFIG_AAC_PARSER)              += parser.o
OBJS-$(CONFIG_AC3_PARSER)              += parser.o
stefang's avatar
stefang committed
300
OBJS-$(CONFIG_CAVSVIDEO_PARSER)        += cavs.o parser.o
301
OBJS-$(CONFIG_DVBSUB_PARSER)           += dvbsubdec.o
diego's avatar
diego committed
302
OBJS-$(CONFIG_DVDSUB_PARSER)           += dvdsubdec.o
303 304 305 306 307 308 309 310 311
OBJS-$(CONFIG_H261_PARSER)             += h261.o
OBJS-$(CONFIG_H263_PARSER)             += h263dec.o
OBJS-$(CONFIG_H264_PARSER)             += h264.o
OBJS-$(CONFIG_MJPEG_PARSER)            += mjpeg.o
OBJS-$(CONFIG_MPEG4VIDEO_PARSER)       += parser.o
OBJS-$(CONFIG_MPEGAUDIO_PARSER)        += parser.o
OBJS-$(CONFIG_MPEGVIDEO_PARSER)        += parser.o
OBJS-$(CONFIG_PNM_PARSER)              += pnm.o

mru's avatar
mru committed
312 313 314 315 316 317
OBJS-$(HAVE_PTHREADS)                  += pthread.o
OBJS-$(HAVE_W32THREADS)                += w32thread.o
OBJS-$(HAVE_OS2THREADS)                += os2thread.o
OBJS-$(HAVE_BEOSTHREADS)               += beosthread.o

OBJS-$(HAVE_XVMC_ACCEL)                += xvmcvideo.o
318

lucabe's avatar
lucabe committed
319 320 321 322
ifneq ($(CONFIG_SWSCALER),yes)
OBJS += imgresample.o
endif

glantau's avatar
glantau committed
323
# i386 mmx specific stuff
324
ifeq ($(TARGET_MMX),yes)
325 326 327 328 329 330
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 \
331
        i386/idct_mmx_xvid.o \
332 333 334 335 336 337 338
        i386/fft_sse.o \
        i386/vp3dsp_mmx.o \
        i386/vp3dsp_sse2.o \
        i386/fft_3dn.o \
        i386/fft_3dn2.o \
        i386/snowdsp_mmx.o \

michael's avatar
michael committed
339
ifeq ($(CONFIG_GPL),yes)
340
OBJS += i386/idct_mmx.o
michael's avatar
michael committed
341
endif
342 343 344
ifeq ($(CONFIG_CAVS_DECODER),yes)
OBJS += i386/cavsdsp_mmx.o
endif
glantau's avatar
glantau committed
345 346
endif

glantau's avatar
glantau committed
347
# armv4l specific stuff
mru's avatar
mru committed
348 349
ASM_OBJS-$(TARGET_ARCH_ARMV4L)         += armv4l/jrevdct_arm.o     \
                                          armv4l/simple_idct_arm.o \
350 351
                                          armv4l/dsputil_arm_s.o   \

mru's avatar
mru committed
352
OBJS-$(TARGET_ARCH_ARMV4L)             += armv4l/dsputil_arm.o   \
353 354
                                          armv4l/mpegvideo_arm.o \

mru's avatar
mru committed
355
OBJS-$(TARGET_IWMMXT)                  += armv4l/dsputil_iwmmxt.o   \
356 357 358
                                          armv4l/mpegvideo_iwmmxt.o \

ASM_OBJS-$(TARGET_ARMV5TE)             += armv4l/simple_idct_armv5te.o \
mru's avatar
mru committed
359 360

# sun sparc
361 362
OBJS-$(TARGET_ARCH_SPARC)              += sparc/dsputil_vis.o \

mru's avatar
mru committed
363
sparc/dsputil_vis.o: CFLAGS += -mcpu=ultrasparc -mtune=ultrasparc
glantau's avatar
glantau committed
364

glantau's avatar
glantau committed
365
# sun mediaLib specific stuff
366
OBJS-$(HAVE_MLIB)                      += mlib/dsputil_mlib.o \
367

368
# alpha specific stuff
mru's avatar
mru committed
369 370 371
OBJS-$(TARGET_ARCH_ALPHA)              += alpha/dsputil_alpha.o     \
                                          alpha/mpegvideo_alpha.o   \
                                          alpha/simple_idct_alpha.o \
372 373
                                          alpha/motion_est_alpha.o  \

mru's avatar
mru committed
374
ASM_OBJS-$(TARGET_ARCH_ALPHA)          += alpha/dsputil_alpha_asm.o  \
375 376 377 378
                                          alpha/motion_est_mvi_asm.o \

OBJS-$(TARGET_ARCH_POWERPC)            += ppc/dsputil_ppc.o   \
                                          ppc/mpegvideo_ppc.o \
mru's avatar
mru committed
379 380 381

OBJS-$(TARGET_MMI)                     += ps2/dsputil_mmi.o   \
                                          ps2/idct_mmi.o      \
382 383
                                          ps2/mpegvideo_mmi.o \

mru's avatar
mru committed
384 385
OBJS-$(TARGET_ARCH_SH4)                += sh4/idct_sh4.o      \
                                          sh4/dsputil_sh4.o   \
386 387
                                          sh4/dsputil_align.o \

mru's avatar
mru committed
388 389 390 391 392 393
OBJS-$(TARGET_ALTIVEC)                 += ppc/dsputil_altivec.o      \
                                          ppc/mpegvideo_altivec.o    \
                                          ppc/idct_altivec.o         \
                                          ppc/fft_altivec.o          \
                                          ppc/gmc_altivec.o          \
                                          ppc/fdct_altivec.o         \
394 395
                                          ppc/float_altivec.o        \

396 397 398 399 400 401 402
ifeq ($(TARGET_ALTIVEC),yes)
OBJS-$(CONFIG_H264_DECODER)            += ppc/h264_altivec.o
OBJS-$(CONFIG_SNOW_DECODER)            += ppc/snow_altivec.o
OBJS-$(CONFIG_VC1_DECODER)             += ppc/vc1dsp_altivec.o
OBJS-$(CONFIG_WMV3_DECODER)            += ppc/vc1dsp_altivec.o
endif

403
OBJS-$(TARGET_ARCH_BFIN)               += bfin/dsputil_bfin.o \
mru's avatar
mru committed
404 405 406 407

CFLAGS += $(CFLAGS-yes)
OBJS += $(OBJS-yes)
ASM_OBJS += $(ASM_OBJS-yes)
408

409 410
EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)

411
NAME=avcodec
nickols_k's avatar
nickols_k committed
412
ifeq ($(BUILD_SHARED),yes)
413 414
LIBVERSION=$(LAVCVERSION)
LIBMAJOR=$(LAVCMAJOR)
nickols_k's avatar
nickols_k committed
415
endif
diego's avatar
diego committed
416 417 418 419 420

TESTS= imgresample-test fft-test
ifeq ($(TARGET_ARCH_X86),yes)
TESTS+= cpuid_test dct-test motion-test
endif
glantau's avatar
glantau committed
421

422
include ../common.mak
423

kabi's avatar
kabi committed
424 425 426
amrlibs:
	$(MAKE) -C amr spclib fipoplib

diego's avatar
diego committed
427
tests: apiexample $(TESTS)
glantau's avatar
glantau committed
428

diego's avatar
diego committed
429
clean::
430
	rm -f \
431
	   i386/*.o i386/*~ \
glantau's avatar
glantau committed
432
	   armv4l/*.o armv4l/*~ \
glantau's avatar
glantau committed
433
	   mlib/*.o mlib/*~ \
434
	   alpha/*.o alpha/*~ \
435
	   ppc/*.o ppc/*~ \
436
	   ps2/*.o ps2/*~ \
437
	   sh4/*.o sh4/*~ \
438
	   sparc/*.o sparc/*~ \
kabi's avatar
kabi committed
439
	   liba52/*.o liba52/*~ \
diego's avatar
diego committed
440
	   amr_float/*.o \
kabi's avatar
kabi committed
441
	   apiexample $(TESTS)
442 443
	-$(MAKE) -C amr clean
	-$(MAKE) -C amrwb_float -f makefile.gcc clean
444

diego's avatar
diego committed
445
apiexample: apiexample.o $(LIB)
glantau's avatar
glantau committed
446

nickols_k's avatar
nickols_k committed
447 448 449
cpuid_test: i386/cputest.c
	$(CC) $(CFLAGS) -D__TEST__ -o $@ $<

diego's avatar
diego committed
450
imgresample-test: imgresample.c $(LIB)
diego's avatar
diego committed
451
	$(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS)
glantau's avatar
glantau committed
452

bellard's avatar
bellard committed
453
dct-test: dct-test.o fdctref.o $(LIB)
454

glantau's avatar
glantau committed
455 456
motion-test: motion_test.o $(LIB)

457
fft-test: fft-test.o $(LIB)
diego's avatar
diego committed
458 459

.PHONY: amrlibs tests