flac fourcc (fixes mplayer -demuxer 35 with flac)
[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
ff4ec49e 7# NOTE: -I.. is needed to include config.h
7981555d 8CFLAGS=-DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavutil $(OPTFLAGS) \
4b65d88f 9 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE $(AMR_CFLAGS)
de6d9b64 10
7fd265a7
DB
11OBJS= bitstream.o \
12 utils.o \
13 allcodecs.o \
14 mpegvideo.o \
15 jrevdct.o \
16 jfdctfst.o \
17 jfdctint.o\
18 mjpeg.o \
19 resample.o \
20 resample2.o \
21 dsputil.o \
22 motion_est.o \
23 imgconvert.o \
24 mpeg12.o \
25 mpegaudiodec.o \
26 simple_idct.o \
27 ratecontrol.o \
28 eval.o \
29 error_resilience.o \
30 fft.o \
31 mdct.o \
32 raw.o \
33 golomb.o \
34 cabac.o\
35 faandct.o \
36 parser.o \
37 vp3dsp.o \
38 h264idct.o \
39 rangecoder.o \
40 pnm.o \
41 h263.o \
42 msmpeg4.o \
43 h263dec.o \
748c2fca
MN
44 opt.o \
45 bitstream_filter.o \
0eb6817d 46 audioconvert.o \
748c2fca 47
240c1657 48
bb42f829 49HEADERS = avcodec.h opt.h
790c9ca7
LA
50ifneq ($(CONFIG_SWSCALER),yes)
51HEADERS += swscale.h
52endif
8b2121e3 53
bac3be38
MR
54OBJS-$(CONFIG_AASC_DECODER) += aasc.o
55OBJS-$(CONFIG_AC3_ENCODER) += ac3enc.o
56OBJS-$(CONFIG_ALAC_DECODER) += alac.o
57OBJS-$(CONFIG_ASV1_DECODER) += asv1.o
58OBJS-$(CONFIG_ASV1_ENCODER) += asv1.o
59OBJS-$(CONFIG_ASV2_DECODER) += asv1.o
60OBJS-$(CONFIG_ASV2_ENCODER) += asv1.o
61OBJS-$(CONFIG_AVS_DECODER) += avs.o
a29ff6b7 62OBJS-$(CONFIG_BMP_DECODER) += bmp.o
bac3be38
MR
63OBJS-$(CONFIG_CAVS_DECODER) += cavs.o cavsdsp.o
64OBJS-$(CONFIG_CINEPAK_DECODER) += cinepak.o
bac3be38
MR
65OBJS-$(CONFIG_CLJR_DECODER) += cljr.o
66OBJS-$(CONFIG_CLJR_ENCODER) += cljr.o
a29ff6b7
MR
67OBJS-$(CONFIG_COOK_DECODER) += cook.o
68OBJS-$(CONFIG_CSCD_DECODER) += cscd.o lzo.o
bac3be38
MR
69OBJS-$(CONFIG_CYUV_DECODER) += cyuv.o
70OBJS-$(CONFIG_DVBSUB_DECODER) += dvbsubdec.o
71OBJS-$(CONFIG_DVBSUB_ENCODER) += dvbsub.o
72OBJS-$(CONFIG_DVDSUB_DECODER) += dvdsub.o
73OBJS-$(CONFIG_DVDSUB_ENCODER) += dvdsubenc.o
74OBJS-$(CONFIG_DVVIDEO_DECODER) += dv.o
75OBJS-$(CONFIG_DVVIDEO_ENCODER) += dv.o
76OBJS-$(CONFIG_EIGHTBPS_DECODER) += 8bps.o
77OBJS-$(CONFIG_FFV1_DECODER) += ffv1.o
78OBJS-$(CONFIG_FFV1_ENCODER) += ffv1.o
a29ff6b7
MR
79OBJS-$(CONFIG_FFVHUFF_DECODER) += huffyuv.o
80OBJS-$(CONFIG_FFVHUFF_ENCODER) += huffyuv.o
bac3be38
MR
81OBJS-$(CONFIG_FLAC_DECODER) += flac.o
82OBJS-$(CONFIG_FLAC_ENCODER) += flacenc.o
a29ff6b7 83OBJS-$(CONFIG_FLASHSV_DECODER) += flashsv.o
bac3be38
MR
84OBJS-$(CONFIG_FLIC_DECODER) += flicvideo.o
85OBJS-$(CONFIG_FOURXM_DECODER) += 4xm.o
86OBJS-$(CONFIG_FRAPS_DECODER) += fraps.o
87OBJS-$(CONFIG_H261_DECODER) += h261.o
88OBJS-$(CONFIG_H261_ENCODER) += h261.o
89OBJS-$(CONFIG_H264_DECODER) += h264.o
bac3be38
MR
90OBJS-$(CONFIG_HUFFYUV_DECODER) += huffyuv.o
91OBJS-$(CONFIG_HUFFYUV_ENCODER) += huffyuv.o
bac3be38
MR
92OBJS-$(CONFIG_IDCIN_DECODER) += idcinvideo.o
93OBJS-$(CONFIG_INDEO2_DECODER) += indeo2.o
94OBJS-$(CONFIG_INDEO3_DECODER) += indeo3.o
95OBJS-$(CONFIG_INTERPLAY_VIDEO_DECODER) += interplayvideo.o
f7e79298 96OBJS-$(CONFIG_INTERPLAY_DPCM_DECODER) += dpcm.o
bac3be38 97OBJS-$(CONFIG_KMVC_DECODER) += kmvc.o
bac3be38
MR
98OBJS-$(CONFIG_LOCO_DECODER) += loco.o
99OBJS-$(CONFIG_MACE3_DECODER) += mace.o
100OBJS-$(CONFIG_MACE6_DECODER) += mace.o
a29ff6b7 101OBJS-$(CONFIG_MMVIDEO_DECODER) += mmvideo.o
bac3be38
MR
102OBJS-$(CONFIG_MP2_ENCODER) += mpegaudio.o
103OBJS-$(CONFIG_MSRLE_DECODER) += msrle.o
104OBJS-$(CONFIG_MSVIDEO1_DECODER) += msvideo1.o
a29ff6b7
MR
105OBJS-$(CONFIG_MSZH_DECODER) += lcl.o
106OBJS-$(CONFIG_NUV_DECODER) += nuv.o rtjpeg.o lzo.o
bac3be38
MR
107OBJS-$(CONFIG_PNG_DECODER) += png.o
108OBJS-$(CONFIG_PNG_ENCODER) += png.o
109OBJS-$(CONFIG_QDM2_DECODER) += qdm2.o
110OBJS-$(CONFIG_QDRAW_DECODER) += qdrw.o
111OBJS-$(CONFIG_QPEG_DECODER) += qpeg.o
112OBJS-$(CONFIG_QTRLE_DECODER) += qtrle.o
113OBJS-$(CONFIG_RA_144_DECODER) += ra144.o
114OBJS-$(CONFIG_RA_288_DECODER) += ra288.o
115OBJS-$(CONFIG_ROQ_DECODER) += roqvideo.o
f7e79298 116OBJS-$(CONFIG_ROQ_DPCM_DECODER) += dpcm.o
bac3be38
MR
117OBJS-$(CONFIG_RPZA_DECODER) += rpza.o
118OBJS-$(CONFIG_RV10_DECODER) += rv10.o
119OBJS-$(CONFIG_RV10_ENCODER) += rv10.o
120OBJS-$(CONFIG_RV20_DECODER) += rv10.o
121OBJS-$(CONFIG_RV20_ENCODER) += rv10.o
122OBJS-$(CONFIG_SHORTEN_DECODER) += shorten.o
bac3be38 123OBJS-$(CONFIG_SMACKAUD_DECODER) += smacker.o
a29ff6b7 124OBJS-$(CONFIG_SMACKER_DECODER) += smacker.o
bac3be38
MR
125OBJS-$(CONFIG_SMC_DECODER) += smc.o
126OBJS-$(CONFIG_SNOW_DECODER) += snow.o
127OBJS-$(CONFIG_SNOW_ENCODER) += snow.o
f7e79298 128OBJS-$(CONFIG_SOL_DPCM_DECODER) += dpcm.o
bac3be38
MR
129OBJS-$(CONFIG_SONIC_DECODER) += sonic.o
130OBJS-$(CONFIG_SONIC_ENCODER) += sonic.o
131OBJS-$(CONFIG_SONIC_LS_DECODER) += sonic.o
132OBJS-$(CONFIG_SVQ1_DECODER) += svq1.o
133OBJS-$(CONFIG_SVQ1_ENCODER) += svq1.o
a29ff6b7
MR
134OBJS-$(CONFIG_SVQ3_DECODER) += h264.o
135OBJS-$(CONFIG_THEORA_DECODER) += vp3.o
bac3be38
MR
136OBJS-$(CONFIG_TRUEMOTION1_DECODER) += truemotion1.o
137OBJS-$(CONFIG_TRUEMOTION2_DECODER) += truemotion2.o
138OBJS-$(CONFIG_TRUESPEECH_DECODER) += truespeech.o
bac3be38 139OBJS-$(CONFIG_TSCC_DECODER) += tscc.o
a29ff6b7 140OBJS-$(CONFIG_TTA_DECODER) += tta.o
bac3be38 141OBJS-$(CONFIG_ULTI_DECODER) += ulti.o
64db55ae 142OBJS-$(CONFIG_VC1_DECODER) += vc1.o vc1dsp.o
bac3be38
MR
143OBJS-$(CONFIG_VCR1_DECODER) += vcr1.o
144OBJS-$(CONFIG_VCR1_ENCODER) += vcr1.o
bac3be38 145OBJS-$(CONFIG_VMDAUDIO_DECODER) += vmdav.o
a29ff6b7 146OBJS-$(CONFIG_VMDVIDEO_DECODER) += vmdav.o
eb57c889 147OBJS-$(CONFIG_VMNC_DECODER) += vmnc.o
cc0ba5a5 148OBJS-$(CONFIG_VORBIS_DECODER) += vorbis.o vorbis_data.o
8c37516a 149OBJS-$(CONFIG_VORBIS_ENCODER) += vorbis_enc.o vorbis_data.o
bac3be38 150OBJS-$(CONFIG_VP3_DECODER) += vp3.o
5ce117c3
AJ
151OBJS-$(CONFIG_VP5_DECODER) += vp5.o vp56.o vp56data.o
152OBJS-$(CONFIG_VP6_DECODER) += vp6.o vp56.o vp56data.o
bac3be38 153OBJS-$(CONFIG_VQA_DECODER) += vqavideo.o
730581f3 154OBJS-$(CONFIG_WAVPACK_DECODER) += wavpack.o
bac3be38
MR
155OBJS-$(CONFIG_WMAV1_DECODER) += wmadec.o
156OBJS-$(CONFIG_WMAV2_DECODER) += wmadec.o
a29ff6b7 157OBJS-$(CONFIG_WMV3_DECODER) += vc1.o
bac3be38
MR
158OBJS-$(CONFIG_WNV1_DECODER) += wnv1.o
159OBJS-$(CONFIG_WS_SND1_DECODER) += ws-snd1.o
f7e79298 160OBJS-$(CONFIG_XAN_DPCM_DECODER) += dpcm.o
bac3be38
MR
161OBJS-$(CONFIG_XAN_WC3_DECODER) += xan.o
162OBJS-$(CONFIG_XAN_WC4_DECODER) += xan.o
163OBJS-$(CONFIG_XL_DECODER) += xl.o
a29ff6b7
MR
164OBJS-$(CONFIG_ZLIB_DECODER) += lcl.o
165OBJS-$(CONFIG_ZLIB_ENCODER) += lcl.o
bac3be38 166OBJS-$(CONFIG_ZMBV_DECODER) += zmbv.o
bac3be38 167
327dcfd3
MR
168OBJS-$(CONFIG_PCM_S32LE_DECODER) += pcm.o
169OBJS-$(CONFIG_PCM_S32LE_ENCODER) += pcm.o
170OBJS-$(CONFIG_PCM_S32BE_DECODER) += pcm.o
171OBJS-$(CONFIG_PCM_S32BE_ENCODER) += pcm.o
172OBJS-$(CONFIG_PCM_U32LE_DECODER) += pcm.o
173OBJS-$(CONFIG_PCM_U32LE_ENCODER) += pcm.o
174OBJS-$(CONFIG_PCM_U32BE_DECODER) += pcm.o
175OBJS-$(CONFIG_PCM_U32BE_ENCODER) += pcm.o
176OBJS-$(CONFIG_PCM_S24LE_DECODER) += pcm.o
177OBJS-$(CONFIG_PCM_S24LE_ENCODER) += pcm.o
178OBJS-$(CONFIG_PCM_S24BE_DECODER) += pcm.o
179OBJS-$(CONFIG_PCM_S24BE_ENCODER) += pcm.o
180OBJS-$(CONFIG_PCM_U24LE_DECODER) += pcm.o
181OBJS-$(CONFIG_PCM_U24LE_ENCODER) += pcm.o
182OBJS-$(CONFIG_PCM_U24BE_DECODER) += pcm.o
183OBJS-$(CONFIG_PCM_U24BE_ENCODER) += pcm.o
184OBJS-$(CONFIG_PCM_S24DAUD_DECODER) += pcm.o
185OBJS-$(CONFIG_PCM_S24DAUD_ENCODER) += pcm.o
186OBJS-$(CONFIG_PCM_S16LE_DECODER) += pcm.o
187OBJS-$(CONFIG_PCM_S16LE_ENCODER) += pcm.o
188OBJS-$(CONFIG_PCM_S16BE_DECODER) += pcm.o
189OBJS-$(CONFIG_PCM_S16BE_ENCODER) += pcm.o
190OBJS-$(CONFIG_PCM_U16LE_DECODER) += pcm.o
191OBJS-$(CONFIG_PCM_U16LE_ENCODER) += pcm.o
192OBJS-$(CONFIG_PCM_U16BE_DECODER) += pcm.o
193OBJS-$(CONFIG_PCM_U16BE_ENCODER) += pcm.o
194OBJS-$(CONFIG_PCM_S8_DECODER) += pcm.o
195OBJS-$(CONFIG_PCM_S8_ENCODER) += pcm.o
196OBJS-$(CONFIG_PCM_U8_DECODER) += pcm.o
197OBJS-$(CONFIG_PCM_U8_ENCODER) += pcm.o
198OBJS-$(CONFIG_PCM_ALAW_DECODER) += pcm.o
199OBJS-$(CONFIG_PCM_ALAW_ENCODER) += pcm.o
200OBJS-$(CONFIG_PCM_MULAW_DECODER) += pcm.o
201OBJS-$(CONFIG_PCM_MULAW_ENCODER) += pcm.o
202
203OBJS-$(CONFIG_ADPCM_4XM_DECODER) += adpcm.o
204OBJS-$(CONFIG_ADPCM_4XM_ENCODER) += adpcm.o
7239fb57
MR
205OBJS-$(CONFIG_ADPCM_ADX_DECODER) += adx.o
206OBJS-$(CONFIG_ADPCM_ADX_ENCODER) += adx.o
327dcfd3
MR
207OBJS-$(CONFIG_ADPCM_CT_DECODER) += adpcm.o
208OBJS-$(CONFIG_ADPCM_CT_ENCODER) += adpcm.o
209OBJS-$(CONFIG_ADPCM_EA_DECODER) += adpcm.o
210OBJS-$(CONFIG_ADPCM_EA_ENCODER) += adpcm.o
211OBJS-$(CONFIG_ADPCM_G726_DECODER) += g726.o
212OBJS-$(CONFIG_ADPCM_G726_ENCODER) += g726.o
213OBJS-$(CONFIG_ADPCM_IMA_DK3_DECODER) += adpcm.o
214OBJS-$(CONFIG_ADPCM_IMA_DK3_ENCODER) += adpcm.o
215OBJS-$(CONFIG_ADPCM_IMA_DK4_DECODER) += adpcm.o
216OBJS-$(CONFIG_ADPCM_IMA_DK4_ENCODER) += adpcm.o
217OBJS-$(CONFIG_ADPCM_IMA_QT_DECODER) += adpcm.o
218OBJS-$(CONFIG_ADPCM_IMA_QT_ENCODER) += adpcm.o
219OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_DECODER)+= adpcm.o
220OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_ENCODER)+= adpcm.o
221OBJS-$(CONFIG_ADPCM_IMA_WAV_DECODER) += adpcm.o
222OBJS-$(CONFIG_ADPCM_IMA_WAV_ENCODER) += adpcm.o
223OBJS-$(CONFIG_ADPCM_IMA_WS_DECODER) += adpcm.o
224OBJS-$(CONFIG_ADPCM_IMA_WS_ENCODER) += adpcm.o
225OBJS-$(CONFIG_ADPCM_MS_DECODER) += adpcm.o
226OBJS-$(CONFIG_ADPCM_MS_ENCODER) += adpcm.o
227OBJS-$(CONFIG_ADPCM_SBPRO_2_DECODER) += adpcm.o
228OBJS-$(CONFIG_ADPCM_SBPRO_2_ENCODER) += adpcm.o
229OBJS-$(CONFIG_ADPCM_SBPRO_3_DECODER) += adpcm.o
230OBJS-$(CONFIG_ADPCM_SBPRO_3_ENCODER) += adpcm.o
231OBJS-$(CONFIG_ADPCM_SBPRO_4_DECODER) += adpcm.o
232OBJS-$(CONFIG_ADPCM_SBPRO_4_ENCODER) += adpcm.o
233OBJS-$(CONFIG_ADPCM_SWF_DECODER) += adpcm.o
234OBJS-$(CONFIG_ADPCM_SWF_ENCODER) += adpcm.o
235OBJS-$(CONFIG_ADPCM_XA_DECODER) += adpcm.o
236OBJS-$(CONFIG_ADPCM_XA_ENCODER) += adpcm.o
237OBJS-$(CONFIG_ADPCM_YAMAHA_DECODER) += adpcm.o
238OBJS-$(CONFIG_ADPCM_YAMAHA_ENCODER) += adpcm.o
239
bac3be38
MR
240OBJS-$(CONFIG_FAAD) += faad.o
241OBJS-$(CONFIG_FAAC) += faac.o
242OBJS-$(CONFIG_XVID) += xvidff.o xvid_rc.o
243OBJS-$(CONFIG_X264) += x264.o
244OBJS-$(CONFIG_MP3LAME) += mp3lameaudio.o
245OBJS-$(CONFIG_LIBVORBIS) += oggvorbis.o
bac3be38 246OBJS-$(CONFIG_LIBGSM) += libgsm.o
4f1bb8a9 247
57514323 248# currently using liba52 for ac3 decoding
bac3be38 249OBJS-$(CONFIG_AC3) += a52dec.o
57514323
ZK
250
251# using builtin liba52 or runtime linked liba52.so.0
bac3be38
MR
252OBJS-$(CONFIG_AC3)$(CONFIG_A52BIN) += liba52/bit_allocate.o \
253 liba52/bitstream.o \
254 liba52/downmix.o \
255 liba52/imdct.o \
256 liba52/parse.o \
257 liba52/crc.o \
258 liba52/resample.o
c11c2bc2 259
23c99253 260# currently using libdts for dts decoding
bac3be38 261OBJS-$(CONFIG_DTS) += dtsdec.o
23c99253 262
6636b7e8
MR
263OBJS-$(CONFIG_AMR) += amr.o
264OBJS-$(CONFIG_AMR_NB) += amr_float/sp_dec.o \
bac3be38
MR
265 amr_float/sp_enc.o \
266 amr_float/interf_dec.o \
267 amr_float/interf_enc.o
280bd7b7 268
6636b7e8 269ifeq ($(CONFIG_AMR_NB_FIXED),yes)
bac3be38
MR
270EXTRAOBJS += amr/*.o
271EXTRADEPS=amrlibs
5c5dea3f 272endif
81e0d0b4 273
7a5f09f6 274OBJS-$(CONFIG_AMR_WB) += amrwb_float/dec_acelp.o \
bac3be38
MR
275 amrwb_float/dec_dtx.o \
276 amrwb_float/dec_gain.o \
277 amrwb_float/dec_if.o \
278 amrwb_float/dec_lpc.o \
279 amrwb_float/dec_main.o \
280 amrwb_float/dec_rom.o \
281 amrwb_float/dec_util.o \
282 amrwb_float/enc_acelp.o \
283 amrwb_float/enc_dtx.o \
284 amrwb_float/enc_gain.o \
285 amrwb_float/enc_if.o \
286 amrwb_float/enc_lpc.o \
287 amrwb_float/enc_main.o \
288 amrwb_float/enc_rom.o \
289 amrwb_float/enc_util.o \
290 amrwb_float/if_rom.o
291
af9e7d18
MR
292OBJS-$(CONFIG_AAC_PARSER) += parser.o
293OBJS-$(CONFIG_AC3_PARSER) += parser.o
294OBJS-$(CONFIG_CAVS_PARSER) += parser.o
295OBJS-$(CONFIG_DVBSUB_PARSER) += dvbsubdec.o
296OBJS-$(CONFIG_DVDSUB_PARSER) += dvdsub.o
297OBJS-$(CONFIG_H261_PARSER) += h261.o
298OBJS-$(CONFIG_H263_PARSER) += h263dec.o
299OBJS-$(CONFIG_H264_PARSER) += h264.o
300OBJS-$(CONFIG_MJPEG_PARSER) += mjpeg.o
301OBJS-$(CONFIG_MPEG4VIDEO_PARSER) += parser.o
302OBJS-$(CONFIG_MPEGAUDIO_PARSER) += parser.o
303OBJS-$(CONFIG_MPEGVIDEO_PARSER) += parser.o
304OBJS-$(CONFIG_PNM_PARSER) += pnm.o
305
bac3be38
MR
306OBJS-$(HAVE_PTHREADS) += pthread.o
307OBJS-$(HAVE_W32THREADS) += w32thread.o
308OBJS-$(HAVE_OS2THREADS) += os2thread.o
309OBJS-$(HAVE_BEOSTHREADS) += beosthread.o
310
311OBJS-$(HAVE_XVMC_ACCEL) += xvmcvideo.o
bb4c2140 312
790c9ca7
LA
313ifneq ($(CONFIG_SWSCALER),yes)
314OBJS += imgresample.o
315endif
316
de6d9b64 317# i386 mmx specific stuff
980fc7b8 318ifeq ($(TARGET_MMX),yes)
7fd265a7
DB
319OBJS += i386/fdct_mmx.o \
320 i386/cputest.o \
321 i386/dsputil_mmx.o \
322 i386/mpegvideo_mmx.o \
323 i386/motion_est_mmx.o \
324 i386/simple_idct_mmx.o \
0eb59ddb 325 i386/idct_mmx_xvid.o \
7fd265a7
DB
326 i386/fft_sse.o \
327 i386/vp3dsp_mmx.o \
328 i386/vp3dsp_sse2.o \
329 i386/fft_3dn.o \
330 i386/fft_3dn2.o \
331 i386/snowdsp_mmx.o \
332
84740d59 333ifeq ($(CONFIG_GPL),yes)
0eb59ddb 334OBJS += i386/idct_mmx.o
84740d59 335endif
595e7bd9
SG
336ifeq ($(CONFIG_CAVS_DECODER),yes)
337OBJS += i386/cavsdsp_mmx.o
338endif
87318d69 339ifeq ($(TARGET_BUILTIN_VECTOR),yes)
a968e365 340i386/fft_sse.o: CFLAGS+= -msse
148beec7 341depend: CFLAGS+= -msse
a968e365 342endif
87318d69 343ifeq ($(TARGET_BUILTIN_3DNOW),yes)
82eb4b0f 344i386/fft_3dn.o: CFLAGS+= -m3dnow
c2f69579
GP
345ifeq ($(TARGET_ARCH_X86),yes)
346i386/fft_3dn2.o: CFLAGS+= -march=athlon
347endif
348ifeq ($(TARGET_ARCH_X86_64),yes)
349i386/fft_3dn2.o: CFLAGS+= -march=k8
350endif
82eb4b0f 351endif
de6d9b64
FB
352endif
353
3d03c0a2 354# armv4l specific stuff
bac3be38
MR
355ASM_OBJS-$(TARGET_ARCH_ARMV4L) += armv4l/jrevdct_arm.o \
356 armv4l/simple_idct_arm.o \
357 armv4l/dsputil_arm_s.o
358OBJS-$(TARGET_ARCH_ARMV4L) += armv4l/dsputil_arm.o \
359 armv4l/mpegvideo_arm.o
360OBJS-$(TARGET_IWMMXT) += armv4l/dsputil_iwmmxt.o \
361 armv4l/mpegvideo_iwmmxt.o
a0403006 362ASM_OBJS-$(TARGET_ARMV5TE) += armv4l/simple_idct_armv5te.o
bac3be38
MR
363
364# sun sparc
365OBJS-$(TARGET_ARCH_SPARC) += sparc/dsputil_vis.o
366sparc/dsputil_vis.o: CFLAGS += -mcpu=ultrasparc -mtune=ultrasparc
3d03c0a2 367
c34270f5 368# sun mediaLib specific stuff
bac3be38 369OBJS-$(HAVE_MLIB) += mlib/dsputil_mlib.o
6ad1fa5a 370
1e98dffb 371# alpha specific stuff
bac3be38
MR
372OBJS-$(TARGET_ARCH_ALPHA) += alpha/dsputil_alpha.o \
373 alpha/mpegvideo_alpha.o \
374 alpha/simple_idct_alpha.o \
375 alpha/motion_est_alpha.o
376ASM_OBJS-$(TARGET_ARCH_ALPHA) += alpha/dsputil_alpha_asm.o \
377 alpha/motion_est_mvi_asm.o
378
379OBJS-$(TARGET_ARCH_POWERPC) += ppc/dsputil_ppc.o ppc/mpegvideo_ppc.o
380OBJS-$(TARGET_MMI) += ps2/dsputil_mmi.o \
381 ps2/idct_mmi.o \
382 ps2/mpegvideo_mmi.o
383OBJS-$(TARGET_ARCH_SH4) += sh4/idct_sh4.o \
384 sh4/dsputil_sh4.o \
385 sh4/dsputil_align.o
386OBJS-$(TARGET_ALTIVEC) += ppc/dsputil_altivec.o \
387 ppc/mpegvideo_altivec.o \
388 ppc/idct_altivec.o \
389 ppc/fft_altivec.o \
390 ppc/gmc_altivec.o \
391 ppc/fdct_altivec.o \
b5f7e6eb
LB
392 ppc/h264_altivec.o \
393 ppc/snow_altivec.o \
241807f3
LB
394 ppc/vc1dsp_altivec.o \
395 ppc/float_altivec.o
5ca030fe 396OBJS-$(TARGET_ARCH_BFIN) += bfin/dsputil_bfin.o
bac3be38
MR
397
398CFLAGS += $(CFLAGS-yes)
399OBJS += $(OBJS-yes)
400ASM_OBJS += $(ASM_OBJS-yes)
ab6c65f6 401
4bdd05e7 402NAME=avcodec
0fd94442 403ifeq ($(BUILD_SHARED),yes)
f3b60109
DB
404LIBVERSION=$(LAVCVERSION)
405LIBMAJOR=$(LAVCMAJOR)
0fd94442 406endif
93555ad5 407TESTS= cpuid_test imgresample-test dct-test motion-test fft-test
de6d9b64 408
8b2121e3
MR
409include $(SRC_PATH)/common.mak
410
bc634f6f
ZK
411amrlibs:
412 $(MAKE) -C amr spclib fipoplib
413
93555ad5 414tests: apiexample $(TESTS)
de6d9b64 415
c7f1a2f5 416clean::
8b2121e3 417 rm -f \
98013cc1 418 i386/*.o i386/*~ \
3d03c0a2 419 armv4l/*.o armv4l/*~ \
c34270f5 420 mlib/*.o mlib/*~ \
1e98dffb 421 alpha/*.o alpha/*~ \
59925ef2 422 ppc/*.o ppc/*~ \
d46aba26 423 ps2/*.o ps2/*~ \
0c6bd2ea 424 sh4/*.o sh4/*~ \
bb476ff3 425 sparc/*.o sparc/*~ \
57514323 426 liba52/*.o liba52/*~ \
c7f1a2f5 427 amr_float/*.o \
57514323 428 apiexample $(TESTS)
215e46e6
DB
429 -$(MAKE) -C amr clean
430 -$(MAKE) -C amrwb_float -f makefile.gcc clean
d663a1fd 431
c6c46511 432apiexample: apiexample.o $(LIB)
de6d9b64 433
c10e9f70
NK
434cpuid_test: i386/cputest.c
435 $(CC) $(CFLAGS) -D__TEST__ -o $@ $<
436
0ec92a15 437imgresample-test: imgresample.c $(LIB)
9933dc71 438 $(CC) $(CFLAGS) -DTEST -o $@ $^ $(EXTRALIBS)
de6d9b64 439
9ebc63a9 440dct-test: dct-test.o fdctref.o $(LIB)
d771bcae 441
4300403e 442motion-test: motion_test.o $(LIB)
4300403e 443
923ceff8 444fft-test: fft-test.o $(LIB)
3263626f
DB
445
446.PHONY: amrlibs tests