Mercurial > mplayer.hg
annotate libmpcodecs/Makefile @ 17867:8abdf3618732
mpegopts example
author | rathann |
---|---|
date | Tue, 14 Mar 2006 21:57:58 +0000 |
parents | cc6cf286e337 |
children | 8dd9503e4d19 |
rev | line source |
---|---|
4878 | 1 |
2 include ../config.mak | |
3 | |
4 LIBNAME = libmpcodecs.a | |
5550 | 5 LIBNAME2 = libmpencoders.a |
4878 | 6 |
17524
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
7 LIBS =$(LIBNAME) |
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
8 ifeq ($(MENCODER),yes) |
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
9 LIBS+=$(LIBNAME2) |
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
10 endif |
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
11 |
15772 | 12 AUDIO_SRCS_LIB=ad_hwac3.c \ |
13 ad_liba52.c \ | |
14 ad_mp3lib.c \ | |
17397
2e20dd653147
ad_hwmpa: pass-through fake audio codec for hardware mpeg decoders
nicodvb
parents:
17387
diff
changeset
|
15 ad_hwmpa.c \ |
15772 | 16 |
17 AUDIO_SRCS_NAT=ad_alaw.c \ | |
18 ad_dk3adpcm.c \ | |
19 ad_dvdpcm.c \ | |
20 ad_imaadpcm.c \ | |
21 ad_msadpcm.c \ | |
22 ad_msgsm.c \ | |
23 ad_pcm.c \ | |
24 | |
25 AUDIO_SRCS_OPT=ad_acm.c \ | |
26 ad_dmo.c \ | |
27 ad_dshow.c \ | |
28 ad_faad.c \ | |
29 ad_libdv.c \ | |
30 ad_libmad.c \ | |
31 ad_libvorbis.c \ | |
32 ad_qtaudio.c \ | |
33 ad_realaud.c \ | |
34 ad_twin.c \ | |
35 | |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
36 ifeq ($(CONFIG_LIBAVCODEC),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
37 AUDIO_SRCS_OPT+=ad_ffmpeg.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
38 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
39 ifeq ($(CONFIG_LIBAVCODEC_SO),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
40 AUDIO_SRCS_OPT+=ad_ffmpeg.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
41 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
42 |
16521
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
43 AUDIO_SRCS=dec_audio.c \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
44 ad.c \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
45 $(AUDIO_SRCS_LIB) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
46 $(AUDIO_SRCS_NAT) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
47 $(AUDIO_SRCS_OPT) \ |
8024 | 48 |
15772 | 49 VIDEO_SRCS_LIB=vd_libmpeg2.c \ |
50 vd_lzo.c \ | |
51 vd_nuv.c \ | |
52 | |
53 VIDEO_SRCS_NAT=vd_hmblck.c \ | |
54 vd_mpegpes.c \ | |
55 vd_mtga.c \ | |
56 vd_null.c \ | |
57 vd_raw.c \ | |
58 vd_sgi.c \ | |
59 | |
60 VIDEO_SRCS_OPT=vd_divx4.c \ | |
61 vd_dmo.c \ | |
62 vd_dshow.c \ | |
63 vd_libdv.c \ | |
64 vd_odivx.c \ | |
65 vd_qtvideo.c \ | |
66 vd_realvid.c \ | |
67 vd_theora.c \ | |
68 vd_vfw.c \ | |
69 vd_vfwex.c \ | |
70 vd_xanim.c \ | |
71 vd_xvid4.c \ | |
72 vd_xvid.c \ | |
73 vd_zrmjpeg.c \ | |
74 | |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
75 ifeq ($(CONFIG_LIBAVCODEC),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
76 VIDEO_SRCS_OPT+=vd_ffmpeg.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
77 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
78 ifeq ($(CONFIG_LIBAVCODEC_SO),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
79 VIDEO_SRCS_OPT+=vd_ffmpeg.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
80 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
81 |
16521
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
82 VIDEO_SRCS=dec_video.c \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
83 vd.c \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
84 $(VIDEO_SRCS_NAT) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
85 $(VIDEO_SRCS_LIB) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
86 $(VIDEO_SRCS_OPT) \ |
8024 | 87 |
15772 | 88 VFILTER_SRCS=vf.c \ |
89 pullup.c \ | |
90 vf_1bpp.c \ | |
91 vf_2xsai.c \ | |
92 vf_bmovl.c \ | |
93 vf_boxblur.c \ | |
94 vf_crop.c \ | |
95 vf_cropdetect.c \ | |
96 vf_decimate.c \ | |
97 vf_delogo.c \ | |
98 vf_denoise3d.c \ | |
99 vf_detc.c \ | |
100 vf_dint.c \ | |
101 vf_divtc.c \ | |
102 vf_down3dright.c \ | |
103 vf_dsize.c \ | |
104 vf_dvbscale.c \ | |
105 vf_eq2.c \ | |
106 vf_eq.c \ | |
107 vf_expand.c \ | |
108 vf_field.c \ | |
109 vf_fil.c \ | |
110 vf_filmdint.c \ | |
111 vf_flip.c \ | |
112 vf_format.c \ | |
113 vf_framestep.c \ | |
114 vf_halfpack.c \ | |
115 vf_harddup.c \ | |
116 vf_hqdn3d.c \ | |
117 vf_hue.c \ | |
118 vf_il.c \ | |
119 vf_ilpack.c \ | |
120 vf_ivtc.c \ | |
121 vf_kerndeint.c \ | |
122 vf_mirror.c \ | |
123 vf_noformat.c \ | |
124 vf_noise.c \ | |
125 vf_palette.c \ | |
126 vf_perspective.c \ | |
127 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
|
128 vf_pp7.c \ |
15772 | 129 vf_pullup.c \ |
130 vf_rectangle.c \ | |
131 vf_remove_logo.c \ | |
132 vf_rgb2bgr.c \ | |
133 vf_rgbtest.c \ | |
134 vf_rotate.c \ | |
135 vf_sab.c \ | |
136 vf_scale.c \ | |
137 vf_smartblur.c \ | |
138 vf_softpulldown.c \ | |
139 vf_softskip.c \ | |
140 vf_swapuv.c \ | |
141 vf_telecine.c \ | |
142 vf_test.c \ | |
143 vf_tfields.c \ | |
144 vf_tile.c \ | |
145 vf_tinterlace.c \ | |
146 vf_unsharp.c \ | |
147 vf_vo.c \ | |
148 vf_yuvcsp.c \ | |
149 vf_yuy2.c \ | |
150 vf_yvu9.c \ | |
16447 | 151 vf_screenshot.c \ |
15772 | 152 |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
153 VFILTER_LAVC_SRCS += vf_uspp.c \ |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
154 vf_fspp.c \ |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
155 vf_lavc.c \ |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
156 vf_lavcdeint.c \ |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
157 vf_qp.c \ |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
158 vf_spp.c \ |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
159 |
17463 | 160 ifeq ($(CONFIG_LIBPOSTPROC),yes) |
161 VFILTER_SRCS += vf_pp.c | |
162 endif | |
163 ifeq ($(CONFIG_LIBPOSTPROC_SO),yes) | |
11141 | 164 VFILTER_SRCS += vf_pp.c |
165 endif | |
166 | |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
167 ifeq ($(CONFIG_LIBAVCODEC),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
168 VFILTER_SRCS += $(VFILTER_LAVC_SRCS) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
169 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
170 ifeq ($(CONFIG_LIBAVCODEC_SO),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
171 VFILTER_SRCS += $(VFILTER_LAVC_SRCS) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
172 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
173 |
15772 | 174 ENCODER_SRCS=ae.c \ |
175 ae_pcm.c \ | |
176 ve.c \ | |
177 ve_divx4.c \ | |
178 ve_libdv.c \ | |
179 ve_nuv.c \ | |
180 ve_qtvideo.c \ | |
181 ve_raw.c \ | |
182 ve_vfw.c \ | |
183 ve_xvid4.c \ | |
184 ve_xvid.c \ | |
8024 | 185 |
17523
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
186 ifeq ($(CONFIG_LIBAVCODEC),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
187 ENCODER_SRCS+=ve_lavc.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
188 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
189 ifeq ($(CONFIG_LIBAVCODEC_SO),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
190 ENCODER_SRCS+=ve_lavc.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
191 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
192 |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
193 ifeq ($(X264),yes) |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
194 ENCODER_SRCS+=ve_x264.c |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
195 endif |
f0e7712385dc
Move conditional compilation out of the code and into the build system.
diego
parents:
17488
diff
changeset
|
196 |
17151
9a6b48d19e12
Remove MPlayer native 14_4 and 28_8 codecs (they are in lavc)
rtognimp
parents:
16946
diff
changeset
|
197 NATIVE_SRCS=native/minilzo.c \ |
15772 | 198 native/nuppelvideo.c \ |
199 native/RTjpegN.c \ | |
200 native/xa_gsm.c \ | |
5029 | 201 |
5840
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
202 ifeq ($(FAME),yes) |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
203 VFILTER_SRCS += vf_fame.c |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
204 endif |
4e3cf9473628
Allow disabling of libfame and allow to enforce (not) building libavcodec.
atmos4
parents:
5774
diff
changeset
|
205 |
11662
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
206 ifeq ($(ZORAN),yes) |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
207 VFILTER_SRCS += vf_zrmjpeg.c |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
208 endif |
173f22eb0505
vf_zrmjpeg MJPEG encoding filter, works together with vo_zr2. Only YV12
rik
parents:
11600
diff
changeset
|
209 |
5029 | 210 ifeq ($(PNG),yes) |
5344 | 211 VIDEO_SRCS += vd_mpng.c |
5029 | 212 endif |
213 | |
214 ifeq ($(JPEG),yes) | |
5344 | 215 VIDEO_SRCS += vd_ijpg.c |
5029 | 216 endif |
4878 | 217 |
13426 | 218 ifeq ($(TOOLAME),yes) |
15234 | 219 ENCODER_SRCS += ae_toolame.c |
13426 | 220 EXTRA_INC += $(TOOLAME_EXTRAFLAGS) |
221 endif | |
222 | |
15359 | 223 ifeq ($(TWOLAME),yes) |
224 ENCODER_SRCS += ae_twolame.c | |
225 endif | |
226 | |
15234 | 227 ifeq ($(CONFIG_MP3LAME),yes) |
228 ENCODER_SRCS += ae_lame.c | |
229 endif | |
230 | |
16165 | 231 LIBAV_INC = |
232 ifeq ($(CONFIG_LIBAVUTIL),yes) | |
233 LIBAV_INC += -I../libavutil | |
234 endif | |
15234 | 235 ifeq ($(CONFIG_LIBAVCODEC),yes) |
16165 | 236 LIBAV_INC += -I../libavcodec |
15234 | 237 ENCODER_SRCS += ae_lavc.c |
238 endif | |
17387 | 239 ifeq ($(CONFIG_LIBAVCODEC_SO),yes) |
16251 | 240 ENCODER_SRCS += ae_lavc.c |
241 endif | |
242 | |
15958
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
243 ifeq ($(MUSEPACK),yes) |
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
244 AUDIO_SRCS += ad_mpc.c |
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
245 endif |
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15944
diff
changeset
|
246 |
16915
6b1d1e4adaea
Speex support. Seeking and pts generation does not work.
reimar
parents:
16521
diff
changeset
|
247 ifeq ($(SPEEX),yes) |
6b1d1e4adaea
Speex support. Seeking and pts generation does not work.
reimar
parents:
16521
diff
changeset
|
248 AUDIO_SRCS += ad_speex.c |
6b1d1e4adaea
Speex support. Seeking and pts generation does not work.
reimar
parents:
16521
diff
changeset
|
249 endif |
6b1d1e4adaea
Speex support. Seeking and pts generation does not work.
reimar
parents:
16521
diff
changeset
|
250 |
15259 | 251 ifeq ($(FAAC),yes) |
252 ENCODER_SRCS += ae_faac.c | |
253 endif | |
254 | |
16521
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
255 SRCS=$(AUDIO_SRCS) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
256 $(VIDEO_SRCS) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
257 $(VFILTER_SRCS) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
258 $(NATIVE_SRCS) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
259 img_format.c \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
260 |
4878 | 261 OBJS=$(SRCS:.c=.o) |
262 | |
5550 | 263 SRCS2=$(ENCODER_SRCS) |
264 OBJS2=$(SRCS2:.c=.o) | |
265 | |
16521
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
266 CFLAGS = $(OPTFLAGS) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
267 -I. -I.. \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
268 -Inative \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
269 -I../libmpdemux \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
270 -I../loader \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
271 $(LIBAV_INC) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
272 $(EXTRA_INC) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
273 $(X264_INC) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
274 $(XVID_INC) \ |
3636c18a1b5e
Break up all long lines that were missed during the last reformatting round.
diego
parents:
16520
diff
changeset
|
275 -D_GNU_SOURCE \ |
4878 | 276 |
277 .SUFFIXES: .c .o | |
278 | |
279 # .PHONY: all clean | |
280 | |
281 .c.o: | |
282 $(CC) -c $(CFLAGS) -o $@ $< | |
283 | |
17524
cc6cf286e337
Only compile libmpencoders if MEncoder has been enabled.
diego
parents:
17523
diff
changeset
|
284 all: $(LIBS) |
5550 | 285 |
4878 | 286 $(LIBNAME): $(OBJS) |
287 $(AR) r $(LIBNAME) $(OBJS) | |
12634 | 288 $(RANLIB) $(LIBNAME) |
4878 | 289 |
5550 | 290 $(LIBNAME2): $(OBJS2) |
291 $(AR) r $(LIBNAME2) $(OBJS2) | |
12634 | 292 $(RANLIB) $(LIBNAME2) |
4878 | 293 |
294 clean: | |
295 rm -f *.o *.a *~ | |
14138
40ac42c6dd6d
make clean should also clean the native subdirectory.
diego
parents:
13426
diff
changeset
|
296 rm -f native/*.o native/*.a native/*~ |
4878 | 297 |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17463
diff
changeset
|
298 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17463
diff
changeset
|
299 rm -f .depend |
4878 | 300 |
301 dep: depend | |
302 | |
303 depend: | |
5550 | 304 $(CC) -MM $(CFLAGS) $(SRCS) $(SRCS2) 1>.depend |
4878 | 305 |
306 # | |
307 # include dependency files if they exist | |
308 # | |
309 ifneq ($(wildcard .depend),) | |
310 include .depend | |
311 endif | |
312 |