Move all definitions of external dependencies into configure instead of
[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
MN
20 vp3dsp.o h264idct.o rangecoder.o pnm.o h263.o msmpeg4.o h263dec.o dvdsub.o dvbsub.o dvbsubdec.o\
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
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
243endif
244
280bd7b7
ZK
245ifeq ($(CONFIG_FAAD),yes)
246OBJS+= faad.o
247endif
248
29d48296
MN
249ifeq ($(CONFIG_FAAC),yes)
250OBJS+= faac.o
29d48296
MN
251endif
252
1ddadfa9
AT
253ifeq ($(CONFIG_XVID),yes)
254OBJS+= xvidff.o
1ddadfa9
AT
255endif
256
6662ec29
MN
257ifeq ($(CONFIG_X264),yes)
258OBJS+= x264.o
6662ec29
MN
259endif
260
bba9b16c
MN
261ifeq ($(CONFIG_PP),yes)
262ifeq ($(SHARED_PP),yes)
7919d97e 263EXTRALIBS += -Llibpostproc -lpostproc$(BUILDSUF)
bba9b16c
MN
264else
265# LIBS += libpostproc/libpostproc.a ... should be fixed
266OBJS += libpostproc/postprocess.o
267endif
268endif
269
5798368b
J
270ifeq ($(CONFIG_MP3LAME),yes)
271OBJS += mp3lameaudio.o
272endif
273
5c5dea3f 274ifeq ($(CONFIG_LIBOGG),yes)
5c5dea3f 275ifeq ($(CONFIG_LIBVORBIS),yes)
81e0d0b4 276OBJS += oggvorbis.o
81e0d0b4 277endif
5c5dea3f
NB
278ifeq ($(CONFIG_LIBTHEORA), yes)
279OBJS += oggtheora.o
5c5dea3f
NB
280endif
281endif
81e0d0b4 282
bb4c2140
MN
283ifeq ($(CONFIG_LIBGSM),yes)
284OBJS += libgsm.o
bb4c2140
MN
285endif
286
43f1708f
J
287ifeq ($(TARGET_GPROF),yes)
288CFLAGS+=-p
289LDFLAGS+=-p
290endif
291
de6d9b64 292# i386 mmx specific stuff
980fc7b8 293ifeq ($(TARGET_MMX),yes)
4300403e 294OBJS += i386/fdct_mmx.o i386/cputest.o \
de1ee36a 295 i386/dsputil_mmx.o i386/mpegvideo_mmx.o \
57514323 296 i386/idct_mmx.o i386/motion_est_mmx.o \
38acbc3c
MM
297 i386/simple_idct_mmx.o i386/fft_sse.o i386/vp3dsp_mmx.o \
298 i386/vp3dsp_sse2.o
84740d59
MN
299ifeq ($(CONFIG_GPL),yes)
300OBJS += i386/idct_mmx_xvid.o
301endif
a968e365
FB
302ifdef TARGET_BUILTIN_VECTOR
303i386/fft_sse.o: CFLAGS+= -msse
148beec7 304depend: CFLAGS+= -msse
a968e365 305endif
de6d9b64
FB
306endif
307
3d03c0a2
FB
308# armv4l specific stuff
309ifeq ($(TARGET_ARCH_ARMV4L),yes)
6ad1fa5a 310ASM_OBJS += armv4l/jrevdct_arm.o armv4l/simple_idct_arm.o armv4l/dsputil_arm_s.o
676e200c 311OBJS += armv4l/dsputil_arm.o armv4l/mpegvideo_arm.o
6ad1fa5a
BR
312ifeq ($(TARGET_IWMMXT),yes)
313OBJS += armv4l/dsputil_iwmmxt.o armv4l/mpegvideo_iwmmxt.o
314endif
3d03c0a2
FB
315endif
316
c34270f5
FB
317# sun mediaLib specific stuff
318# currently only works when libavcodec is used in mplayer
319ifeq ($(HAVE_MLIB),yes)
320OBJS += mlib/dsputil_mlib.o
321CFLAGS += $(MLIB_INC)
322endif
323
6ad1fa5a
BR
324# Intel IPP specific stuff
325# currently only works when libavcodec is used in mplayer
326ifeq ($(HAVE_IPP),yes)
327CFLAGS += $(IPP_INC)
328endif
329
1e98dffb
NK
330# alpha specific stuff
331ifeq ($(TARGET_ARCH_ALPHA),yes)
8b313a47
FH
332OBJS += alpha/dsputil_alpha.o alpha/mpegvideo_alpha.o \
333 alpha/simple_idct_alpha.o alpha/motion_est_alpha.o
f9bb4bdf 334ASM_OBJS += alpha/dsputil_alpha_asm.o alpha/motion_est_mvi_asm.o
647b610c 335CFLAGS += -fforce-addr
1e98dffb
NK
336endif
337
59925ef2 338ifeq ($(TARGET_ARCH_POWERPC),yes)
05c4072b 339OBJS += ppc/dsputil_ppc.o ppc/mpegvideo_ppc.o
ab6c65f6
BF
340endif
341
d46aba26 342ifeq ($(TARGET_MMI),yes)
5917d17c 343OBJS += ps2/dsputil_mmi.o ps2/idct_mmi.o ps2/mpegvideo_mmi.o
d46aba26
LS
344endif
345
ab6c65f6 346ifeq ($(TARGET_ALTIVEC),yes)
8d268a7d 347OBJS += ppc/dsputil_altivec.o ppc/mpegvideo_altivec.o ppc/idct_altivec.o \
a6a12a8a
RD
348 ppc/fft_altivec.o ppc/gmc_altivec.o ppc/fdct_altivec.o \
349 ppc/dsputil_h264_altivec.o
59925ef2
BF
350endif
351
0c6bd2ea
B
352ifeq ($(TARGET_ARCH_SH4),yes)
353OBJS+= sh4/idct_sh4.o sh4/dsputil_sh4.o sh4/dsputil_align.o
354endif
355
bb476ff3 356ifeq ($(TARGET_ARCH_SPARC),yes)
44f54ceb 357OBJS+=sparc/dsputil_vis.o
bb476ff3
JM
358sparc/%.o: sparc/%.c
359 $(CC) -mcpu=ultrasparc -mtune=ultrasparc $(CFLAGS) -c -o $@ $<
360endif
361ifeq ($(TARGET_ARCH_SPARC64),yes)
44f54ceb
MN
362CFLAGS+= -mcpu=ultrasparc -mtune=ultrasparc
363endif
364
4e159595
DB
365# Darwin specific stuff
366ifeq ($(CONFIG_DARWIN),yes)
367SHFLAGS += -Wl,-install_name,$(libdir)/$(SLIBPREF)avcodec$(SLIBSUF),-current_version,$(SPPVERSION),-compatibility_version,$(SPPVERSION)
368endif
369
bb7d4939 370SRCS := $(OBJS:.o=.c) $(ASM_OBJS:.o=.S)
ff4ec49e 371OBJS := $(OBJS) $(ASM_OBJS)
980fc7b8 372
f3ec2d46 373LIB= $(LIBPREF)avcodec$(LIBSUF)
c11c2bc2 374LIBAVUTIL= $(SRC_PATH)/libavutil/$(LIBPREF)avutil$(LIBSUF)
0fd94442 375ifeq ($(BUILD_SHARED),yes)
4e159595 376SLIBNAME= $(SLIBPREF)avcodec$(SLIBSUF)
0fd94442 377endif
6d2abd6b 378TESTS= imgresample-test dct-test motion-test fft-test
de6d9b64 379
4e159595 380all: $(LIB) $(SLIBNAME)
ff4ec49e 381
bc634f6f
ZK
382amrlibs:
383 $(MAKE) -C amr spclib fipoplib
384
c10e9f70 385tests: apiexample cpuid_test $(TESTS)
de6d9b64 386
bc634f6f 387$(LIB): $(OBJS) $(AMRLIBS)
de6d9b64 388 rm -f $@
bc634f6f 389 $(AR) rc $@ $(OBJS) $(AMREXTRALIBS)
be7109c1 390 $(RANLIB) $@
ff4ec49e 391
4e159595 392$(SLIBNAME): $(OBJS)
91378af4 393ifeq ($(CONFIG_PP),yes)
8b8e1c55 394 $(MAKE) -C libpostproc
91378af4 395endif
cf7412b5
FB
396ifeq ($(CONFIG_WIN32),yes)
397 $(CC) $(SHFLAGS) -Wl,--output-def,$(@:.dll=.def) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
398 -lib /machine:i386 /def:$(@:.dll=.def)
399else
4e159595 400 $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(AMREXTRALIBS)
cf7412b5 401endif
de6d9b64
FB
402
403dsputil.o: dsputil.c dsputil.h
404
bba9b16c
MN
405libpostproc/libpostproc.a:
406 $(MAKE) -C libpostproc
407
de6d9b64 408%.o: %.c
80581e98 409 $(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
de6d9b64 410
3d03c0a2 411%.o: %.S
80581e98 412 $(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<
3d03c0a2 413
811b32ed 414depend: $(SRCS)
a968e365 415 $(CC) -MM $(CFLAGS) $^ 1>.depend
e51d4def 416
980fc7b8
FB
417dep: depend
418
bc634f6f 419clean: $(CLEANAMR)
4e159595 420 rm -f *.o *.d *~ .depend $(LIB) $(SLIBNAME) *$(SLIBSUF) i386/*.o i386/*~ \
3d03c0a2 421 armv4l/*.o armv4l/*~ \
c34270f5 422 mlib/*.o mlib/*~ \
1e98dffb 423 alpha/*.o alpha/*~ \
59925ef2 424 ppc/*.o ppc/*~ \
d46aba26 425 ps2/*.o ps2/*~ \
0c6bd2ea 426 sh4/*.o sh4/*~ \
bb476ff3 427 sparc/*.o sparc/*~ \
57514323
ZK
428 liba52/*.o liba52/*~ \
429 apiexample $(TESTS)
64094f37 430 $(MAKE) -C libpostproc clean
de6d9b64 431
800d7ceb 432distclean: clean
980fc7b8
FB
433 rm -f Makefile.bak .depend
434
bc634f6f
ZK
435cleanamr:
436 $(MAKE) -C amr clean
437
438cleanamrfloat:
439 rm -f amr_float/*.o
440
d663a1fd
MN
441cleanamrwbfloat:
442 $(MAKE) -C amrwb_float -f makefile.gcc clean
443
de6d9b64
FB
444# api example program
445apiexample: apiexample.c $(LIB)
c11c2bc2 446 $(CC) $(CFLAGS) -o $@ $< $(LIB) $(LIBAVUTIL) $(EXTRALIBS) -lm
de6d9b64 447
c10e9f70
NK
448# cpuid test
449cpuid_test: i386/cputest.c
450 $(CC) $(CFLAGS) -D__TEST__ -o $@ $<
451
de6d9b64
FB
452# testing progs
453
454imgresample-test: imgresample.c
6acce86b 455 $(CC) $(CFLAGS) -DTEST -o $@ $^ -lm
de6d9b64 456
9ebc63a9 457dct-test: dct-test.o fdctref.o $(LIB)
434df899 458 $(CC) -o $@ $^ -lm $(LIBAVUTIL)
d771bcae 459
4300403e 460motion-test: motion_test.o $(LIB)
6acce86b 461 $(CC) -o $@ $^ -lm
4300403e 462
923ceff8 463fft-test: fft-test.o $(LIB)
c11c2bc2 464 $(CC) -o $@ $^ $(LIBAVUTIL) -lm
6d2abd6b 465
0fd94442 466ifeq ($(BUILD_SHARED),yes)
cb728d79
FB
467install: all install-headers
468ifeq ($(CONFIG_WIN32),yes)
4e159595 469 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
cb728d79 470else
cc973ecb 471 install -d $(libdir)
4e159595
DB
472 install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/libavcodec-$(VERSION)$(SLIBSUF)
473 ln -sf libavcodec-$(VERSION)$(SLIBSUF) $(libdir)/libavcodec$(SLIBSUF)
f39e56a8 474 $(LDCONFIG) || true
cb728d79 475endif
91378af4 476ifeq ($(CONFIG_PP),yes)
8b8e1c55 477 $(MAKE) -C libpostproc $@
91378af4 478endif
cb728d79
FB
479else
480install:
0fd94442 481endif
773cefc6 482
cb728d79 483installlib: all install-headers
cc973ecb 484 install -m 644 $(LIB) "$(libdir)"
cb728d79
FB
485
486install-headers:
487 mkdir -p "$(prefix)/include/ffmpeg"
07bd15c3 488 install -m 644 $(SRC_PATH)/libavcodec/avcodec.h \
cb728d79 489 "$(prefix)/include/ffmpeg"
def4272a
AJ
490 install -d $(libdir)/pkgconfig
491 install -m 644 ../libavcodec.pc $(libdir)/pkgconfig
773cefc6 492
d771bcae
FB
493#
494# include dependency files if they exist
495#
496ifneq ($(wildcard .depend),)
497include .depend
498endif