Get rid of code I neither know nor use anymore.
[mplayer/glamo.git] / stream / Makefile
blob144f3488fde40795388a129c96afb20debc3f89c
2 LIBNAME = stream.a
4 include ../config.mak
6 # Core
7 SRCS += open.c \
8 url.c \
10 ifeq ($(STREAM_CACHE),yes)
11 SRCS += cache2.c
12 endif
14 ifeq ($(CDDA),yes)
15 SRCS += stream_cdda.c cdinfo.c
16 ifeq ($(MPLAYER_NETWORK),yes)
17 SRCS += stream_cddb.c
18 endif
19 endif
21 # Stream readers/writers
22 SRCS += stream.c \
23 stream_cue.c \
24 stream_file.c \
25 stream_mf.c \
26 stream_null.c \
28 ifeq ($(HAVE_DVD),yes)
29 SRCS += stream_dvd.c
30 endif
31 ifeq ($(DVDNAV),yes)
32 SRCS += stream_dvdnav.c
33 endif
34 ifeq ($(VCD),yes)
35 SRCS += stream_vcd.c
36 endif
37 ifeq ($(FTP),yes)
38 SRCS += stream_ftp.c
39 endif
40 ifeq ($(LIBSMBCLIENT),yes)
41 SRCS += stream_smb.c
42 endif
43 ifeq ($(MPLAYER_NETWORK),yes)
44 SRCS += stream_netstream.c
45 ifeq ($(STREAMING_LIVE555),yes)
46 SRCS += stream_livedotcom.c
47 endif
48 endif
49 ifeq ($(VSTREAM),yes)
50 SRCS += stream_vstream.c
51 endif
53 # TV in
54 ifeq ($(TV),yes)
55 SRCS += stream_tv.c tv.c frequencies.c tvi_dummy.c
56 ifeq ($(TV_BSDBT848),yes)
57 SRCS += tvi_bsdbt848.c
58 endif
59 ifeq ($(TV_V4L2),yes)
60 SRCS += tvi_v4l2.c audio_in.c
61 ifeq ($(PVR),yes)
62 SRCS += stream_pvr.c
63 endif
64 endif
65 ifeq ($(TV_V4L1),yes)
66 SRCS += tvi_v4l.c audio_in.c
67 endif
68 ifeq ($(TV_V4L),yes)
69 ifeq ($(ALSA1X),yes)
70 SRCS += ai_alsa1x.c
71 endif
72 ifeq ($(ALSA9),yes)
73 SRCS += ai_alsa.c
74 endif
75 ifeq ($(OSS),yes)
76 SRCS += ai_oss.c
77 endif
78 endif
79 endif
81 # Radio in
82 ifeq ($(RADIO),yes)
83 SRCS += stream_radio.c
84 ifeq ($(RADIO_CAPTURE),yes)
85 SRCS += audio_in.c
86 ifeq ($(ALSA1X),yes)
87 SRCS += ai_alsa1x.c
88 endif
89 ifeq ($(ALSA9),yes)
90 SRCS += ai_alsa.c
91 endif
92 ifeq ($(OSS),yes)
93 SRCS += ai_oss.c
94 endif
95 endif
96 endif
98 ifeq ($(MPLAYER_NETWORK),yes)
99 SRCS += asf_streaming.c \
100 http.c \
101 network.c \
102 cookies.c \
103 asf_mmst_streaming.c \
104 pnm.c \
105 rtp.c \
106 udp.c \
107 tcp.c \
108 stream_rtsp.c \
109 stream_rtp.c \
110 stream_udp.c \
112 SRCS += realrtsp/asmrp.c \
113 realrtsp/real.c \
114 realrtsp/rmff.c \
115 realrtsp/sdpplin.c \
116 realrtsp/xbuffer.c \
118 SRCS += librtsp/rtsp.c \
119 librtsp/rtsp_rtp.c \
120 librtsp/rtsp_session.c \
122 SRCS += freesdp/common.c \
123 freesdp/errorlist.c \
124 freesdp/parser.c \
126 endif
128 ifeq ($(DVBIN),yes)
129 SRCS += stream_dvb.c
130 SRCS += dvb_tune.c
131 endif
133 OBJS = $(SRCS:.c=.o)
134 INCLUDE = -I.. -I../loader $(LIBAV_INC)
135 CFLAGS = $(INCLUDE) $(OPTFLAGS)
137 .SUFFIXES: .c .o
139 # .PHONY: all clean
141 all: $(LIBNAME)
143 .c.o:
144 $(CC) -c $(CFLAGS) -o $@ $<
146 $(LIBNAME): $(OBJS)
147 $(AR) r $(LIBNAME) $(OBJS)
148 $(RANLIB) $(LIBNAME)
150 clean:
151 rm -f *.o *.a *~ \
152 realrtsp/*.o realrtsp/*.a realrtsp/*~ \
153 librtsp/*.o librtsp/*.a librtsp/*~ \
154 freesdp/*.o freesdp/*.a freesdp/*~
156 distclean: clean
157 rm -f .depend
159 dep: depend
161 depend:
162 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
165 # include dependency files if they exist
167 ifneq ($(wildcard .depend),)
168 include .depend
169 endif