Statistics
| Branch: | Revision:

ffmpeg / libavcodec / Makefile @ a0403006

History | View | Annotate | Download (17.6 KB)

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

    
7
# NOTE: -I.. is needed to include config.h
8
CFLAGS=-DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavutil $(OPTFLAGS) \
9
       -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE $(AMR_CFLAGS)
10

    
11
OBJS= bitstream.o utils.o allcodecs.o \
12
      mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\
13
      mjpeg.o resample.o resample2.o dsputil.o \
14
      motion_est.o imgconvert.o \
15
      mpeg12.o mpegaudiodec.o simple_idct.o \
16
      ratecontrol.o eval.o error_resilience.o \
17
      fft.o mdct.o raw.o golomb.o cabac.o\
18
      faandct.o parser.o \
19
      vp3dsp.o h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o \
20
      opt.o \
21
      bitstream_filter.o \
22
      audioconvert.o \
23

    
24

    
25
HEADERS = avcodec.h opt.h
26
ifneq ($(CONFIG_SWSCALER),yes)
27
HEADERS += swscale.h
28
endif
29

    
30
OBJS-$(CONFIG_AASC_DECODER)            += aasc.o
31
OBJS-$(CONFIG_AC3_ENCODER)             += ac3enc.o
32
OBJS-$(CONFIG_ALAC_DECODER)            += alac.o
33
OBJS-$(CONFIG_ASV1_DECODER)            += asv1.o
34
OBJS-$(CONFIG_ASV1_ENCODER)            += asv1.o
35
OBJS-$(CONFIG_ASV2_DECODER)            += asv1.o
36
OBJS-$(CONFIG_ASV2_ENCODER)            += asv1.o
37
OBJS-$(CONFIG_AVS_DECODER)             += avs.o
38
OBJS-$(CONFIG_BMP_DECODER)             += bmp.o
39
OBJS-$(CONFIG_CAVS_DECODER)            += cavs.o cavsdsp.o
40
OBJS-$(CONFIG_CINEPAK_DECODER)         += cinepak.o
41
OBJS-$(CONFIG_CLJR_DECODER)            += cljr.o
42
OBJS-$(CONFIG_CLJR_ENCODER)            += cljr.o
43
OBJS-$(CONFIG_COOK_DECODER)            += cook.o
44
OBJS-$(CONFIG_CSCD_DECODER)            += cscd.o lzo.o
45
OBJS-$(CONFIG_CYUV_DECODER)            += cyuv.o
46
OBJS-$(CONFIG_DVBSUB_DECODER)          += dvbsubdec.o
47
OBJS-$(CONFIG_DVBSUB_ENCODER)          += dvbsub.o
48
OBJS-$(CONFIG_DVDSUB_DECODER)          += dvdsub.o
49
OBJS-$(CONFIG_DVDSUB_ENCODER)          += dvdsubenc.o
50
OBJS-$(CONFIG_DVVIDEO_DECODER)         += dv.o
51
OBJS-$(CONFIG_DVVIDEO_ENCODER)         += dv.o
52
OBJS-$(CONFIG_EIGHTBPS_DECODER)        += 8bps.o
53
OBJS-$(CONFIG_FFV1_DECODER)            += ffv1.o
54
OBJS-$(CONFIG_FFV1_ENCODER)            += ffv1.o
55
OBJS-$(CONFIG_FFVHUFF_DECODER)         += huffyuv.o
56
OBJS-$(CONFIG_FFVHUFF_ENCODER)         += huffyuv.o
57
OBJS-$(CONFIG_FLAC_DECODER)            += flac.o
58
OBJS-$(CONFIG_FLAC_ENCODER)            += flacenc.o
59
OBJS-$(CONFIG_FLASHSV_DECODER)         += flashsv.o
60
OBJS-$(CONFIG_FLIC_DECODER)            += flicvideo.o
61
OBJS-$(CONFIG_FOURXM_DECODER)          += 4xm.o
62
OBJS-$(CONFIG_FRAPS_DECODER)           += fraps.o
63
OBJS-$(CONFIG_H261_DECODER)            += h261.o
64
OBJS-$(CONFIG_H261_ENCODER)            += h261.o
65
OBJS-$(CONFIG_H264_DECODER)            += h264.o
66
OBJS-$(CONFIG_HUFFYUV_DECODER)         += huffyuv.o
67
OBJS-$(CONFIG_HUFFYUV_ENCODER)         += huffyuv.o
68
OBJS-$(CONFIG_IDCIN_DECODER)           += idcinvideo.o
69
OBJS-$(CONFIG_INDEO2_DECODER)          += indeo2.o
70
OBJS-$(CONFIG_INDEO3_DECODER)          += indeo3.o
71
OBJS-$(CONFIG_INTERPLAY_VIDEO_DECODER) += interplayvideo.o
72
OBJS-$(CONFIG_INTERPLAY_DPCM_DECODER)  += dpcm.o
73
OBJS-$(CONFIG_KMVC_DECODER)            += kmvc.o
74
OBJS-$(CONFIG_LOCO_DECODER)            += loco.o
75
OBJS-$(CONFIG_MACE3_DECODER)           += mace.o
76
OBJS-$(CONFIG_MACE6_DECODER)           += mace.o
77
OBJS-$(CONFIG_MMVIDEO_DECODER)         += mmvideo.o
78
OBJS-$(CONFIG_MP2_ENCODER)             += mpegaudio.o
79
OBJS-$(CONFIG_MSRLE_DECODER)           += msrle.o
80
OBJS-$(CONFIG_MSVIDEO1_DECODER)        += msvideo1.o
81
OBJS-$(CONFIG_MSZH_DECODER)            += lcl.o
82
OBJS-$(CONFIG_NUV_DECODER)             += nuv.o rtjpeg.o lzo.o
83
OBJS-$(CONFIG_PNG_DECODER)             += png.o
84
OBJS-$(CONFIG_PNG_ENCODER)             += png.o
85
OBJS-$(CONFIG_QDM2_DECODER)            += qdm2.o
86
OBJS-$(CONFIG_QDRAW_DECODER)           += qdrw.o
87
OBJS-$(CONFIG_QPEG_DECODER)            += qpeg.o
88
OBJS-$(CONFIG_QTRLE_DECODER)           += qtrle.o
89
OBJS-$(CONFIG_RA_144_DECODER)          += ra144.o
90
OBJS-$(CONFIG_RA_288_DECODER)          += ra288.o
91
OBJS-$(CONFIG_ROQ_DECODER)             += roqvideo.o
92
OBJS-$(CONFIG_ROQ_DPCM_DECODER)        += dpcm.o
93
OBJS-$(CONFIG_RPZA_DECODER)            += rpza.o
94
OBJS-$(CONFIG_RV10_DECODER)            += rv10.o
95
OBJS-$(CONFIG_RV10_ENCODER)            += rv10.o
96
OBJS-$(CONFIG_RV20_DECODER)            += rv10.o
97
OBJS-$(CONFIG_RV20_ENCODER)            += rv10.o
98
OBJS-$(CONFIG_SHORTEN_DECODER)         += shorten.o
99
OBJS-$(CONFIG_SMACKAUD_DECODER)        += smacker.o
100
OBJS-$(CONFIG_SMACKER_DECODER)         += smacker.o
101
OBJS-$(CONFIG_SMC_DECODER)             += smc.o
102
OBJS-$(CONFIG_SNOW_DECODER)            += snow.o
103
OBJS-$(CONFIG_SNOW_ENCODER)            += snow.o
104
OBJS-$(CONFIG_SOL_DPCM_DECODER)        += dpcm.o
105
OBJS-$(CONFIG_SONIC_DECODER)           += sonic.o
106
OBJS-$(CONFIG_SONIC_ENCODER)           += sonic.o
107
OBJS-$(CONFIG_SONIC_LS_DECODER)        += sonic.o
108
OBJS-$(CONFIG_SVQ1_DECODER)            += svq1.o
109
OBJS-$(CONFIG_SVQ1_ENCODER)            += svq1.o
110
OBJS-$(CONFIG_SVQ3_DECODER)            += h264.o
111
OBJS-$(CONFIG_THEORA_DECODER)          += vp3.o
112
OBJS-$(CONFIG_TRUEMOTION1_DECODER)     += truemotion1.o
113
OBJS-$(CONFIG_TRUEMOTION2_DECODER)     += truemotion2.o
114
OBJS-$(CONFIG_TRUESPEECH_DECODER)      += truespeech.o
115
OBJS-$(CONFIG_TSCC_DECODER)            += tscc.o
116
OBJS-$(CONFIG_TTA_DECODER)             += tta.o
117
OBJS-$(CONFIG_ULTI_DECODER)            += ulti.o
118
OBJS-$(CONFIG_VC1_DECODER)             += vc1.o vc1dsp.o
119
OBJS-$(CONFIG_VCR1_DECODER)            += vcr1.o
120
OBJS-$(CONFIG_VCR1_ENCODER)            += vcr1.o
121
OBJS-$(CONFIG_VMDAUDIO_DECODER)        += vmdav.o
122
OBJS-$(CONFIG_VMDVIDEO_DECODER)        += vmdav.o
123
OBJS-$(CONFIG_VMNC_DECODER)            += vmnc.o
124
OBJS-$(CONFIG_VORBIS_DECODER)          += vorbis.o
125
OBJS-$(CONFIG_VP3_DECODER)             += vp3.o
126
OBJS-$(CONFIG_VP5_DECODER)             += vp5.o vp56.o vp56data.o
127
OBJS-$(CONFIG_VP6_DECODER)             += vp6.o vp56.o vp56data.o
128
OBJS-$(CONFIG_VQA_DECODER)             += vqavideo.o
129
OBJS-$(CONFIG_WAVPACK_DECODER)         += wavpack.o
130
OBJS-$(CONFIG_WMAV1_DECODER)           += wmadec.o
131
OBJS-$(CONFIG_WMAV2_DECODER)           += wmadec.o
132
OBJS-$(CONFIG_WMV3_DECODER)            += vc1.o
133
OBJS-$(CONFIG_WNV1_DECODER)            += wnv1.o
134
OBJS-$(CONFIG_WS_SND1_DECODER)         += ws-snd1.o
135
OBJS-$(CONFIG_XAN_DPCM_DECODER)        += dpcm.o
136
OBJS-$(CONFIG_XAN_WC3_DECODER)         += xan.o
137
OBJS-$(CONFIG_XAN_WC4_DECODER)         += xan.o
138
OBJS-$(CONFIG_XL_DECODER)              += xl.o
139
OBJS-$(CONFIG_ZLIB_DECODER)            += lcl.o
140
OBJS-$(CONFIG_ZLIB_ENCODER)            += lcl.o
141
OBJS-$(CONFIG_ZMBV_DECODER)            += zmbv.o
142

    
143
OBJS-$(CONFIG_PCM_S32LE_DECODER)       += pcm.o
144
OBJS-$(CONFIG_PCM_S32LE_ENCODER)       += pcm.o
145
OBJS-$(CONFIG_PCM_S32BE_DECODER)       += pcm.o
146
OBJS-$(CONFIG_PCM_S32BE_ENCODER)       += pcm.o
147
OBJS-$(CONFIG_PCM_U32LE_DECODER)       += pcm.o
148
OBJS-$(CONFIG_PCM_U32LE_ENCODER)       += pcm.o
149
OBJS-$(CONFIG_PCM_U32BE_DECODER)       += pcm.o
150
OBJS-$(CONFIG_PCM_U32BE_ENCODER)       += pcm.o
151
OBJS-$(CONFIG_PCM_S24LE_DECODER)       += pcm.o
152
OBJS-$(CONFIG_PCM_S24LE_ENCODER)       += pcm.o
153
OBJS-$(CONFIG_PCM_S24BE_DECODER)       += pcm.o
154
OBJS-$(CONFIG_PCM_S24BE_ENCODER)       += pcm.o
155
OBJS-$(CONFIG_PCM_U24LE_DECODER)       += pcm.o
156
OBJS-$(CONFIG_PCM_U24LE_ENCODER)       += pcm.o
157
OBJS-$(CONFIG_PCM_U24BE_DECODER)       += pcm.o
158
OBJS-$(CONFIG_PCM_U24BE_ENCODER)       += pcm.o
159
OBJS-$(CONFIG_PCM_S24DAUD_DECODER)     += pcm.o
160
OBJS-$(CONFIG_PCM_S24DAUD_ENCODER)     += pcm.o
161
OBJS-$(CONFIG_PCM_S16LE_DECODER)       += pcm.o
162
OBJS-$(CONFIG_PCM_S16LE_ENCODER)       += pcm.o
163
OBJS-$(CONFIG_PCM_S16BE_DECODER)       += pcm.o
164
OBJS-$(CONFIG_PCM_S16BE_ENCODER)       += pcm.o
165
OBJS-$(CONFIG_PCM_U16LE_DECODER)       += pcm.o
166
OBJS-$(CONFIG_PCM_U16LE_ENCODER)       += pcm.o
167
OBJS-$(CONFIG_PCM_U16BE_DECODER)       += pcm.o
168
OBJS-$(CONFIG_PCM_U16BE_ENCODER)       += pcm.o
169
OBJS-$(CONFIG_PCM_S8_DECODER)          += pcm.o
170
OBJS-$(CONFIG_PCM_S8_ENCODER)          += pcm.o
171
OBJS-$(CONFIG_PCM_U8_DECODER)          += pcm.o
172
OBJS-$(CONFIG_PCM_U8_ENCODER)          += pcm.o
173
OBJS-$(CONFIG_PCM_ALAW_DECODER)        += pcm.o
174
OBJS-$(CONFIG_PCM_ALAW_ENCODER)        += pcm.o
175
OBJS-$(CONFIG_PCM_MULAW_DECODER)       += pcm.o
176
OBJS-$(CONFIG_PCM_MULAW_ENCODER)       += pcm.o
177

    
178
OBJS-$(CONFIG_ADPCM_4XM_DECODER)       += adpcm.o
179
OBJS-$(CONFIG_ADPCM_4XM_ENCODER)       += adpcm.o
180
OBJS-$(CONFIG_ADPCM_ADX_DECODER)       += adx.o
181
OBJS-$(CONFIG_ADPCM_ADX_ENCODER)       += adx.o
182
OBJS-$(CONFIG_ADPCM_CT_DECODER)        += adpcm.o
183
OBJS-$(CONFIG_ADPCM_CT_ENCODER)        += adpcm.o
184
OBJS-$(CONFIG_ADPCM_EA_DECODER)        += adpcm.o
185
OBJS-$(CONFIG_ADPCM_EA_ENCODER)        += adpcm.o
186
OBJS-$(CONFIG_ADPCM_G726_DECODER)      += g726.o
187
OBJS-$(CONFIG_ADPCM_G726_ENCODER)      += g726.o
188
OBJS-$(CONFIG_ADPCM_IMA_DK3_DECODER)   += adpcm.o
189
OBJS-$(CONFIG_ADPCM_IMA_DK3_ENCODER)   += adpcm.o
190
OBJS-$(CONFIG_ADPCM_IMA_DK4_DECODER)   += adpcm.o
191
OBJS-$(CONFIG_ADPCM_IMA_DK4_ENCODER)   += adpcm.o
192
OBJS-$(CONFIG_ADPCM_IMA_QT_DECODER)    += adpcm.o
193
OBJS-$(CONFIG_ADPCM_IMA_QT_ENCODER)    += adpcm.o
194
OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_DECODER)+= adpcm.o
195
OBJS-$(CONFIG_ADPCM_IMA_SMJPEG_ENCODER)+= adpcm.o
196
OBJS-$(CONFIG_ADPCM_IMA_WAV_DECODER)   += adpcm.o
197
OBJS-$(CONFIG_ADPCM_IMA_WAV_ENCODER)   += adpcm.o
198
OBJS-$(CONFIG_ADPCM_IMA_WS_DECODER)    += adpcm.o
199
OBJS-$(CONFIG_ADPCM_IMA_WS_ENCODER)    += adpcm.o
200
OBJS-$(CONFIG_ADPCM_MS_DECODER)        += adpcm.o
201
OBJS-$(CONFIG_ADPCM_MS_ENCODER)        += adpcm.o
202
OBJS-$(CONFIG_ADPCM_SBPRO_2_DECODER)   += adpcm.o
203
OBJS-$(CONFIG_ADPCM_SBPRO_2_ENCODER)   += adpcm.o
204
OBJS-$(CONFIG_ADPCM_SBPRO_3_DECODER)   += adpcm.o
205
OBJS-$(CONFIG_ADPCM_SBPRO_3_ENCODER)   += adpcm.o
206
OBJS-$(CONFIG_ADPCM_SBPRO_4_DECODER)   += adpcm.o
207
OBJS-$(CONFIG_ADPCM_SBPRO_4_ENCODER)   += adpcm.o
208
OBJS-$(CONFIG_ADPCM_SWF_DECODER)       += adpcm.o
209
OBJS-$(CONFIG_ADPCM_SWF_ENCODER)       += adpcm.o
210
OBJS-$(CONFIG_ADPCM_XA_DECODER)        += adpcm.o
211
OBJS-$(CONFIG_ADPCM_XA_ENCODER)        += adpcm.o
212
OBJS-$(CONFIG_ADPCM_YAMAHA_DECODER)    += adpcm.o
213
OBJS-$(CONFIG_ADPCM_YAMAHA_ENCODER)    += adpcm.o
214

    
215
OBJS-$(CONFIG_FAAD)                    += faad.o
216
OBJS-$(CONFIG_FAAC)                    += faac.o
217
OBJS-$(CONFIG_XVID)                    += xvidff.o xvid_rc.o
218
OBJS-$(CONFIG_X264)                    += x264.o
219
OBJS-$(CONFIG_MP3LAME)                 += mp3lameaudio.o
220
OBJS-$(CONFIG_LIBVORBIS)               += oggvorbis.o
221
OBJS-$(CONFIG_LIBGSM)                  += libgsm.o
222

    
223
# currently using liba52 for ac3 decoding
224
OBJS-$(CONFIG_AC3)                     += a52dec.o
225

    
226
# using builtin liba52 or runtime linked liba52.so.0
227
OBJS-$(CONFIG_AC3)$(CONFIG_A52BIN)     += liba52/bit_allocate.o \
228
                                          liba52/bitstream.o    \
229
                                          liba52/downmix.o      \
230
                                          liba52/imdct.o        \
231
                                          liba52/parse.o        \
232
                                          liba52/crc.o          \
233
                                          liba52/resample.o
234

    
235
# currently using libdts for dts decoding
236
OBJS-$(CONFIG_DTS)                     += dtsdec.o
237

    
238
OBJS-$(CONFIG_AMR)                     += amr.o
239
OBJS-$(CONFIG_AMR_NB)                  += amr_float/sp_dec.o     \
240
                                          amr_float/sp_enc.o     \
241
                                          amr_float/interf_dec.o \
242
                                          amr_float/interf_enc.o
243

    
244
ifeq ($(CONFIG_AMR_NB_FIXED),yes)
245
EXTRAOBJS += amr/*.o
246
EXTRADEPS=amrlibs
247
endif
248

    
249
OBJS-$(CONFIG_AMR_WB)                  += amrwb_float/dec_acelp.o \
250
                                          amrwb_float/dec_dtx.o   \
251
                                          amrwb_float/dec_gain.o  \
252
                                          amrwb_float/dec_if.o    \
253
                                          amrwb_float/dec_lpc.o   \
254
                                          amrwb_float/dec_main.o  \
255
                                          amrwb_float/dec_rom.o   \
256
                                          amrwb_float/dec_util.o  \
257
                                          amrwb_float/enc_acelp.o \
258
                                          amrwb_float/enc_dtx.o   \
259
                                          amrwb_float/enc_gain.o  \
260
                                          amrwb_float/enc_if.o    \
261
                                          amrwb_float/enc_lpc.o   \
262
                                          amrwb_float/enc_main.o  \
263
                                          amrwb_float/enc_rom.o   \
264
                                          amrwb_float/enc_util.o  \
265
                                          amrwb_float/if_rom.o
266

    
267
OBJS-$(CONFIG_AAC_PARSER)              += parser.o
268
OBJS-$(CONFIG_AC3_PARSER)              += parser.o
269
OBJS-$(CONFIG_CAVS_PARSER)             += parser.o
270
OBJS-$(CONFIG_DVBSUB_PARSER)           += dvbsubdec.o
271
OBJS-$(CONFIG_DVDSUB_PARSER)           += dvdsub.o
272
OBJS-$(CONFIG_H261_PARSER)             += h261.o
273
OBJS-$(CONFIG_H263_PARSER)             += h263dec.o
274
OBJS-$(CONFIG_H264_PARSER)             += h264.o
275
OBJS-$(CONFIG_MJPEG_PARSER)            += mjpeg.o
276
OBJS-$(CONFIG_MPEG4VIDEO_PARSER)       += parser.o
277
OBJS-$(CONFIG_MPEGAUDIO_PARSER)        += parser.o
278
OBJS-$(CONFIG_MPEGVIDEO_PARSER)        += parser.o
279
OBJS-$(CONFIG_PNM_PARSER)              += pnm.o
280

    
281
OBJS-$(HAVE_PTHREADS)                  += pthread.o
282
OBJS-$(HAVE_W32THREADS)                += w32thread.o
283
OBJS-$(HAVE_OS2THREADS)                += os2thread.o
284
OBJS-$(HAVE_BEOSTHREADS)               += beosthread.o
285

    
286
OBJS-$(HAVE_XVMC_ACCEL)                += xvmcvideo.o
287

    
288
ifneq ($(CONFIG_SWSCALER),yes)
289
OBJS += imgresample.o
290
endif
291

    
292
# i386 mmx specific stuff
293
ifeq ($(TARGET_MMX),yes)
294
OBJS += i386/fdct_mmx.o i386/cputest.o \
295
	i386/dsputil_mmx.o i386/mpegvideo_mmx.o \
296
	i386/motion_est_mmx.o \
297
	i386/simple_idct_mmx.o i386/fft_sse.o i386/vp3dsp_mmx.o \
298
	i386/vp3dsp_sse2.o i386/fft_3dn.o i386/fft_3dn2.o i386/snowdsp_mmx.o
299
ifeq ($(CONFIG_GPL),yes)
300
OBJS += i386/idct_mmx.o i386/idct_mmx_xvid.o
301
endif
302
ifeq ($(CONFIG_CAVS_DECODER),yes)
303
OBJS += i386/cavsdsp_mmx.o
304
endif
305
ifeq ($(TARGET_BUILTIN_VECTOR),yes)
306
i386/fft_sse.o: CFLAGS+= -msse
307
depend: CFLAGS+= -msse
308
endif
309
ifeq ($(TARGET_BUILTIN_3DNOW),yes)
310
i386/fft_3dn.o: CFLAGS+= -m3dnow
311
ifeq ($(TARGET_ARCH_X86),yes)
312
i386/fft_3dn2.o: CFLAGS+= -march=athlon
313
endif
314
ifeq ($(TARGET_ARCH_X86_64),yes)
315
i386/fft_3dn2.o: CFLAGS+= -march=k8
316
endif
317
endif
318
endif
319

    
320
# armv4l specific stuff
321
ASM_OBJS-$(TARGET_ARCH_ARMV4L)         += armv4l/jrevdct_arm.o     \
322
                                          armv4l/simple_idct_arm.o \
323
                                          armv4l/dsputil_arm_s.o
324
OBJS-$(TARGET_ARCH_ARMV4L)             += armv4l/dsputil_arm.o   \
325
                                          armv4l/mpegvideo_arm.o
326
OBJS-$(TARGET_IWMMXT)                  += armv4l/dsputil_iwmmxt.o   \
327
                                          armv4l/mpegvideo_iwmmxt.o
328
ASM_OBJS-$(TARGET_ARMV5TE)             += armv4l/simple_idct_armv5te.o
329

    
330
# sun sparc
331
OBJS-$(TARGET_ARCH_SPARC)              += sparc/dsputil_vis.o
332
sparc/dsputil_vis.o: CFLAGS += -mcpu=ultrasparc -mtune=ultrasparc
333

    
334
# sun mediaLib specific stuff
335
OBJS-$(HAVE_MLIB)                      += mlib/dsputil_mlib.o
336

    
337
# alpha specific stuff
338
OBJS-$(TARGET_ARCH_ALPHA)              += alpha/dsputil_alpha.o     \
339
                                          alpha/mpegvideo_alpha.o   \
340
                                          alpha/simple_idct_alpha.o \
341
                                          alpha/motion_est_alpha.o
342
ASM_OBJS-$(TARGET_ARCH_ALPHA)          += alpha/dsputil_alpha_asm.o  \
343
                                          alpha/motion_est_mvi_asm.o
344

    
345
OBJS-$(TARGET_ARCH_POWERPC)            += ppc/dsputil_ppc.o ppc/mpegvideo_ppc.o
346
OBJS-$(TARGET_MMI)                     += ps2/dsputil_mmi.o   \
347
                                          ps2/idct_mmi.o      \
348
                                          ps2/mpegvideo_mmi.o
349
OBJS-$(TARGET_ARCH_SH4)                += sh4/idct_sh4.o      \
350
                                          sh4/dsputil_sh4.o   \
351
                                          sh4/dsputil_align.o
352
OBJS-$(TARGET_ALTIVEC)                 += ppc/dsputil_altivec.o      \
353
                                          ppc/mpegvideo_altivec.o    \
354
                                          ppc/idct_altivec.o         \
355
                                          ppc/fft_altivec.o          \
356
                                          ppc/gmc_altivec.o          \
357
                                          ppc/fdct_altivec.o         \
358
                                          ppc/h264_altivec.o 	     \
359
                                          ppc/snow_altivec.o 	     \
360
                                          ppc/vc1dsp_altivec.o       \
361
                                          ppc/float_altivec.o
362
OBJS-$(TARGET_ARCH_BFIN)               += bfin/dsputil_bfin.o
363

    
364
CFLAGS += $(CFLAGS-yes)
365
OBJS += $(OBJS-yes)
366
ASM_OBJS += $(ASM_OBJS-yes)
367

    
368
EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
369

    
370
NAME=avcodec
371
LIBAVUTIL= $(SRC_PATH)/libavutil/$(LIBPREF)avutil$(LIBSUF)
372
ifeq ($(BUILD_SHARED),yes)
373
LIBVERSION=$(LAVCVERSION)
374
LIBMAJOR=$(LAVCMAJOR)
375
endif
376
TESTS= imgresample-test dct-test motion-test fft-test
377

    
378
include $(SRC_PATH)/common.mak
379

    
380
amrlibs:
381
	$(MAKE) -C amr spclib fipoplib
382

    
383
tests: apiexample cpuid_test $(TESTS)
384

    
385
dsputil.o: dsputil.c dsputil.h
386

    
387
clean::
388
	rm -f \
389
	   i386/*.o i386/*~ \
390
	   armv4l/*.o armv4l/*~ \
391
	   mlib/*.o mlib/*~ \
392
	   alpha/*.o alpha/*~ \
393
	   ppc/*.o ppc/*~ \
394
	   ps2/*.o ps2/*~ \
395
	   sh4/*.o sh4/*~ \
396
	   sparc/*.o sparc/*~ \
397
	   liba52/*.o liba52/*~ \
398
	   amr_float/*.o \
399
	   apiexample $(TESTS)
400
	-$(MAKE) -C amr clean
401
	-$(MAKE) -C amrwb_float -f makefile.gcc clean
402

    
403
# api example program
404
apiexample: apiexample.c $(LIB)
405
	$(CC) $(CFLAGS) -o $@ $< $(LIB) $(LIBAVUTIL) $(EXTRALIBS)
406

    
407
# cpuid test
408
cpuid_test: i386/cputest.c
409
	$(CC) $(CFLAGS) -D__TEST__ -o $@ $<
410

    
411
# testing progs
412

    
413
imgresample-test: imgresample.c
414
	$(CC) $(CFLAGS) -DTEST -o $@ $^ -lm
415

    
416
dct-test: dct-test.o fdctref.o $(LIB)
417
	$(CC) -o $@ $^ -lm $(LIBAVUTIL)
418

    
419
motion-test: motion_test.o $(LIB)
420
	$(CC) -o $@ $^ -lm
421

    
422
fft-test: fft-test.o $(LIB)
423
	$(CC) -o $@ $^ $(LIBAVUTIL) -lm