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