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