Mercurial > mplayer.hg
annotate libmpdemux/Makefile @ 19141:6e6ca469073b
moved mpeg_packetizer helpers to libmpdemux
author | ben |
---|---|
date | Wed, 19 Jul 2006 22:13:50 +0000 |
parents | 9c5077988cb7 |
children | 188225d6ba3f |
rev | line source |
---|---|
2311 | 1 |
2 LIBNAME = libmpdemux.a | |
3 | |
4 include ../config.mak | |
5 | |
15772 | 6 # Headers and header-dumpers |
7 SRCS = mp3_hdr.c \ | |
8 mpeg_hdr.c \ | |
9 asfheader.c \ | |
10 aviheader.c \ | |
11 aviprint.c \ | |
12 | |
13 # Core | |
18922
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
14 SRCS += extension.c \ |
15772 | 15 mf.c \ |
16 open.c \ | |
17 url.c \ | |
18 video.c \ | |
19 | |
18922
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
20 ifeq ($(STREAM_CACHE),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
21 SRCS += cache2.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
22 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
23 |
15772 | 24 # Miscellaneous |
18922
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
25 SRCS += cdinfo.c \ |
15772 | 26 cue_read.c \ |
27 parse_es.c \ | |
28 parse_mp4.c \ | |
19141 | 29 mpeg_packetizer.c \ |
15772 | 30 yuv4mpeg.c \ |
31 yuv4mpeg_ratio.c \ | |
32 | |
18922
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
33 ifeq ($(CDDA),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
34 SRCS += cdda.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
35 ifeq ($(MPLAYER_NETWORK),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
36 SRCS += cddb.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
37 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
38 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
39 |
15772 | 40 # Stream readers/writers |
41 SRCS += stream.c \ | |
42 stream_file.c \ | |
43 stream_null.c \ | |
44 | |
18921 | 45 ifeq ($(HAVE_DVD),yes) |
46 SRCS += stream_dvd.c | |
47 endif | |
18922
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
48 ifeq ($(DVDNAV),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
49 SRCS += dvdnav_stream.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
50 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
51 ifeq ($(VCD),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
52 SRCS += stream_vcd.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
53 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
54 ifeq ($(FTP),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
55 SRCS += stream_ftp.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
56 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
57 ifeq ($(LIBSMBCLIENT),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
58 SRCS += stream_smb.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
59 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
60 ifeq ($(MPLAYER_NETWORK),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
61 SRCS += stream_netstream.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
62 ifeq ($(STREAMING_LIVE555),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
63 SRCS += stream_livedotcom.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
64 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
65 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
66 ifeq ($(VSTREAM),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
67 SRCS += stream_vstream.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
68 endif |
18921 | 69 |
15772 | 70 # TV in |
18922
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
71 ifeq ($(TV),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
72 SRCS += tv.c frequencies.c tvi_dummy.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
73 ifeq ($(TV_BSDBT848),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
74 SRCS += tvi_bsdbt848.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
75 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
76 ifeq ($(TV_V4L2),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
77 SRCS += tvi_v4l2.c audio_in.c |
18997 | 78 ifeq ($(PVR),yes) |
79 SRCS += stream_pvr.c | |
80 endif | |
18922
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
81 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
82 ifeq ($(TV_V4L),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
83 SRCS += tvi_v4l.c audio_in.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
84 endif |
18924 | 85 ifneq ($(TV_V4L)$(TV_V4L2),) |
18922
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
86 ifeq ($(ALSA1X),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
87 SRCS += ai_alsa1x.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
88 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
89 ifeq ($(ALSA9),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
90 SRCS += ai_alsa.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
91 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
92 ifeq ($(OSS),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
93 SRCS += ai_oss.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
94 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
95 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
96 endif |
15772 | 97 |
98 # Demuxers | |
99 SRCS += demuxer.c \ | |
100 demux_aac.c \ | |
101 demux_asf.c \ | |
102 demux_audio.c \ | |
103 demux_avi.c \ | |
104 demux_demuxers.c \ | |
105 demux_film.c \ | |
106 demux_fli.c \ | |
107 demux_lmlm4.c \ | |
108 demux_mf.c \ | |
109 demux_mov.c \ | |
15958
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15772
diff
changeset
|
110 demux_mpc.c \ |
15772 | 111 demux_mpg.c \ |
112 demux_nsv.c \ | |
113 demux_nuv.c \ | |
114 demux_pva.c \ | |
115 demux_rawaudio.c \ | |
116 demux_rawvideo.c \ | |
117 demux_realaud.c \ | |
118 demux_real.c \ | |
119 demux_roq.c \ | |
120 demux_smjpeg.c \ | |
121 demux_ts.c \ | |
122 demux_ty.c \ | |
123 demux_ty_osd.c \ | |
124 demux_viv.c \ | |
125 demux_vqf.c \ | |
126 demux_y4m.c \ | |
18404 | 127 demux_mkv.c ebml.c \ |
15772 | 128 |
18922
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
129 ifeq ($(LIBVORBIS),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
130 SRCS += demux_ogg.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
131 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
132 ifeq ($(LIBDV),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
133 SRCS += demux_rawdv.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
134 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
135 ifeq ($(GIF),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
136 SRCS += demux_gif.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
137 endif |
8528 | 138 ifeq ($(XMMS_PLUGINS),yes) |
139 SRCS += demux_xmms.c | |
18921 | 140 endif |
15772 | 141 ifneq ($(W32_LIB),) |
142 SRCS += demux_avs.c | |
143 endif | |
144 | |
145 # Muxers | |
17538 | 146 MUXERS = muxer.c \ |
15772 | 147 muxer_avi.c \ |
148 muxer_mpeg.c \ | |
149 muxer_rawaudio.c \ | |
150 muxer_rawvideo.c \ | |
151 | |
16165 | 152 LIBAV_INC = |
153 ifeq ($(CONFIG_LIBAVUTIL),yes) | |
154 LIBAV_INC += -I../libavutil | |
155 endif | |
156 ifeq ($(CONFIG_LIBAVCODEC),yes) | |
157 LIBAV_INC += -I../libavcodec | |
158 endif | |
15772 | 159 ifeq ($(CONFIG_LIBAVFORMAT),yes) |
16165 | 160 LIBAV_INC += -I../libavformat |
17538 | 161 SRCS += demux_lavf.c |
162 MUXERS += muxer_lavf.c | |
17354 | 163 endif |
164 ifeq ($(CONFIG_LIBAVFORMAT_SO),yes) | |
17538 | 165 SRCS += demux_lavf.c |
166 MUXERS += muxer_lavf.c | |
15772 | 167 endif |
168 | |
10121
d42177a0da2a
Changed the STREAMING defines to MPLAYER_NETWORK to avoid name definition clash.
bertrand
parents:
10057
diff
changeset
|
169 ifeq ($(MPLAYER_NETWORK),yes) |
15772 | 170 SRCS += asf_streaming.c \ |
171 http.c \ | |
172 network.c \ | |
173 cookies.c \ | |
174 asf_mmst_streaming.c \ | |
175 pnm.c \ | |
176 rtp.c \ | |
18794
42001f5086d2
new RTSP demuxer dedicated file, based on old code from realrtsp one but intended to be much more generic
ben
parents:
18404
diff
changeset
|
177 rtsp.c \ |
15772 | 178 |
179 SRCS += realrtsp/asmrp.c \ | |
180 realrtsp/real.c \ | |
181 realrtsp/rmff.c \ | |
182 realrtsp/sdpplin.c \ | |
183 realrtsp/xbuffer.c \ | |
184 | |
18799
e16345b97dab
moved generic rtsp related files from realrtsp to librtsp
ben
parents:
18794
diff
changeset
|
185 SRCS += librtsp/rtsp.c \ |
18829
317e0fd394c5
added new native rtsp demuxer code for mpeg-ts over rtp (now both real and non-real servers should be handled)
ben
parents:
18823
diff
changeset
|
186 librtsp/rtsp_rtp.c \ |
18799
e16345b97dab
moved generic rtsp related files from realrtsp to librtsp
ben
parents:
18794
diff
changeset
|
187 librtsp/rtsp_session.c \ |
e16345b97dab
moved generic rtsp related files from realrtsp to librtsp
ben
parents:
18794
diff
changeset
|
188 |
18823
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
189 SRCS += freesdp/common.c \ |
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
190 freesdp/errorlist.c \ |
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
191 freesdp/parser.c \ |
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
192 |
16572
56a5f69e9b35
"LIVE.COM Streaming Media" is now called "LIVE555 Streaming Media".
rsf
parents:
16165
diff
changeset
|
193 ifeq ($(STREAMING_LIVE555),yes) |
9250 | 194 CPLUSPLUSSRCS = demux_rtp.cpp demux_rtp_codec.cpp |
13997 | 195 CPLUSPLUSINCLUDE = $(LIVE_INCLUDES) |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
196 endif |
2311 | 197 endif |
198 | |
9610 | 199 ifeq ($(DVBIN),yes) |
200 SRCS += dvbin.c | |
201 SRCS += dvb_tune.c | |
202 endif | |
203 | |
17538 | 204 ifeq ($(MENCODER),yes) |
205 SRCS += $(MUXERS) | |
206 endif | |
207 | |
2311 | 208 OBJS = $(SRCS:.c=.o) |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
209 OBJS += $(CPLUSPLUSSRCS:.cpp=.o) |
19050 | 210 INCLUDE = -I.. -I../loader $(LIBAV_INC) |
10651
efb6dcac967d
--dvbincdir support by Gotz Waschk <waschk@informatik.uni-rostock.de>
alex
parents:
10634
diff
changeset
|
211 CFLAGS = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS) $(CDPARANOIA_INC) $(DVB_INC) |
18137 | 212 CPLUSPLUSFLAGS = $(CFLAGS) $(CPLUSPLUSINCLUDE) -D__STDC_LIMIT_MACROS |
7168
cb1428dd4d79
assume $(CC) can compile c++ - fixes compile with non-default compiler
arpi
parents:
7148
diff
changeset
|
213 CPLUSPLUS = $(CC) |
2311 | 214 |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
215 .SUFFIXES: .c .cpp .o |
2311 | 216 |
217 # .PHONY: all clean | |
218 | |
219 all: $(LIBNAME) | |
220 | |
221 .c.o: | |
222 $(CC) -c $(CFLAGS) -o $@ $< | |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
223 .cpp.o: |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
224 $(CPLUSPLUS) -c $(CPLUSPLUSFLAGS) -o $@ $< |
2311 | 225 |
226 $(LIBNAME): $(OBJS) | |
227 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 228 $(RANLIB) $(LIBNAME) |
2311 | 229 |
230 test: $(LIBNAME) test.c | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17538
diff
changeset
|
231 $(CC) $(CFLAGS) test.c ../mp_msg.c ../osdep/shmem.c -o test \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17538
diff
changeset
|
232 ./libmpdemux.a ../libmpdvdkit2/libmpdvdkit.a ../libvo/aclib.o \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17538
diff
changeset
|
233 ../libmpcodecs/img_format.o ../libao2/afmt.o ../sub_cc.o \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17538
diff
changeset
|
234 ../m_option.o ../subreader.o \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17538
diff
changeset
|
235 $(ALSA_LIB) $(VORBIS_LIB) $(CDPARANOIA_LIB) -lz -lpthread |
2311 | 236 |
237 clean: | |
18799
e16345b97dab
moved generic rtsp related files from realrtsp to librtsp
ben
parents:
18794
diff
changeset
|
238 rm -f *.o *.a *~ \ |
e16345b97dab
moved generic rtsp related files from realrtsp to librtsp
ben
parents:
18794
diff
changeset
|
239 realrtsp/*.o realrtsp/*.a realrtsp/*~ \ |
18823
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
240 librtsp/*.o librtsp/*.a librtsp/*~ \ |
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
241 freesdp/*.o freesdp/*.a freesdp/*~ |
2311 | 242 |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17354
diff
changeset
|
243 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17354
diff
changeset
|
244 rm -f .depend test |
2311 | 245 |
246 dep: depend | |
247 | |
248 depend: | |
249 $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend | |
250 | |
251 # | |
252 # include dependency files if they exist | |
253 # | |
254 ifneq ($(wildcard .depend),) | |
255 include .depend | |
256 endif |