Mercurial > mplayer.hg
annotate libmpdemux/Makefile @ 17031:da7759ed81be
sync with 1.1159
author | gpoirier |
---|---|
date | Tue, 22 Nov 2005 17:36:00 +0000 |
parents | 56a5f69e9b35 |
children | 6ac0b5f0d1ed |
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_dvd.c \ | |
35 stream_file.c \ | |
36 stream_ftp.c \ | |
37 stream_livedotcom.c \ | |
38 stream_netstream.c \ | |
39 stream_null.c \ | |
40 stream_smb.c \ | |
41 stream_vcd.c \ | |
42 stream_vstream.c \ | |
43 | |
44 # TV in | |
45 SRCS += tv.c \ | |
46 frequencies.c \ | |
47 tvi_bsdbt848.c \ | |
48 tvi_dummy.c \ | |
49 tvi_v4l2.c \ | |
50 tvi_v4l.c \ | |
51 | |
52 # Audio in | |
53 SRCS += audio_in.c \ | |
54 ai_alsa1x.c \ | |
55 ai_alsa.c \ | |
56 ai_oss.c \ | |
57 | |
58 # Demuxers | |
59 SRCS += demuxer.c \ | |
60 demux_aac.c \ | |
61 demux_asf.c \ | |
62 demux_audio.c \ | |
63 demux_avi.c \ | |
64 demux_demuxers.c \ | |
65 demux_film.c \ | |
66 demux_fli.c \ | |
67 demux_gif.c \ | |
68 demux_lavf.c \ | |
69 demux_lmlm4.c \ | |
70 demux_mf.c \ | |
71 demux_mov.c \ | |
15958
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15772
diff
changeset
|
72 demux_mpc.c \ |
15772 | 73 demux_mpg.c \ |
74 demux_nsv.c \ | |
75 demux_nuv.c \ | |
76 demux_ogg.c \ | |
77 demux_pva.c \ | |
78 demux_rawaudio.c \ | |
79 demux_rawdv.c \ | |
80 demux_rawvideo.c \ | |
81 demux_realaud.c \ | |
82 demux_real.c \ | |
83 demux_roq.c \ | |
84 demux_smjpeg.c \ | |
85 demux_ts.c \ | |
86 demux_ty.c \ | |
87 demux_ty_osd.c \ | |
88 demux_viv.c \ | |
89 demux_vqf.c \ | |
90 demux_y4m.c \ | |
91 | |
8528 | 92 ifeq ($(XMMS_PLUGINS),yes) |
93 SRCS += demux_xmms.c | |
94 endif | |
15772 | 95 ifneq ($(W32_LIB),) |
96 SRCS += demux_avs.c | |
97 endif | |
98 ifeq ($(MATROSKA),yes) | |
99 SRCS += demux_mkv.c ebml.c | |
100 endif | |
101 | |
102 # Muxers | |
103 SRCS += muxer.c \ | |
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 |
15772 | 118 SRCS += muxer_lavf.c |
119 endif | |
120 | |
10121
d42177a0da2a
Changed the STREAMING defines to MPLAYER_NETWORK to avoid name definition clash.
bertrand
parents:
10057
diff
changeset
|
121 ifeq ($(MPLAYER_NETWORK),yes) |
15772 | 122 SRCS += asf_streaming.c \ |
123 http.c \ | |
124 network.c \ | |
125 cookies.c \ | |
126 asf_mmst_streaming.c \ | |
127 pnm.c \ | |
128 rtp.c \ | |
129 | |
130 SRCS += realrtsp/asmrp.c \ | |
131 realrtsp/real.c \ | |
132 realrtsp/rmff.c \ | |
133 realrtsp/rtsp.c \ | |
134 realrtsp/rtsp_session.c \ | |
135 realrtsp/sdpplin.c \ | |
136 realrtsp/xbuffer.c \ | |
137 | |
16572
56a5f69e9b35
"LIVE.COM Streaming Media" is now called "LIVE555 Streaming Media".
rsf
parents:
16165
diff
changeset
|
138 ifeq ($(STREAMING_LIVE555),yes) |
9250 | 139 CPLUSPLUSSRCS = demux_rtp.cpp demux_rtp_codec.cpp |
13997 | 140 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
|
141 endif |
2311 | 142 endif |
143 | |
9610 | 144 ifeq ($(DVBIN),yes) |
145 SRCS += dvbin.c | |
146 SRCS += dvb_tune.c | |
147 endif | |
148 | |
2311 | 149 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
|
150 OBJS += $(CPLUSPLUSSRCS:.cpp=.o) |
13787
e047e70a9767
Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.
diego
parents:
12958
diff
changeset
|
151 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
|
152 CFLAGS = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS) $(CDPARANOIA_INC) $(DVB_INC) |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
153 CPLUSPLUSFLAGS = $(CFLAGS) $(CPLUSPLUSINCLUDE) |
7168
cb1428dd4d79
assume $(CC) can compile c++ - fixes compile with non-default compiler
arpi
parents:
7148
diff
changeset
|
154 CPLUSPLUS = $(CC) |
2311 | 155 |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
156 .SUFFIXES: .c .cpp .o |
2311 | 157 |
158 # .PHONY: all clean | |
159 | |
160 all: $(LIBNAME) | |
161 | |
162 .c.o: | |
163 $(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
|
164 .cpp.o: |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
165 $(CPLUSPLUS) -c $(CPLUSPLUSFLAGS) -o $@ $< |
2311 | 166 |
167 $(LIBNAME): $(OBJS) | |
168 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 169 $(RANLIB) $(LIBNAME) |
2311 | 170 |
171 test: $(LIBNAME) test.c | |
9754 | 172 $(CC) $(CFLAGS) test.c ../mp_msg.c ../osdep/shmem.c -o test ./libmpdemux.a ../libmpdvdkit2/libmpdvdkit.a ../libvo/aclib.o ../libmpcodecs/img_format.o ../libao2/afmt.o ../sub_cc.o ../m_option.o ../subreader.o $(ALSA_LIB) $(VORBIS_LIB) $(CDPARANOIA_LIB) -lz -lpthread |
2311 | 173 |
174 clean: | |
10057
d1f55b76ef2c
Made sure to clean out the "realrtsp" subdirectory when doing a "make clean"
rsf
parents:
10033
diff
changeset
|
175 rm -f *.o *.a *~ realrtsp/*.o realrtsp/*.a realrtsp/*~ |
2311 | 176 |
177 distclean: | |
10057
d1f55b76ef2c
Made sure to clean out the "realrtsp" subdirectory when doing a "make clean"
rsf
parents:
10033
diff
changeset
|
178 rm -f test Makefile.bak *.o *.a *~ realrtsp/*.o realrtsp/*.a realrtsp/*~ .depend |
2311 | 179 |
180 dep: depend | |
181 | |
182 depend: | |
183 $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend | |
184 | |
185 # | |
186 # include dependency files if they exist | |
187 # | |
188 ifneq ($(wildcard .depend),) | |
189 include .depend | |
190 endif |