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