Remove obsolete big-endian FIXMEs.
[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
4cc281d9
FB
7VPATH=$(SRC_PATH)/libavcodec
8
ff4ec49e 9# NOTE: -I.. is needed to include config.h
c11c2bc2 10CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -I$(SRC_PATH)/libavutil -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE $(AMR_CFLAGS)
de6d9b64 11
c0af3840
DB
12#FIXME: This should be in configure/config.mak
13ifeq ($(CONFIG_WIN32),yes)
320d060a 14 LDFLAGS=-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)
c0af3840
DB
15endif
16
caa336b4 17OBJS= bitstream.o utils.o mem.o allcodecs.o \
1d0d55da 18 mpegvideo.o jrevdct.o jfdctfst.o jfdctint.o\
7b1fa7db 19 mpegaudio.o ac3enc.o mjpeg.o resample.o resample2.o dsputil.o \
1d0d55da 20 motion_est.o imgconvert.o imgresample.o \
4f1bb8a9 21 mpeg12.o mpegaudiodec.o pcm.o simple_idct.o \
8b975b7c
MN
22 ratecontrol.o adpcm.o eval.o error_resilience.o \
23 fft.o mdct.o raw.o golomb.o cabac.o\
c11c2bc2 24 dpcm.o adx.o faandct.o parser.o g726.o \
689abe56 25 vp3dsp.o h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o \
348e52c9 26 opt.o
240c1657 27
8b975b7c
MN
28ifeq ($(CONFIG_AASC_DECODER),yes)
29 OBJS+= aasc.o
30endif
31ifeq ($(CONFIG_ALAC_DECODER),yes)
32 OBJS+= alac.o
33endif
34ifneq ($(CONFIG_ASV1_DECODER)$(CONFIG_ASV1_ENCODER)$(CONFIG_ASV2_DECODER)$(CONFIG_ASV2_ENCODER),)
35 OBJS+= asv1.o
36endif
37ifeq ($(CONFIG_CINEPAK_DECODER),yes)
38 OBJS+= cinepak.o
39endif
e0f7e329
BL
40ifeq ($(CONFIG_COOK_DECODER),yes)
41 OBJS+= cook.o
42endif
8b975b7c
MN
43ifneq ($(CONFIG_CLJR_DECODER)$(CONFIG_CLJR_ENCODER),)
44 OBJS+= cljr.o
45endif
46ifeq ($(CONFIG_CYUV_DECODER),yes)
47 OBJS+= cyuv.o
48endif
348e52c9
GP
49ifeq ($(CONFIG_DVBSUB_DECODER),yes)
50 OBJS+= dvbsubdec.o
51endif
52ifeq ($(CONFIG_DVBSUB_ENCODER),yes)
53 OBJS+= dvbsub.o
54endif
55ifeq ($(CONFIG_DVDSUB_DECODER),yes)
56 OBJS+= dvdsub.o
57endif
58ifeq ($(CONFIG_DVDSUB_ENCODER),yes)
59 OBJS+= dvdsubenc.o
60endif
8b975b7c
MN
61ifneq ($(CONFIG_DVVIDEO_DECODER)$(CONFIG_DVVIDEO_ENCODER),)
62 OBJS+= dv.o
63endif
64ifeq ($(CONFIG_EIGHTBPS_DECODER),yes)
65 OBJS+= 8bps.o
66endif
67ifneq ($(CONFIG_FFV1_DECODER)$(CONFIG_FFV1_ENCODER),)
68 OBJS+= ffv1.o
69endif
70ifeq ($(CONFIG_FLAC_DECODER),yes)
71 OBJS+= flac.o
72endif
73ifeq ($(CONFIG_FLIC_DECODER),yes)
74 OBJS+= flicvideo.o
75endif
76ifeq ($(CONFIG_FOURXM_DECODER),yes)
77 OBJS+= 4xm.o
78endif
b81f8949
MM
79ifeq ($(CONFIG_FRAPS_DECODER),yes)
80 OBJS+= fraps.o
81endif
8b975b7c
MN
82ifneq ($(CONFIG_H261_DECODER)$(CONFIG_H261_ENCODER),)
83 OBJS+= h261.o
84endif
85ifneq ($(CONFIG_H264_DECODER)$(CONFIG_SVQ3_DECODER),)
86 OBJS+= h264.o
87endif
88ifneq ($(CONFIG_HUFFYUV_DECODER)$(CONFIG_HUFFYUV_ENCODER)$(CONFIG_FFVHUFF_DECODER)$(CONFIG_FFVHUFF_ENCODER),)
89 OBJS+= huffyuv.o
90endif
91ifeq ($(CONFIG_IDCIN_DECODER),yes)
92 OBJS+= idcinvideo.o
93endif
94ifeq ($(CONFIG_INDEO2_DECODER),yes)
95 OBJS+= indeo2.o
96endif
97ifeq ($(CONFIG_INDEO3_DECODER),yes)
98 OBJS+= indeo3.o
99endif
100ifeq ($(CONFIG_INTERPLAY_VIDEO_DECODER),yes)
101 OBJS+= interplayvideo.o
102endif
103ifneq ($(CONFIG_MSZH_DECODER)$(CONFIG_ZLIB_DECODER)$(CONFIG_ZLIB_ENCODER),)
104 OBJS+= lcl.o
105endif
106ifeq ($(CONFIG_LOCO_DECODER),yes)
107 OBJS+= loco.o
108endif
109ifneq ($(CONFIG_MACE3_DECODER)$(CONFIG_MACE6_DECODER),)
110 OBJS+= mace.o
111endif
112ifeq ($(CONFIG_MSRLE_DECODER),yes)
113 OBJS+= msrle.o
114endif
115ifeq ($(CONFIG_MSVIDEO1_DECODER),yes)
116 OBJS+= msvideo1.o
117endif
118ifneq ($(CONFIG_PNG_DECODER)$(CONFIG_PNG_ENCODER),)
119 OBJS+= png.o
120endif
c555392a
RT
121ifeq ($(CONFIG_QDM2_DECODER),yes)
122 OBJS+= qdm2.o
123endif
8b975b7c
MN
124ifeq ($(CONFIG_QDRAW_DECODER),yes)
125 OBJS+= qdrw.o
126endif
127ifeq ($(CONFIG_QPEG_DECODER),yes)
128 OBJS+= qpeg.o
129endif
130ifeq ($(CONFIG_QTRLE_DECODER),yes)
131 OBJS+= qtrle.o
132endif
133ifeq ($(CONFIG_RA_144_DECODER),yes)
134 OBJS+= ra144.o
135endif
136ifeq ($(CONFIG_RA_288_DECODER),yes)
137 OBJS+= ra288.o
138endif
139ifeq ($(CONFIG_ROQ_DECODER),yes)
140 OBJS+= roqvideo.o
141endif
142ifeq ($(CONFIG_RPZA_DECODER),yes)
143 OBJS+= rpza.o
144endif
145ifneq ($(CONFIG_RV10_DECODER)$(CONFIG_RV20_DECODER)$(CONFIG_RV10_ENCODER)$(CONFIG_RV20_ENCODER),)
146 OBJS+= rv10.o
147endif
148ifeq ($(CONFIG_SHORTEN_DECODER),yes)
149 OBJS+= shorten.o
150endif
151ifeq ($(CONFIG_SMC_DECODER),yes)
152 OBJS+= smc.o
153endif
0de1318a 154ifneq ($(CONFIG_SNOW_DECODER)$(CONFIG_SNOW_ENCODER),)
8b975b7c
MN
155 OBJS+= snow.o
156endif
157ifneq ($(CONFIG_SONIC_DECODER)$(CONFIG_SONIC_ENCODER)$(CONFIG_SONIC_LS_ENCODER),)
158 OBJS+= sonic.o
159endif
160ifneq ($(CONFIG_SVQ1_DECODER)$(CONFIG_SVQ1_ENCODER),)
161 OBJS+= svq1.o
162endif
163ifeq ($(CONFIG_TRUEMOTION1_DECODER),yes)
164 OBJS+= truemotion1.o
165endif
c555392a
RT
166ifeq ($(CONFIG_TRUEMOTION2_DECODER),yes)
167 OBJS+= truemotion2.o
168endif
bf3027c8
DB
169ifeq ($(CONFIG_TRUESPEECH_DECODER),yes)
170 OBJS+= truespeech.o
171endif
a24c4a2a
AB
172ifeq ($(CONFIG_TTA_DECODER),yes)
173 OBJS+= tta.o
174endif
8b975b7c
MN
175ifeq ($(CONFIG_TSCC_DECODER),yes)
176 OBJS+= tscc.o
177endif
e0f80bd7
RD
178ifeq ($(CONFIG_CSCD_DECODER),yes)
179 OBJS+= cscd.o
517840c6 180 OBJS+= lzo.o
e0f80bd7 181endif
8b975b7c
MN
182ifeq ($(CONFIG_ULTI_DECODER),yes)
183 OBJS+= ulti.o
184endif
185ifneq ($(CONFIG_VC9_DECODER)$(CONFIG_WMV3_DECODER),)
186 OBJS+= vc9.o
187endif
188ifneq ($(CONFIG_VCR1_DECODER)$(CONFIG_VCR1_ENCODER),)
189 OBJS+= vcr1.o
190endif
191ifneq ($(CONFIG_VMDVIDEO_DECODER)$(CONFIG_VMDAUDIO_DECODER),)
192 OBJS+= vmdav.o
193endif
0bde73d9
MN
194ifeq ($(CONFIG_VORBIS_DECODER),yes)
195 OBJS+= vorbis.o
196endif
8b975b7c
MN
197ifneq ($(CONFIG_VP3_DECODER)$(CONFIG_THEORA_DECODER),)
198 OBJS+= vp3.o
199endif
200ifeq ($(CONFIG_VQA_DECODER),yes)
201 OBJS+= vqavideo.o
202endif
203ifneq ($(CONFIG_WMAV1_DECODER)$(CONFIG_WMAV2_DECODER),)
204 OBJS+= wmadec.o
205endif
206ifeq ($(CONFIG_WNV1_DECODER),yes)
207 OBJS+= wnv1.o
208endif
209ifeq ($(CONFIG_WS_SND1_DECODER),yes)
210 OBJS+= ws-snd1.o
211endif
212ifneq ($(CONFIG_XAN_WC3_DECODER)$(CONFIG_XAN_WC4_DECODER),)
213 OBJS+= xan.o
214endif
215ifeq ($(CONFIG_XL_DECODER),yes)
216 OBJS+= xl.o
217endif
9fa62f2a
MR
218ifeq ($(CONFIG_BMP_DECODER),yes)
219 OBJS+= bmp.o
220endif
4e114829
MM
221ifeq ($(CONFIG_MMVIDEO_DECODER),yes)
222 OBJS+= mmvideo.o
223endif
9c8d8e84
MM
224ifeq ($(CONFIG_ZMBV_DECODER),yes)
225 OBJS+= zmbv.o
226endif
9fa62f2a 227
4d4bb927 228AMROBJS=
891f64b3 229ifeq ($(AMR_NB),yes)
bc634f6f 230ifeq ($(AMR_NB_FIXED),yes)
4d4bb927 231AMROBJS= amr.o
bc634f6f
ZK
232AMREXTRALIBS+= amr/*.o
233AMRLIBS=amrlibs
234CLEANAMR=cleanamr
235else
4d4bb927
RT
236AMROBJS= amr.o
237OBJS+= amr_float/sp_dec.o amr_float/sp_enc.o amr_float/interf_dec.o amr_float/interf_enc.o
bc634f6f
ZK
238CLEANAMR=cleanamrfloat
239endif
891f64b3 240endif
241
9c3d33d6
MN
242ifeq ($(HAVE_PTHREADS),yes)
243OBJS+= pthread.o
244endif
245
16806499
MN
246ifeq ($(HAVE_W32THREADS),yes)
247OBJS+= w32thread.o
248endif
249
e2a5fd20
MN
250ifeq ($(HAVE_OS2THREADS),yes)
251OBJS+= os2thread.o
252endif
253
254
2450cff2
FR
255ifeq ($(HAVE_BEOSTHREADS),yes)
256OBJS+= beosthread.o
257endif
258
d663a1fd 259ifeq ($(AMR_WB),yes)
4d4bb927
RT
260AMROBJS= amr.o
261OBJS+= amrwb_float/dec_acelp.o amrwb_float/dec_dtx.o amrwb_float/dec_gain.o \
d663a1fd
MN
262 amrwb_float/dec_if.o amrwb_float/dec_lpc.o amrwb_float/dec_main.o \
263 amrwb_float/dec_rom.o amrwb_float/dec_util.o amrwb_float/enc_acelp.o \
264 amrwb_float/enc_dtx.o amrwb_float/enc_gain.o amrwb_float/enc_if.o \
265 amrwb_float/enc_lpc.o amrwb_float/enc_main.o amrwb_float/enc_rom.o \
266 amrwb_float/enc_util.o amrwb_float/if_rom.o
267endif
4d4bb927 268OBJS+= $(AMROBJS)
d663a1fd 269CLEANAMRWB=cleanamrwbfloat
980fc7b8 270ASM_OBJS=
de6d9b64 271
4f1bb8a9
IK
272ifeq ($(HAVE_XVMC_ACCEL),yes)
273OBJS+= xvmcvideo.o
274endif
275
57514323 276# currently using liba52 for ac3 decoding
d771bcae 277ifeq ($(CONFIG_AC3),yes)
57514323 278OBJS+= a52dec.o
57514323
ZK
279
280# using builtin liba52 or runtime linked liba52.so.0
ff4ec49e 281ifneq ($(CONFIG_A52BIN),yes)
57514323 282OBJS+= liba52/bit_allocate.o liba52/bitstream.o liba52/downmix.o \
521221cf 283 liba52/imdct.o liba52/parse.o liba52/crc.o liba52/resample.o
d771bcae 284endif
ff4ec49e 285endif
de6d9b64 286
a71a1dfc 287EXTRALIBS += -L../libavutil -lavutil$(BUILDSUF)
c11c2bc2 288
23c99253
MN
289# currently using libdts for dts decoding
290ifeq ($(CONFIG_DTS),yes)
291OBJS+= dtsdec.o
fe9a734c 292CFLAGS += $(DTS_INC)
23c99253
MN
293endif
294
280bd7b7
ZK
295ifeq ($(CONFIG_FAAD),yes)
296OBJS+= faad.o
297endif
298
29d48296
MN
299ifeq ($(CONFIG_FAAC),yes)
300OBJS+= faac.o
29d48296
MN
301endif
302
1ddadfa9
AT
303ifeq ($(CONFIG_XVID),yes)
304OBJS+= xvidff.o
64b7c5b6 305OBJS+= xvid_rc.o
1ddadfa9
AT
306endif
307
6662ec29
MN
308ifeq ($(CONFIG_X264),yes)
309OBJS+= x264.o
6662ec29
MN
310endif
311
5798368b
J
312ifeq ($(CONFIG_MP3LAME),yes)
313OBJS += mp3lameaudio.o
314endif
315
5c5dea3f 316ifeq ($(CONFIG_LIBOGG),yes)
5c5dea3f 317ifeq ($(CONFIG_LIBVORBIS),yes)
81e0d0b4 318OBJS += oggvorbis.o
81e0d0b4 319endif
5c5dea3f
NB
320ifeq ($(CONFIG_LIBTHEORA), yes)
321OBJS += oggtheora.o
5c5dea3f
NB
322endif
323endif
81e0d0b4 324
bb4c2140
MN
325ifeq ($(CONFIG_LIBGSM),yes)
326OBJS += libgsm.o
bb4c2140
MN
327endif
328
43f1708f
J
329ifeq ($(TARGET_GPROF),yes)
330CFLAGS+=-p
331LDFLAGS+=-p
332endif
333
de6d9b64 334# i386 mmx specific stuff
980fc7b8 335ifeq ($(TARGET_MMX),yes)
4300403e 336OBJS += i386/fdct_mmx.o i386/cputest.o \
de1ee36a 337 i386/dsputil_mmx.o i386/mpegvideo_mmx.o \
57514323 338 i386/idct_mmx.o i386/motion_est_mmx.o \
38acbc3c
MM
339 i386/simple_idct_mmx.o i386/fft_sse.o i386/vp3dsp_mmx.o \
340 i386/vp3dsp_sse2.o
84740d59
MN
341ifeq ($(CONFIG_GPL),yes)
342OBJS += i386/idct_mmx_xvid.o
343endif
a968e365
FB
344ifdef TARGET_BUILTIN_VECTOR
345i386/fft_sse.o: CFLAGS+= -msse
148beec7 346depend: CFLAGS+= -msse
a968e365 347endif
de6d9b64
FB
348endif
349
3d03c0a2
FB
350# armv4l specific stuff
351ifeq ($(TARGET_ARCH_ARMV4L),yes)
6ad1fa5a 352ASM_OBJS += armv4l/jrevdct_arm.o armv4l/simple_idct_arm.o armv4l/dsputil_arm_s.o
676e200c 353OBJS += armv4l/dsputil_arm.o armv4l/mpegvideo_arm.o
6ad1fa5a
BR
354ifeq ($(TARGET_IWMMXT),yes)
355OBJS += armv4l/dsputil_iwmmxt.o armv4l/mpegvideo_iwmmxt.o
356endif
3d03c0a2
FB
357endif
358
c34270f5
FB
359# sun mediaLib specific stuff
360# currently only works when libavcodec is used in mplayer
361ifeq ($(HAVE_MLIB),yes)
362OBJS += mlib/dsputil_mlib.o
363CFLAGS += $(MLIB_INC)
364endif
365
6ad1fa5a
BR
366# Intel IPP specific stuff
367# currently only works when libavcodec is used in mplayer
368ifeq ($(HAVE_IPP),yes)
369CFLAGS += $(IPP_INC)
370endif
371
1e98dffb
NK
372# alpha specific stuff
373ifeq ($(TARGET_ARCH_ALPHA),yes)
8b313a47
FH
374OBJS += alpha/dsputil_alpha.o alpha/mpegvideo_alpha.o \
375 alpha/simple_idct_alpha.o alpha/motion_est_alpha.o
f9bb4bdf 376ASM_OBJS += alpha/dsputil_alpha_asm.o alpha/motion_est_mvi_asm.o
647b610c 377CFLAGS += -fforce-addr
1e98dffb
NK
378endif
379
59925ef2 380ifeq ($(TARGET_ARCH_POWERPC),yes)
05c4072b 381OBJS += ppc/dsputil_ppc.o ppc/mpegvideo_ppc.o
ab6c65f6
BF
382endif
383
d46aba26 384ifeq ($(TARGET_MMI),yes)
5917d17c 385OBJS += ps2/dsputil_mmi.o ps2/idct_mmi.o ps2/mpegvideo_mmi.o
d46aba26
LS
386endif
387
ab6c65f6 388ifeq ($(TARGET_ALTIVEC),yes)
8d268a7d 389OBJS += ppc/dsputil_altivec.o ppc/mpegvideo_altivec.o ppc/idct_altivec.o \
a6a12a8a
RD
390 ppc/fft_altivec.o ppc/gmc_altivec.o ppc/fdct_altivec.o \
391 ppc/dsputil_h264_altivec.o
59925ef2
BF
392endif
393
0c6bd2ea
B
394ifeq ($(TARGET_ARCH_SH4),yes)
395OBJS+= sh4/idct_sh4.o sh4/dsputil_sh4.o sh4/dsputil_align.o
396endif
397
bb476ff3 398ifeq ($(TARGET_ARCH_SPARC),yes)
44f54ceb 399OBJS+=sparc/dsputil_vis.o
bb476ff3 400sparc/%.o: sparc/%.c
115329f1 401 $(CC) -mcpu=ultrasparc -mtune=ultrasparc $(CFLAGS) -c -o $@ $<
bb476ff3
JM
402endif
403ifeq ($(TARGET_ARCH_SPARC64),yes)
44f54ceb
MN
404CFLAGS+= -mcpu=ultrasparc -mtune=ultrasparc
405endif
406
bb7d4939 407SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S)
ff4ec49e 408OBJS := $(OBJS) $(ASM_OBJS)
980fc7b8 409
4bdd05e7 410NAME=avcodec
c11c2bc2 411LIBAVUTIL= $(SRC_PATH)/libavutil/$(LIBPREF)avutil$(LIBSUF)
0fd94442 412ifeq ($(BUILD_SHARED),yes)
f3b60109
DB
413LIBVERSION=$(LAVCVERSION)
414LIBMAJOR=$(LAVCMAJOR)
0fd94442 415endif
6d2abd6b 416TESTS= imgresample-test dct-test motion-test fft-test
de6d9b64 417
4e159595 418all: $(LIB) $(SLIBNAME)
ff4ec49e 419
bc634f6f
ZK
420amrlibs:
421 $(MAKE) -C amr spclib fipoplib
422
c10e9f70 423tests: apiexample cpuid_test $(TESTS)
de6d9b64 424
bc634f6f 425$(LIB): $(OBJS) $(AMRLIBS)
de6d9b64 426 rm -f $@
bc634f6f 427 $(AR) rc $@ $(OBJS) $(AMREXTRALIBS)
be7109c1 428 $(RANLIB) $@
ff4ec49e 429
4e159595 430$(SLIBNAME): $(OBJS)
c0af3840 431 $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
cf7412b5 432ifeq ($(CONFIG_WIN32),yes)
cf7412b5 433 -lib /machine:i386 /def:$(@:.dll=.def)
cf7412b5 434endif
de6d9b64
FB
435
436dsputil.o: dsputil.c dsputil.h
437
438%.o: %.c
115329f1 439 $(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
de6d9b64 440
3d03c0a2 441%.o: %.S
80581e98 442 $(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
3d03c0a2 443
811b32ed 444depend: $(SRCS)
a968e365 445 $(CC) -MM $(CFLAGS) $^ 1>.depend
e51d4def 446
980fc7b8
FB
447dep: depend
448
bc634f6f 449clean: $(CLEANAMR)
98013cc1 450 rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll \
320d060a 451 *.dll.a *.def *.exp \
98013cc1 452 i386/*.o i386/*~ \
3d03c0a2 453 armv4l/*.o armv4l/*~ \
c34270f5 454 mlib/*.o mlib/*~ \
1e98dffb 455 alpha/*.o alpha/*~ \
59925ef2 456 ppc/*.o ppc/*~ \
d46aba26 457 ps2/*.o ps2/*~ \
0c6bd2ea 458 sh4/*.o sh4/*~ \
bb476ff3 459 sparc/*.o sparc/*~ \
57514323
ZK
460 liba52/*.o liba52/*~ \
461 apiexample $(TESTS)
de6d9b64 462
800d7ceb 463distclean: clean
04c07634 464 rm -f .depend
980fc7b8 465
bc634f6f
ZK
466cleanamr:
467 $(MAKE) -C amr clean
468
469cleanamrfloat:
470 rm -f amr_float/*.o
471
d663a1fd
MN
472cleanamrwbfloat:
473 $(MAKE) -C amrwb_float -f makefile.gcc clean
474
de6d9b64
FB
475# api example program
476apiexample: apiexample.c $(LIB)
c11c2bc2 477 $(CC) $(CFLAGS) -o $@ $< $(LIB) $(LIBAVUTIL) $(EXTRALIBS) -lm
de6d9b64 478
c10e9f70
NK
479# cpuid test
480cpuid_test: i386/cputest.c
481 $(CC) $(CFLAGS) -D__TEST__ -o $@ $<
482
de6d9b64
FB
483# testing progs
484
485imgresample-test: imgresample.c
6acce86b 486 $(CC) $(CFLAGS) -DTEST -o $@ $^ -lm
de6d9b64 487
9ebc63a9 488dct-test: dct-test.o fdctref.o $(LIB)
434df899 489 $(CC) -o $@ $^ -lm $(LIBAVUTIL)
d771bcae 490
4300403e 491motion-test: motion_test.o $(LIB)
6acce86b 492 $(CC) -o $@ $^ -lm
4300403e 493
923ceff8 494fft-test: fft-test.o $(LIB)
c11c2bc2 495 $(CC) -o $@ $^ $(LIBAVUTIL) -lm
6d2abd6b 496
b12f8273
DB
497
498install-lib-shared: $(SLIBNAME)
cb728d79 499ifeq ($(CONFIG_WIN32),yes)
4e159595 500 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
cb728d79 501else
f3b60109
DB
502 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
503 $(libdir)/$(SLIBNAME_WITH_VERSION)
504 ln -sf $(SLIBNAME_WITH_VERSION) \
505 $(libdir)/$(SLIBNAME_WITH_MAJOR)
506 ln -sf $(SLIBNAME_WITH_VERSION) \
507 $(libdir)/$(SLIBNAME)
cb728d79 508endif
773cefc6 509
b12f8273 510install-lib-static: $(LIB)
cc973ecb 511 install -m 644 $(LIB) "$(libdir)"
cb728d79
FB
512
513install-headers:
dc2a1ce5
DB
514 install -m 644 avcodec.h dsputil.h "$(incdir)"
515 install -m 644 $(SRC_PATH)/libavcodec.pc "$(libdir)/pkgconfig"
773cefc6 516
d771bcae
FB
517#
518# include dependency files if they exist
519#
520ifneq ($(wildcard .depend),)
521include .depend
522endif