annotate libmpcodecs/Makefile @ 15533:ddf15d233d58

Do not switch to audio tracks whose codec private data differs from the main audio track's as this will most likely result in messed up audio output. Patch by Michael Behrisch <list () behrisch ! de>
author mosu
date Sat, 21 May 2005 06:50:08 +0000
parents af245d15f502
children d5a95e6f5f07
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
1
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
2 include ../config.mak
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
3
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
4 LIBNAME = libmpcodecs.a
5550
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
5 LIBNAME2 = libmpencoders.a
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
6
8024
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
7 AUDIO_SRCS_LIB=ad_liba52.c ad_hwac3.c ad_mp3lib.c
12827
f7c6d352c238 Cinepak, CYUV and RoqA/V are now in ffmpeg
rtognimp
parents: 12634
diff changeset
8 AUDIO_SRCS_NAT=ad_alaw.c ad_dk3adpcm.c ad_pcm.c ad_dvdpcm.c ad_imaadpcm.c ad_msadpcm.c ad_msgsm.c ad_ra1428.c
14276
fa80ed52127b TwinVQ decoder and demuxer
rtognimp
parents: 14138
diff changeset
9 AUDIO_SRCS_OPT=ad_acm.c ad_dshow.c ad_dmo.c ad_qtaudio.c ad_ffmpeg.c ad_faad.c ad_libvorbis.c ad_libmad.c ad_realaud.c ad_libdv.c ad_twin.c
8024
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
10 AUDIO_SRCS=dec_audio.c ad.c $(AUDIO_SRCS_LIB) $(AUDIO_SRCS_NAT) $(AUDIO_SRCS_OPT)
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
11
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
12 VIDEO_SRCS_LIB=vd_libmpeg2.c vd_nuv.c vd_lzo.c
12827
f7c6d352c238 Cinepak, CYUV and RoqA/V are now in ffmpeg
rtognimp
parents: 12634
diff changeset
13 VIDEO_SRCS_NAT=vd_null.c vd_raw.c vd_hmblck.c vd_mpegpes.c vd_mtga.c vd_sgi.c
11436
6afc2d6f5a08 XviD Api4 support
iive
parents: 11386
diff changeset
14 VIDEO_SRCS_OPT=vd_realvid.c vd_ffmpeg.c vd_dshow.c vd_dmo.c vd_vfw.c vd_vfwex.c vd_odivx.c vd_divx4.c vd_zrmjpeg.c vd_xanim.c vd_xvid.c vd_xvid4.c vd_libdv.c vd_qtvideo.c vd_theora.c
8024
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
15 VIDEO_SRCS=dec_video.c vd.c $(VIDEO_SRCS_NAT) $(VIDEO_SRCS_LIB) $(VIDEO_SRCS_OPT)
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
16
12337
6f1b4c989914 soft skipping for mencoder. rather than skipping decoding/filtering
rfelker
parents: 12334
diff changeset
17 VFILTER_SRCS=vf.c vf_vo.c vf_crop.c vf_expand.c vf_scale.c vf_format.c vf_noformat.c vf_yuy2.c vf_flip.c vf_rgb2bgr.c vf_rotate.c vf_mirror.c vf_palette.c vf_lavc.c vf_dvbscale.c vf_cropdetect.c vf_test.c vf_noise.c vf_yvu9.c vf_rectangle.c vf_lavcdeint.c vf_eq.c vf_eq2.c vf_halfpack.c vf_dint.c vf_1bpp.c vf_bmovl.c vf_2xsai.c vf_unsharp.c vf_swapuv.c vf_il.c vf_boxblur.c vf_sab.c vf_smartblur.c vf_perspective.c vf_down3dright.c vf_field.c vf_denoise3d.c vf_hqdn3d.c vf_detc.c vf_telecine.c vf_tfields.c vf_ivtc.c vf_ilpack.c vf_dsize.c vf_decimate.c vf_softpulldown.c vf_tinterlace.c vf_pullup.c pullup.c vf_framestep.c vf_tile.c vf_delogo.c vf_fil.c vf_hue.c vf_spp.c vf_yuvcsp.c vf_filmdint.c vf_kerndeint.c vf_rgbtest.c vf_qp.c vf_phase.c vf_divtc.c vf_harddup.c vf_softskip.c
11141
1ed8e514c725 Fix compilation when libavcodec is missing.
attila
parents: 11004
diff changeset
18 ifeq ($(HAVE_FFPOSTPROCESS),yes)
1ed8e514c725 Fix compilation when libavcodec is missing.
attila
parents: 11004
diff changeset
19 VFILTER_SRCS += vf_pp.c
1ed8e514c725 Fix compilation when libavcodec is missing.
attila
parents: 11004
diff changeset
20 endif
1ed8e514c725 Fix compilation when libavcodec is missing.
attila
parents: 11004
diff changeset
21
15234
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
22 ENCODER_SRCS=ve.c ve_divx4.c ve_lavc.c ve_vfw.c ve_raw.c ve_libdv.c ve_xvid.c ve_xvid4.c ve_qtvideo.c ve_nuv.c ve_x264.c ae.c ae_pcm.c
8024
13e08eff5f90 cosmetics :)
arpi
parents: 8010
diff changeset
23
12827
f7c6d352c238 Cinepak, CYUV and RoqA/V are now in ffmpeg
rtognimp
parents: 12634
diff changeset
24 NATIVE_SRCS=native/RTjpegN.c native/minilzo.c native/nuppelvideo.c native/xa_gsm.c native/decode144.c native/decode288.c
5029
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
25
5840
4e3cf9473628 Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents: 5774
diff changeset
26 ifeq ($(FAME),yes)
4e3cf9473628 Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents: 5774
diff changeset
27 VFILTER_SRCS += vf_fame.c
4e3cf9473628 Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents: 5774
diff changeset
28 endif
4e3cf9473628 Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents: 5774
diff changeset
29
11662
173f22eb0505 vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents: 11600
diff changeset
30 ifeq ($(ZORAN),yes)
173f22eb0505 vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents: 11600
diff changeset
31 VFILTER_SRCS += vf_zrmjpeg.c
173f22eb0505 vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents: 11600
diff changeset
32 endif
173f22eb0505 vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents: 11600
diff changeset
33
5029
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
34 ifeq ($(PNG),yes)
5344
7198d3eba09f ok, use ad_* stuff
arpi
parents: 5264
diff changeset
35 VIDEO_SRCS += vd_mpng.c
5029
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
36 endif
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
37
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
38 ifeq ($(JPEG),yes)
5344
7198d3eba09f ok, use ad_* stuff
arpi
parents: 5264
diff changeset
39 VIDEO_SRCS += vd_ijpg.c
5029
ef8a43b74075 Add IJPG decoder.
pontscho
parents: 4998
diff changeset
40 endif
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
41
13426
0f92ad66bbb5 encoding to mp2 with libtoolame
nicodvb
parents: 13311
diff changeset
42 ifeq ($(TOOLAME),yes)
15234
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
43 ENCODER_SRCS += ae_toolame.c
13426
0f92ad66bbb5 encoding to mp2 with libtoolame
nicodvb
parents: 13311
diff changeset
44 EXTRA_INC += $(TOOLAME_EXTRAFLAGS)
0f92ad66bbb5 encoding to mp2 with libtoolame
nicodvb
parents: 13311
diff changeset
45 endif
0f92ad66bbb5 encoding to mp2 with libtoolame
nicodvb
parents: 13311
diff changeset
46
15359
af245d15f502 added twolame mp2 audio encoder
nicodvb
parents: 15259
diff changeset
47 ifeq ($(TWOLAME),yes)
af245d15f502 added twolame mp2 audio encoder
nicodvb
parents: 15259
diff changeset
48 ENCODER_SRCS += ae_twolame.c
af245d15f502 added twolame mp2 audio encoder
nicodvb
parents: 15259
diff changeset
49 endif
af245d15f502 added twolame mp2 audio encoder
nicodvb
parents: 15259
diff changeset
50
15234
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
51 ifeq ($(CONFIG_MP3LAME),yes)
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
52 ENCODER_SRCS += ae_lame.c
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
53 endif
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
54
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
55 ifeq ($(CONFIG_LIBAVCODEC),yes)
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
56 ENCODER_SRCS += ae_lavc.c
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
57 endif
e84a6ae9d51e audio encoding reworked
nicodvb
parents: 14276
diff changeset
58
15259
854990f357ee added faac audio encoder
nicodvb
parents: 15234
diff changeset
59 ifeq ($(FAAC),yes)
854990f357ee added faac audio encoder
nicodvb
parents: 15234
diff changeset
60 ENCODER_SRCS += ae_faac.c
854990f357ee added faac audio encoder
nicodvb
parents: 15234
diff changeset
61 endif
854990f357ee added faac audio encoder
nicodvb
parents: 15234
diff changeset
62
5607
1972c3475d93 mp_image.h and img_format.h moved to libmpcodecs
arpi
parents: 5603
diff changeset
63 SRCS=$(AUDIO_SRCS) $(VIDEO_SRCS) $(VFILTER_SRCS) $(NATIVE_SRCS) img_format.c
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
64 OBJS=$(SRCS:.c=.o)
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
65
5550
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
66 SRCS2=$(ENCODER_SRCS)
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
67 OBJS2=$(SRCS2:.c=.o)
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
68
13311
8bf56817f2e5 Make --with-x264incdir work, patch by Jan Knutar <jknutar at nic.fi>
diego
parents: 13166
diff changeset
69 CFLAGS = $(OPTFLAGS) -I. -Inative -I.. -I../libmpdemux -I../loader $(EXTRA_INC) $(X264_INC) -D_GNU_SOURCE
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
70
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
71 .SUFFIXES: .c .o
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
72
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
73 # .PHONY: all clean
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
74
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
75 .c.o:
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
76 $(CC) -c $(CFLAGS) -o $@ $<
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
77
5550
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
78 all: $(LIBNAME) $(LIBNAME2)
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
79
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
80 $(LIBNAME): $(OBJS)
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
81 $(AR) r $(LIBNAME) $(OBJS)
12634
e03ae519f344 ranlib cleanup
alex
parents: 12429
diff changeset
82 $(RANLIB) $(LIBNAME)
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
83
5550
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
84 $(LIBNAME2): $(OBJS2)
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
85 $(AR) r $(LIBNAME2) $(OBJS2)
12634
e03ae519f344 ranlib cleanup
alex
parents: 12429
diff changeset
86 $(RANLIB) $(LIBNAME2)
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
87
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
88 clean:
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
89 rm -f *.o *.a *~
14138
40ac42c6dd6d make clean should also clean the native subdirectory.
diego
parents: 13426
diff changeset
90 rm -f native/*.o native/*.a native/*~
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
91
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
92 distclean:
5603
5f4485862a72 native codecs files moved to libmpcodecs/native/
arpi
parents: 5594
diff changeset
93 rm -f Makefile.bak $(OBJS) $(OBJS2) $(LIBNAME) $(LIBNAME2) *~ .depend
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
94
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
95 dep: depend
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
96
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
97 depend:
5550
7d1dfb59c6c0 encoders
arpi
parents: 5539
diff changeset
98 $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend
4878
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
99
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
100 #
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
101 # include dependency files if they exist
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
102 #
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
103 ifneq ($(wildcard .depend),)
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
104 include .depend
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
105 endif
eff8a76e515f libmpcodecs core - initial version
arpi
parents:
diff changeset
106