2002-05-19 02:01:20 +03:00
|
|
|
#
|
|
|
|
# libavcodec Makefile
|
2005-03-06 02:43:55 +02:00
|
|
|
# (c) 2000-2005 Fabrice Bellard
|
2002-05-19 02:01:20 +03:00
|
|
|
#
|
2001-07-23 23:06:54 +03:00
|
|
|
include ../config.mak
|
|
|
|
|
2002-05-26 01:45:33 +03:00
|
|
|
# NOTE: -I.. is needed to include config.h
|
2006-07-05 17:12:00 +03:00
|
|
|
CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavutil \
|
2006-07-14 02:10:01 +03:00
|
|
|
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE $(AMR_CFLAGS)
|
2001-07-22 17:18:56 +03:00
|
|
|
|
2004-12-29 19:50:25 +02:00
|
|
|
OBJS= bitstream.o utils.o mem.o allcodecs.o \
|
2003-01-29 14:00:11 +02:00
|
|
|
mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\
|
2006-07-06 23:32:19 +03:00
|
|
|
mjpeg.o resample.o resample2.o dsputil.o \
|
2003-01-29 14:00:11 +02:00
|
|
|
motion_est.o imgconvert.o imgresample.o \
|
2006-07-09 00:15:50 +03:00
|
|
|
mpeg12.o mpegaudiodec.o simple_idct.o \
|
|
|
|
ratecontrol.o eval.o error_resilience.o \
|
2005-05-03 01:14:42 +03:00
|
|
|
fft.o mdct.o raw.o golomb.o cabac.o\
|
2006-07-09 02:05:12 +03:00
|
|
|
faandct.o parser.o \
|
2005-11-15 00:17:29 +02:00
|
|
|
vp3dsp.o h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o \
|
2006-07-06 18:04:46 +03:00
|
|
|
opt.o \
|
|
|
|
bitstream_filter.o \
|
|
|
|
|
2005-06-03 16:59:38 +03:00
|
|
|
|
2006-03-21 00:48:08 +02:00
|
|
|
HEADERS = avcodec.h
|
2006-02-13 14:53:25 +02:00
|
|
|
|
2006-07-08 19:39:49 +03:00
|
|
|
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
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_BMP_DECODER) += bmp.o
|
2006-07-08 19:39:49 +03:00
|
|
|
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
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_COOK_DECODER) += cook.o
|
|
|
|
OBJS-$(CONFIG_CSCD_DECODER) += cscd.o lzo.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_CYUV_DECODER) += cyuv.o
|
|
|
|
OBJS-$(CONFIG_DVBSUB_DECODER) += dvbsubdec.o
|
|
|
|
OBJS-$(CONFIG_DVBSUB_ENCODER) += dvbsub.o
|
|
|
|
OBJS-$(CONFIG_DVDSUB_DECODER) += dvdsub.o
|
|
|
|
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
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_FFVHUFF_DECODER) += huffyuv.o
|
|
|
|
OBJS-$(CONFIG_FFVHUFF_ENCODER) += huffyuv.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_FLAC_DECODER) += flac.o
|
|
|
|
OBJS-$(CONFIG_FLAC_ENCODER) += flacenc.o
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_FLASHSV_DECODER) += flashsv.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_FLIC_DECODER) += flicvideo.o
|
|
|
|
OBJS-$(CONFIG_FOURXM_DECODER) += 4xm.o
|
|
|
|
OBJS-$(CONFIG_FRAPS_DECODER) += fraps.o
|
|
|
|
OBJS-$(CONFIG_H261_DECODER) += h261.o
|
|
|
|
OBJS-$(CONFIG_H261_ENCODER) += h261.o
|
|
|
|
OBJS-$(CONFIG_H264_DECODER) += h264.o
|
|
|
|
OBJS-$(CONFIG_HUFFYUV_DECODER) += huffyuv.o
|
|
|
|
OBJS-$(CONFIG_HUFFYUV_ENCODER) += huffyuv.o
|
|
|
|
OBJS-$(CONFIG_IDCIN_DECODER) += idcinvideo.o
|
|
|
|
OBJS-$(CONFIG_INDEO2_DECODER) += indeo2.o
|
|
|
|
OBJS-$(CONFIG_INDEO3_DECODER) += indeo3.o
|
|
|
|
OBJS-$(CONFIG_INTERPLAY_VIDEO_DECODER) += interplayvideo.o
|
2006-07-09 02:05:12 +03:00
|
|
|
OBJS-$(CONFIG_INTERPLAY_DPCM_DECODER) += dpcm.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_KMVC_DECODER) += kmvc.o
|
|
|
|
OBJS-$(CONFIG_LOCO_DECODER) += loco.o
|
|
|
|
OBJS-$(CONFIG_MACE3_DECODER) += mace.o
|
|
|
|
OBJS-$(CONFIG_MACE6_DECODER) += mace.o
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_MMVIDEO_DECODER) += mmvideo.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_MP2_ENCODER) += mpegaudio.o
|
|
|
|
OBJS-$(CONFIG_MSRLE_DECODER) += msrle.o
|
|
|
|
OBJS-$(CONFIG_MSVIDEO1_DECODER) += msvideo1.o
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_MSZH_DECODER) += lcl.o
|
|
|
|
OBJS-$(CONFIG_NUV_DECODER) += nuv.o rtjpeg.o lzo.o
|
2006-07-08 19:39:49 +03:00
|
|
|
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
|
2006-07-09 02:05:12 +03:00
|
|
|
OBJS-$(CONFIG_ROQ_DPCM_DECODER) += dpcm.o
|
2006-07-08 19:39:49 +03:00
|
|
|
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
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_SMACKER_DECODER) += smacker.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_SMC_DECODER) += smc.o
|
|
|
|
OBJS-$(CONFIG_SNOW_DECODER) += snow.o
|
|
|
|
OBJS-$(CONFIG_SNOW_ENCODER) += snow.o
|
2006-07-09 02:05:12 +03:00
|
|
|
OBJS-$(CONFIG_SOL_DPCM_DECODER) += dpcm.o
|
2006-07-08 19:39:49 +03:00
|
|
|
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
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_SVQ3_DECODER) += h264.o
|
|
|
|
OBJS-$(CONFIG_THEORA_DECODER) += vp3.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_TRUEMOTION1_DECODER) += truemotion1.o
|
|
|
|
OBJS-$(CONFIG_TRUEMOTION2_DECODER) += truemotion2.o
|
|
|
|
OBJS-$(CONFIG_TRUESPEECH_DECODER) += truespeech.o
|
|
|
|
OBJS-$(CONFIG_TSCC_DECODER) += tscc.o
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_TTA_DECODER) += tta.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_ULTI_DECODER) += ulti.o
|
|
|
|
OBJS-$(CONFIG_VC1_DECODER) += vc1.o
|
|
|
|
OBJS-$(CONFIG_VCR1_DECODER) += vcr1.o
|
|
|
|
OBJS-$(CONFIG_VCR1_ENCODER) += vcr1.o
|
|
|
|
OBJS-$(CONFIG_VMDAUDIO_DECODER) += vmdav.o
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_VMDVIDEO_DECODER) += vmdav.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_VORBIS_DECODER) += vorbis.o
|
|
|
|
OBJS-$(CONFIG_VP3_DECODER) += vp3.o
|
|
|
|
OBJS-$(CONFIG_VQA_DECODER) += vqavideo.o
|
|
|
|
OBJS-$(CONFIG_WMAV1_DECODER) += wmadec.o
|
|
|
|
OBJS-$(CONFIG_WMAV2_DECODER) += wmadec.o
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_WMV3_DECODER) += vc1.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_WNV1_DECODER) += wnv1.o
|
|
|
|
OBJS-$(CONFIG_WS_SND1_DECODER) += ws-snd1.o
|
2006-07-09 02:05:12 +03:00
|
|
|
OBJS-$(CONFIG_XAN_DPCM_DECODER) += dpcm.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_XAN_WC3_DECODER) += xan.o
|
|
|
|
OBJS-$(CONFIG_XAN_WC4_DECODER) += xan.o
|
|
|
|
OBJS-$(CONFIG_XL_DECODER) += xl.o
|
2006-07-08 19:41:52 +03:00
|
|
|
OBJS-$(CONFIG_ZLIB_DECODER) += lcl.o
|
|
|
|
OBJS-$(CONFIG_ZLIB_ENCODER) += lcl.o
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_ZMBV_DECODER) += zmbv.o
|
|
|
|
|
2006-07-09 00:15:50 +03:00
|
|
|
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
|
2006-07-09 01:31:14 +03:00
|
|
|
OBJS-$(CONFIG_ADPCM_ADX_DECODER) += adx.o
|
|
|
|
OBJS-$(CONFIG_ADPCM_ADX_ENCODER) += adx.o
|
2006-07-09 00:15:50 +03:00
|
|
|
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
|
|
|
|
|
2006-07-08 19:39:49 +03:00
|
|
|
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_LIBTHEORA) += oggtheora.o
|
|
|
|
OBJS-$(CONFIG_LIBGSM) += libgsm.o
|
2003-07-27 02:21:30 +03:00
|
|
|
|
2002-04-22 22:57:45 +03:00
|
|
|
# currently using liba52 for ac3 decoding
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_AC3) += a52dec.o
|
2002-04-22 22:57:45 +03:00
|
|
|
|
|
|
|
# using builtin liba52 or runtime linked liba52.so.0
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_AC3)$(CONFIG_A52BIN) += liba52/bit_allocate.o \
|
|
|
|
liba52/bitstream.o \
|
|
|
|
liba52/downmix.o \
|
|
|
|
liba52/imdct.o \
|
|
|
|
liba52/parse.o \
|
|
|
|
liba52/crc.o \
|
|
|
|
liba52/resample.o
|
2005-08-01 23:07:05 +03:00
|
|
|
|
2004-07-14 04:32:14 +03:00
|
|
|
# currently using libdts for dts decoding
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(CONFIG_DTS) += dtsdec.o
|
2004-07-14 04:32:14 +03:00
|
|
|
|
2006-07-12 19:49:14 +03:00
|
|
|
OBJS-$(CONFIG_AMR) += amr.o
|
|
|
|
OBJS-$(CONFIG_AMR_NB) += amr_float/sp_dec.o \
|
2006-07-08 19:39:49 +03:00
|
|
|
amr_float/sp_enc.o \
|
|
|
|
amr_float/interf_dec.o \
|
|
|
|
amr_float/interf_enc.o
|
2003-05-12 13:55:19 +03:00
|
|
|
|
2006-07-12 19:49:14 +03:00
|
|
|
ifeq ($(CONFIG_AMR_NB_FIXED),yes)
|
2006-07-08 19:39:49 +03:00
|
|
|
EXTRAOBJS += amr/*.o
|
|
|
|
EXTRADEPS=amrlibs
|
2005-02-24 17:18:02 +02:00
|
|
|
endif
|
2002-09-01 21:07:56 +03:00
|
|
|
|
2006-07-16 19:23:12 +03:00
|
|
|
OBJS-$(CONFIG_AMR_WB) += amrwb_float/dec_acelp.o \
|
2006-07-08 19:39:49 +03:00
|
|
|
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
|
|
|
|
|
2006-07-09 15:02:15 +03:00
|
|
|
OBJS-$(CONFIG_AAC_PARSER) += parser.o
|
|
|
|
OBJS-$(CONFIG_AC3_PARSER) += parser.o
|
|
|
|
OBJS-$(CONFIG_CAVS_PARSER) += parser.o
|
|
|
|
OBJS-$(CONFIG_DVBSUB_PARSER) += dvbsubdec.o
|
|
|
|
OBJS-$(CONFIG_DVDSUB_PARSER) += dvdsub.o
|
|
|
|
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
|
|
|
|
|
2006-07-08 19:39:49 +03:00
|
|
|
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
|
2005-05-23 02:39:11 +03:00
|
|
|
|
2001-07-22 17:18:56 +03:00
|
|
|
# i386 mmx specific stuff
|
2001-07-23 23:06:54 +03:00
|
|
|
ifeq ($(TARGET_MMX),yes)
|
2001-08-16 01:30:51 +03:00
|
|
|
OBJS += i386/fdct_mmx.o i386/cputest.o \
|
2001-08-08 01:42:22 +03:00
|
|
|
i386/dsputil_mmx.o i386/mpegvideo_mmx.o \
|
2002-04-22 22:57:45 +03:00
|
|
|
i386/idct_mmx.o i386/motion_est_mmx.o \
|
2004-04-25 06:33:30 +03:00
|
|
|
i386/simple_idct_mmx.o i386/fft_sse.o i386/vp3dsp_mmx.o \
|
2006-03-21 00:27:59 +02:00
|
|
|
i386/vp3dsp_sse2.o i386/fft_3dn.o i386/fft_3dn2.o i386/snowdsp_mmx.o
|
2005-09-10 20:01:30 +03:00
|
|
|
ifeq ($(CONFIG_GPL),yes)
|
|
|
|
OBJS += i386/idct_mmx_xvid.o
|
|
|
|
endif
|
2006-06-10 01:26:03 +03:00
|
|
|
ifeq ($(TARGET_BUILTIN_VECTOR),yes)
|
2003-01-22 11:35:03 +02:00
|
|
|
i386/fft_sse.o: CFLAGS+= -msse
|
2004-03-09 14:18:40 +02:00
|
|
|
depend: CFLAGS+= -msse
|
2003-01-22 11:35:03 +02:00
|
|
|
endif
|
2006-06-10 01:26:03 +03:00
|
|
|
ifeq ($(TARGET_BUILTIN_3DNOW),yes)
|
2006-03-08 06:13:55 +02:00
|
|
|
i386/fft_3dn.o: CFLAGS+= -m3dnow
|
2006-05-16 17:24:45 +03:00
|
|
|
ifeq ($(TARGET_ARCH_X86),yes)
|
|
|
|
i386/fft_3dn2.o: CFLAGS+= -march=athlon
|
|
|
|
endif
|
|
|
|
ifeq ($(TARGET_ARCH_X86_64),yes)
|
|
|
|
i386/fft_3dn2.o: CFLAGS+= -march=k8
|
|
|
|
endif
|
2006-03-08 06:13:55 +02:00
|
|
|
endif
|
2001-07-22 17:18:56 +03:00
|
|
|
endif
|
|
|
|
|
2001-08-14 00:45:36 +03:00
|
|
|
# armv4l specific stuff
|
2006-07-08 19:39:49 +03:00
|
|
|
ASM_OBJS-$(TARGET_ARCH_ARMV4L) += armv4l/jrevdct_arm.o \
|
|
|
|
armv4l/simple_idct_arm.o \
|
|
|
|
armv4l/dsputil_arm_s.o
|
|
|
|
OBJS-$(TARGET_ARCH_ARMV4L) += armv4l/dsputil_arm.o \
|
|
|
|
armv4l/mpegvideo_arm.o
|
|
|
|
OBJS-$(TARGET_IWMMXT) += armv4l/dsputil_iwmmxt.o \
|
|
|
|
armv4l/mpegvideo_iwmmxt.o
|
|
|
|
|
|
|
|
# sun sparc
|
|
|
|
OBJS-$(TARGET_ARCH_SPARC) += sparc/dsputil_vis.o
|
|
|
|
sparc/dsputil_vis.o: CFLAGS += -mcpu=ultrasparc -mtune=ultrasparc
|
2001-08-14 00:45:36 +03:00
|
|
|
|
2001-09-17 00:54:00 +03:00
|
|
|
# sun mediaLib specific stuff
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(HAVE_MLIB) += mlib/dsputil_mlib.o
|
2005-05-26 17:32:46 +03:00
|
|
|
|
2002-01-20 16:48:02 +02:00
|
|
|
# alpha specific stuff
|
2006-07-08 19:39:49 +03:00
|
|
|
OBJS-$(TARGET_ARCH_ALPHA) += alpha/dsputil_alpha.o \
|
|
|
|
alpha/mpegvideo_alpha.o \
|
|
|
|
alpha/simple_idct_alpha.o \
|
|
|
|
alpha/motion_est_alpha.o
|
|
|
|
ASM_OBJS-$(TARGET_ARCH_ALPHA) += alpha/dsputil_alpha_asm.o \
|
|
|
|
alpha/motion_est_mvi_asm.o
|
|
|
|
|
|
|
|
OBJS-$(TARGET_ARCH_POWERPC) += ppc/dsputil_ppc.o ppc/mpegvideo_ppc.o
|
|
|
|
OBJS-$(TARGET_MMI) += ps2/dsputil_mmi.o \
|
|
|
|
ps2/idct_mmi.o \
|
|
|
|
ps2/mpegvideo_mmi.o
|
|
|
|
OBJS-$(TARGET_ARCH_SH4) += sh4/idct_sh4.o \
|
|
|
|
sh4/dsputil_sh4.o \
|
|
|
|
sh4/dsputil_align.o
|
|
|
|
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 \
|
|
|
|
ppc/dsputil_h264_altivec.o \
|
|
|
|
ppc/dsputil_snow_altivec.o
|
|
|
|
|
|
|
|
CFLAGS += $(CFLAGS-yes)
|
|
|
|
OBJS += $(OBJS-yes)
|
|
|
|
ASM_OBJS += $(ASM_OBJS-yes)
|
2002-09-02 11:48:12 +03:00
|
|
|
|
2006-07-08 19:39:49 +03:00
|
|
|
EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
|
2001-07-23 23:06:54 +03:00
|
|
|
|
2006-01-14 17:54:58 +02:00
|
|
|
NAME=avcodec
|
2005-08-01 23:07:05 +03:00
|
|
|
LIBAVUTIL= $(SRC_PATH)/libavutil/$(LIBPREF)avutil$(LIBSUF)
|
2001-10-27 15:04:27 +03:00
|
|
|
ifeq ($(BUILD_SHARED),yes)
|
2006-01-14 05:39:02 +02:00
|
|
|
LIBVERSION=$(LAVCVERSION)
|
|
|
|
LIBMAJOR=$(LAVCMAJOR)
|
2001-10-27 15:04:27 +03:00
|
|
|
endif
|
2002-10-28 02:51:48 +02:00
|
|
|
TESTS= imgresample-test dct-test motion-test fft-test
|
2001-07-22 17:18:56 +03:00
|
|
|
|
2006-02-13 14:53:25 +02:00
|
|
|
include $(SRC_PATH)/common.mak
|
|
|
|
|
2003-06-05 17:30:52 +03:00
|
|
|
amrlibs:
|
|
|
|
$(MAKE) -C amr spclib fipoplib
|
|
|
|
|
2001-08-08 19:26:51 +03:00
|
|
|
tests: apiexample cpuid_test $(TESTS)
|
2001-07-22 17:18:56 +03:00
|
|
|
|
|
|
|
dsputil.o: dsputil.c dsputil.h
|
|
|
|
|
2006-05-05 12:41:06 +03:00
|
|
|
clean::
|
2006-02-13 14:53:25 +02:00
|
|
|
rm -f \
|
2006-01-16 16:59:54 +02:00
|
|
|
i386/*.o i386/*~ \
|
2001-08-14 00:45:36 +03:00
|
|
|
armv4l/*.o armv4l/*~ \
|
2001-09-17 00:54:00 +03:00
|
|
|
mlib/*.o mlib/*~ \
|
2002-01-20 16:48:02 +02:00
|
|
|
alpha/*.o alpha/*~ \
|
2002-08-28 16:14:36 +03:00
|
|
|
ppc/*.o ppc/*~ \
|
2002-09-23 11:44:24 +03:00
|
|
|
ps2/*.o ps2/*~ \
|
2003-05-14 15:18:49 +03:00
|
|
|
sh4/*.o sh4/*~ \
|
2004-04-24 18:16:23 +03:00
|
|
|
sparc/*.o sparc/*~ \
|
2002-04-22 22:57:45 +03:00
|
|
|
liba52/*.o liba52/*~ \
|
2006-05-05 12:41:06 +03:00
|
|
|
amr_float/*.o \
|
2002-04-22 22:57:45 +03:00
|
|
|
apiexample $(TESTS)
|
2006-05-05 13:27:44 +03:00
|
|
|
-$(MAKE) -C amr clean
|
|
|
|
-$(MAKE) -C amrwb_float -f makefile.gcc clean
|
2003-09-28 23:34:11 +03:00
|
|
|
|
2001-07-22 17:18:56 +03:00
|
|
|
# api example program
|
|
|
|
apiexample: apiexample.c $(LIB)
|
2006-03-29 13:59:09 +03:00
|
|
|
$(CC) $(CFLAGS) -o $@ $< $(LIB) $(LIBAVUTIL) $(EXTRALIBS)
|
2001-07-22 17:18:56 +03:00
|
|
|
|
2001-08-08 19:26:51 +03:00
|
|
|
# cpuid test
|
|
|
|
cpuid_test: i386/cputest.c
|
|
|
|
$(CC) $(CFLAGS) -D__TEST__ -o $@ $<
|
|
|
|
|
2001-07-22 17:18:56 +03:00
|
|
|
# testing progs
|
|
|
|
|
|
|
|
imgresample-test: imgresample.c
|
2002-09-05 11:48:34 +03:00
|
|
|
$(CC) $(CFLAGS) -DTEST -o $@ $^ -lm
|
2001-07-22 17:18:56 +03:00
|
|
|
|
2003-01-08 01:47:09 +02:00
|
|
|
dct-test: dct-test.o fdctref.o $(LIB)
|
2005-09-11 02:00:13 +03:00
|
|
|
$(CC) -o $@ $^ -lm $(LIBAVUTIL)
|
2001-07-23 23:58:31 +03:00
|
|
|
|
2001-08-16 01:30:51 +03:00
|
|
|
motion-test: motion_test.o $(LIB)
|
2002-09-05 11:48:34 +03:00
|
|
|
$(CC) -o $@ $^ -lm
|
2001-08-16 01:30:51 +03:00
|
|
|
|
2003-01-07 19:48:14 +02:00
|
|
|
fft-test: fft-test.o $(LIB)
|
2005-08-01 23:07:05 +03:00
|
|
|
$(CC) -o $@ $^ $(LIBAVUTIL) -lm
|