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