Mercurial > mplayer.hg
annotate libmpcodecs/Makefile @ 16251:ae5caba38b89
Fix MEncoder build with shared libavcodec.
patch by Panagiotis Issaris <takis - at - lumumba - dot - uhasselt - dot - be>
author | diego |
---|---|
date | Wed, 17 Aug 2005 23:08:18 +0000 |
parents | a9f7eff9e437 |
children | b2379996cb88 |
rev | line source |
---|---|
4878 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libmpcodecs.a | |
5550 | 5 LIBNAME2 = libmpencoders.a |
4878 | 6 |
15772 | 7 AUDIO_SRCS_LIB=ad_hwac3.c \ |
8 ad_liba52.c \ | |
9 ad_mp3lib.c \ | |
10 | |
11 AUDIO_SRCS_NAT=ad_alaw.c \ | |
12 ad_dk3adpcm.c \ | |
13 ad_dvdpcm.c \ | |
14 ad_imaadpcm.c \ | |
15 ad_msadpcm.c \ | |
16 ad_msgsm.c \ | |
17 ad_pcm.c \ | |
18 ad_ra1428.c \ | |
19 | |
20 AUDIO_SRCS_OPT=ad_acm.c \ | |
21 ad_dmo.c \ | |
22 ad_dshow.c \ | |
23 ad_faad.c \ | |
24 ad_ffmpeg.c \ | |
25 ad_libdv.c \ | |
26 ad_libmad.c \ | |
27 ad_libvorbis.c \ | |
28 ad_qtaudio.c \ | |
29 ad_realaud.c \ | |
30 ad_twin.c \ | |
31 | |
8024 | 32 AUDIO_SRCS=dec_audio.c ad.c $(AUDIO_SRCS_LIB) $(AUDIO_SRCS_NAT) $(AUDIO_SRCS_OPT) |
33 | |
15772 | 34 VIDEO_SRCS_LIB=vd_libmpeg2.c \ |
35 vd_lzo.c \ | |
36 vd_nuv.c \ | |
37 | |
38 VIDEO_SRCS_NAT=vd_hmblck.c \ | |
39 vd_mpegpes.c \ | |
40 vd_mtga.c \ | |
41 vd_null.c \ | |
42 vd_raw.c \ | |
43 vd_sgi.c \ | |
44 | |
45 VIDEO_SRCS_OPT=vd_divx4.c \ | |
46 vd_dmo.c \ | |
47 vd_dshow.c \ | |
48 vd_ffmpeg.c\ | |
49 vd_libdv.c \ | |
50 vd_odivx.c \ | |
51 vd_qtvideo.c \ | |
52 vd_realvid.c \ | |
53 vd_theora.c \ | |
54 vd_vfw.c \ | |
55 vd_vfwex.c \ | |
56 vd_xanim.c \ | |
57 vd_xvid4.c \ | |
58 vd_xvid.c \ | |
59 vd_zrmjpeg.c \ | |
60 | |
8024 | 61 VIDEO_SRCS=dec_video.c vd.c $(VIDEO_SRCS_NAT) $(VIDEO_SRCS_LIB) $(VIDEO_SRCS_OPT) |
62 | |
15772 | 63 VFILTER_SRCS=vf.c \ |
64 pullup.c \ | |
65 vf_1bpp.c \ | |
66 vf_2xsai.c \ | |
67 vf_bmovl.c \ | |
68 vf_boxblur.c \ | |
69 vf_crop.c \ | |
70 vf_cropdetect.c \ | |
71 vf_decimate.c \ | |
72 vf_delogo.c \ | |
73 vf_denoise3d.c \ | |
74 vf_detc.c \ | |
75 vf_dint.c \ | |
76 vf_divtc.c \ | |
77 vf_down3dright.c \ | |
78 vf_dsize.c \ | |
79 vf_dvbscale.c \ | |
80 vf_eq2.c \ | |
81 vf_eq.c \ | |
82 vf_expand.c \ | |
83 vf_field.c \ | |
84 vf_fil.c \ | |
85 vf_filmdint.c \ | |
86 vf_flip.c \ | |
87 vf_format.c \ | |
88 vf_framestep.c \ | |
89 vf_fspp.c \ | |
90 vf_halfpack.c \ | |
91 vf_harddup.c \ | |
92 vf_hqdn3d.c \ | |
93 vf_hue.c \ | |
94 vf_il.c \ | |
95 vf_ilpack.c \ | |
96 vf_ivtc.c \ | |
97 vf_kerndeint.c \ | |
98 vf_lavc.c \ | |
99 vf_lavcdeint.c \ | |
100 vf_mirror.c \ | |
101 vf_noformat.c \ | |
102 vf_noise.c \ | |
103 vf_palette.c \ | |
104 vf_perspective.c \ | |
105 vf_phase.c \ | |
15944
1a0c715343d2
pp7 filter (spp=6 filter with 7 point dct where only the center sample is used after idct)
michael
parents:
15772
diff
changeset
|
106 vf_pp7.c \ |
15772 | 107 vf_pullup.c \ |
108 vf_qp.c \ | |
109 vf_rectangle.c \ | |
110 vf_remove_logo.c \ | |
111 vf_rgb2bgr.c \ | |
112 vf_rgbtest.c \ | |
113 vf_rotate.c \ | |
114 vf_sab.c \ | |
115 vf_scale.c \ | |
116 vf_smartblur.c \ | |
117 vf_softpulldown.c \ | |
118 vf_softskip.c \ | |
119 vf_spp.c \ | |
120 vf_swapuv.c \ | |
121 vf_telecine.c \ | |
122 vf_test.c \ | |
123 vf_tfields.c \ | |
124 vf_tile.c \ | |
125 vf_tinterlace.c \ | |
126 vf_unsharp.c \ | |
127 vf_vo.c \ | |
128 vf_yuvcsp.c \ | |
129 vf_yuy2.c \ | |
130 vf_yvu9.c \ | |
131 | |
11141 | 132 ifeq ($(HAVE_FFPOSTPROCESS),yes) |
133 VFILTER_SRCS += vf_pp.c | |
134 endif | |
135 | |
15772 | 136 ENCODER_SRCS=ae.c \ |
137 ae_pcm.c \ | |
138 ve.c \ | |
139 ve_divx4.c \ | |
140 ve_lavc.c \ | |
141 ve_libdv.c \ | |
142 ve_nuv.c \ | |
143 ve_qtvideo.c \ | |
144 ve_raw.c \ | |
145 ve_vfw.c \ | |
146 ve_x264.c \ | |
147 ve_xvid4.c \ | |
148 ve_xvid.c \ | |
8024 | 149 |
15772 | 150 NATIVE_SRCS=native/decode144.c \ |
151 native/decode288.c \ | |
152 native/minilzo.c \ | |
153 native/nuppelvideo.c \ | |
154 native/RTjpegN.c \ | |
155 native/xa_gsm.c \ | |
5029 | 156 |
5840
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
157 ifeq ($(FAME),yes) |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
158 VFILTER_SRCS += vf_fame.c |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
159 endif |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
160 |
11662
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
161 ifeq ($(ZORAN),yes) |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
162 VFILTER_SRCS += vf_zrmjpeg.c |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
163 endif |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
164 |
5029 | 165 ifeq ($(PNG),yes) |
5344 | 166 VIDEO_SRCS += vd_mpng.c |
5029 | 167 endif |
168 | |
169 ifeq ($(JPEG),yes) | |
5344 | 170 VIDEO_SRCS += vd_ijpg.c |
5029 | 171 endif |
4878 | 172 |
13426 | 173 ifeq ($(TOOLAME),yes) |
15234 | 174 ENCODER_SRCS += ae_toolame.c |
13426 | 175 EXTRA_INC += $(TOOLAME_EXTRAFLAGS) |
176 endif | |
177 | |
15359 | 178 ifeq ($(TWOLAME),yes) |
179 ENCODER_SRCS += ae_twolame.c | |
180 endif | |
181 | |
15234 | 182 ifeq ($(CONFIG_MP3LAME),yes) |
183 ENCODER_SRCS += ae_lame.c | |
184 endif | |
185 | |
16165 | 186 LIBAV_INC = |
187 ifeq ($(CONFIG_LIBAVUTIL),yes) | |
188 LIBAV_INC += -I../libavutil | |
189 endif | |
15234 | 190 ifeq ($(CONFIG_LIBAVCODEC),yes) |
16165 | 191 LIBAV_INC += -I../libavcodec |
15234 | 192 ENCODER_SRCS += ae_lavc.c |
193 endif | |
194 | |
16251 | 195 ifeq ($(CONFIG_LIBAVCODECSO),yes) |
196 ENCODER_SRCS += ae_lavc.c | |
197 endif | |
198 | |
15958
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
199 ifeq ($(MUSEPACK),yes) |
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
200 AUDIO_SRCS += ad_mpc.c |
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
201 endif |
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
202 |
15259 | 203 ifeq ($(FAAC),yes) |
204 ENCODER_SRCS += ae_faac.c | |
205 endif | |
206 | |
5607 | 207 SRCS=$(AUDIO_SRCS) $(VIDEO_SRCS) $(VFILTER_SRCS) $(NATIVE_SRCS) img_format.c |
4878 | 208 OBJS=$(SRCS:.c=.o) |
209 | |
5550 | 210 SRCS2=$(ENCODER_SRCS) |
211 OBJS2=$(SRCS2:.c=.o) | |
212 | |
16165 | 213 CFLAGS = $(OPTFLAGS) -I. -Inative -I.. -I../libmpdemux -I../loader $(LIBAV_INC) $(EXTRA_INC) $(X264_INC) -D_GNU_SOURCE |
4878 | 214 |
215 .SUFFIXES: .c .o | |
216 | |
217 # .PHONY: all clean | |
218 | |
219 .c.o: | |
220 $(CC) -c $(CFLAGS) -o $@ $< | |
221 | |
5550 | 222 all: $(LIBNAME) $(LIBNAME2) |
223 | |
4878 | 224 $(LIBNAME): $(OBJS) |
225 $(AR) r $(LIBNAME) $(OBJS) | |
12634 | 226 $(RANLIB) $(LIBNAME) |
4878 | 227 |
5550 | 228 $(LIBNAME2): $(OBJS2) |
229 $(AR) r $(LIBNAME2) $(OBJS2) | |
12634 | 230 $(RANLIB) $(LIBNAME2) |
4878 | 231 |
232 clean: | |
233 rm -f *.o *.a *~ | |
14138
40ac42c6dd6d
make clean should also clean the native subdirectory.
diego
parents:
13426
diff
changeset
|
234 rm -f native/*.o native/*.a native/*~ |
4878 | 235 |
236 distclean: | |
5603 | 237 rm -f Makefile.bak $(OBJS) $(OBJS2) $(LIBNAME) $(LIBNAME2) *~ .depend |
4878 | 238 |
239 dep: depend | |
240 | |
241 depend: | |
5550 | 242 $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend |
4878 | 243 |
244 # | |
245 # include dependency files if they exist | |
246 # | |
247 ifneq ($(wildcard .depend),) | |
248 include .depend | |
249 endif | |
250 |