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