Mercurial > mplayer.hg
annotate libmpdemux/Makefile @ 18921:f40eeaf450dd
cosmetics
author | diego |
---|---|
date | Thu, 06 Jul 2006 13:06:21 +0000 |
parents | 317e0fd394c5 |
children | d2d9d011203f |
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 | |
14 SRCS += cache2.c \ | |
15 extension.c \ | |
16 mf.c \ | |
17 open.c \ | |
18 url.c \ | |
19 video.c \ | |
20 | |
21 # Miscellaneous | |
22 SRCS += cdda.c \ | |
23 cddb.c \ | |
24 cdinfo.c \ | |
25 cue_read.c \ | |
26 dvdnav_stream.c \ | |
27 parse_es.c \ | |
28 parse_mp4.c \ | |
29 yuv4mpeg.c \ | |
30 yuv4mpeg_ratio.c \ | |
31 | |
32 # Stream readers/writers | |
33 SRCS += stream.c \ | |
34 stream_file.c \ | |
35 stream_ftp.c \ | |
36 stream_livedotcom.c \ | |
37 stream_netstream.c \ | |
38 stream_null.c \ | |
39 stream_smb.c \ | |
40 stream_vcd.c \ | |
41 stream_vstream.c \ | |
42 | |
18921 | 43 ifeq ($(HAVE_DVD),yes) |
44 SRCS += stream_dvd.c | |
45 endif | |
46 | |
15772 | 47 # TV in |
48 SRCS += tv.c \ | |
49 frequencies.c \ | |
50 tvi_bsdbt848.c \ | |
51 tvi_dummy.c \ | |
52 tvi_v4l2.c \ | |
53 tvi_v4l.c \ | |
54 | |
55 # Audio in | |
56 SRCS += audio_in.c \ | |
57 ai_alsa1x.c \ | |
58 ai_alsa.c \ | |
59 ai_oss.c \ | |
60 | |
61 # Demuxers | |
62 SRCS += demuxer.c \ | |
63 demux_aac.c \ | |
64 demux_asf.c \ | |
65 demux_audio.c \ | |
66 demux_avi.c \ | |
67 demux_demuxers.c \ | |
68 demux_film.c \ | |
69 demux_fli.c \ | |
70 demux_gif.c \ | |
71 demux_lmlm4.c \ | |
72 demux_mf.c \ | |
73 demux_mov.c \ | |
15958
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15772
diff
changeset
|
74 demux_mpc.c \ |
15772 | 75 demux_mpg.c \ |
76 demux_nsv.c \ | |
77 demux_nuv.c \ | |
78 demux_ogg.c \ | |
79 demux_pva.c \ | |
80 demux_rawaudio.c \ | |
81 demux_rawdv.c \ | |
82 demux_rawvideo.c \ | |
83 demux_realaud.c \ | |
84 demux_real.c \ | |
85 demux_roq.c \ | |
86 demux_smjpeg.c \ | |
87 demux_ts.c \ | |
88 demux_ty.c \ | |
89 demux_ty_osd.c \ | |
90 demux_viv.c \ | |
91 demux_vqf.c \ | |
92 demux_y4m.c \ | |
18404 | 93 demux_mkv.c ebml.c \ |
15772 | 94 |
8528 | 95 ifeq ($(XMMS_PLUGINS),yes) |
96 SRCS += demux_xmms.c | |
18921 | 97 endif |
15772 | 98 ifneq ($(W32_LIB),) |
99 SRCS += demux_avs.c | |
100 endif | |
101 | |
102 # Muxers | |
17538 | 103 MUXERS = muxer.c \ |
15772 | 104 muxer_avi.c \ |
105 muxer_mpeg.c \ | |
106 muxer_rawaudio.c \ | |
107 muxer_rawvideo.c \ | |
108 | |
16165 | 109 LIBAV_INC = |
110 ifeq ($(CONFIG_LIBAVUTIL),yes) | |
111 LIBAV_INC += -I../libavutil | |
112 endif | |
113 ifeq ($(CONFIG_LIBAVCODEC),yes) | |
114 LIBAV_INC += -I../libavcodec | |
115 endif | |
15772 | 116 ifeq ($(CONFIG_LIBAVFORMAT),yes) |
16165 | 117 LIBAV_INC += -I../libavformat |
17538 | 118 SRCS += demux_lavf.c |
119 MUXERS += muxer_lavf.c | |
17354 | 120 endif |
121 ifeq ($(CONFIG_LIBAVFORMAT_SO),yes) | |
17538 | 122 SRCS += demux_lavf.c |
123 MUXERS += muxer_lavf.c | |
15772 | 124 endif |
125 | |
10121
d42177a0da2a
Changed the STREAMING defines to MPLAYER_NETWORK to avoid name definition clash.
bertrand
parents:
10057
diff
changeset
|
126 ifeq ($(MPLAYER_NETWORK),yes) |
15772 | 127 SRCS += asf_streaming.c \ |
128 http.c \ | |
129 network.c \ | |
130 cookies.c \ | |
131 asf_mmst_streaming.c \ | |
132 pnm.c \ | |
133 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
|
134 rtsp.c \ |
15772 | 135 |
136 SRCS += realrtsp/asmrp.c \ | |
137 realrtsp/real.c \ | |
138 realrtsp/rmff.c \ | |
139 realrtsp/sdpplin.c \ | |
140 realrtsp/xbuffer.c \ | |
141 | |
18799
e16345b97dab
moved generic rtsp related files from realrtsp to librtsp
ben
parents:
18794
diff
changeset
|
142 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
|
143 librtsp/rtsp_rtp.c \ |
18799
e16345b97dab
moved generic rtsp related files from realrtsp to librtsp
ben
parents:
18794
diff
changeset
|
144 librtsp/rtsp_session.c \ |
e16345b97dab
moved generic rtsp related files from realrtsp to librtsp
ben
parents:
18794
diff
changeset
|
145 |
18823
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
146 SRCS += freesdp/common.c \ |
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
147 freesdp/errorlist.c \ |
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
148 freesdp/parser.c \ |
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
149 |
16572
56a5f69e9b35
"LIVE.COM Streaming Media" is now called "LIVE555 Streaming Media".
rsf
parents:
16165
diff
changeset
|
150 ifeq ($(STREAMING_LIVE555),yes) |
9250 | 151 CPLUSPLUSSRCS = demux_rtp.cpp demux_rtp_codec.cpp |
13997 | 152 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
|
153 endif |
2311 | 154 endif |
155 | |
9610 | 156 ifeq ($(DVBIN),yes) |
157 SRCS += dvbin.c | |
158 SRCS += dvb_tune.c | |
159 endif | |
160 | |
17538 | 161 ifeq ($(MENCODER),yes) |
162 SRCS += $(MUXERS) | |
163 endif | |
164 | |
2311 | 165 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
|
166 OBJS += $(CPLUSPLUSSRCS:.cpp=.o) |
13787
e047e70a9767
Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.
diego
parents:
12958
diff
changeset
|
167 INCLUDE = -I.. -I../loader $(CSS_INC) $(EXTRA_INC) $(LIBAV_INC) |
10651
efb6dcac967d
--dvbincdir support by Gotz Waschk <waschk@informatik.uni-rostock.de>
alex
parents:
10634
diff
changeset
|
168 CFLAGS = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS) $(CDPARANOIA_INC) $(DVB_INC) |
18137 | 169 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
|
170 CPLUSPLUS = $(CC) |
2311 | 171 |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
172 .SUFFIXES: .c .cpp .o |
2311 | 173 |
174 # .PHONY: all clean | |
175 | |
176 all: $(LIBNAME) | |
177 | |
178 .c.o: | |
179 $(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
|
180 .cpp.o: |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
181 $(CPLUSPLUS) -c $(CPLUSPLUSFLAGS) -o $@ $< |
2311 | 182 |
183 $(LIBNAME): $(OBJS) | |
184 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 185 $(RANLIB) $(LIBNAME) |
2311 | 186 |
187 test: $(LIBNAME) test.c | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17538
diff
changeset
|
188 $(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
|
189 ./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
|
190 ../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
|
191 ../m_option.o ../subreader.o \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17538
diff
changeset
|
192 $(ALSA_LIB) $(VORBIS_LIB) $(CDPARANOIA_LIB) -lz -lpthread |
2311 | 193 |
194 clean: | |
18799
e16345b97dab
moved generic rtsp related files from realrtsp to librtsp
ben
parents:
18794
diff
changeset
|
195 rm -f *.o *.a *~ \ |
e16345b97dab
moved generic rtsp related files from realrtsp to librtsp
ben
parents:
18794
diff
changeset
|
196 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
|
197 librtsp/*.o librtsp/*.a librtsp/*~ \ |
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
198 freesdp/*.o freesdp/*.a freesdp/*~ |
2311 | 199 |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17354
diff
changeset
|
200 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17354
diff
changeset
|
201 rm -f .depend test |
2311 | 202 |
203 dep: depend | |
204 | |
205 depend: | |
206 $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend | |
207 | |
208 # | |
209 # include dependency files if they exist | |
210 # | |
211 ifneq ($(wildcard .depend),) | |
212 include .depend | |
213 endif |