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