2006-07-31 17:39:17 +00:00
|
|
|
|
|
|
|
LIBNAME = stream.a
|
|
|
|
|
|
|
|
include ../config.mak
|
|
|
|
|
|
|
|
# Core
|
2006-08-03 19:31:36 +00:00
|
|
|
SRCS += open.c \
|
2006-07-31 17:39:17 +00:00
|
|
|
url.c \
|
|
|
|
|
|
|
|
ifeq ($(STREAM_CACHE),yes)
|
|
|
|
SRCS += cache2.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CDDA),yes)
|
2006-08-02 11:22:11 +00:00
|
|
|
SRCS += stream_cdda.c cdinfo.c
|
2006-07-31 17:39:17 +00:00
|
|
|
ifeq ($(MPLAYER_NETWORK),yes)
|
2006-07-31 17:48:50 +00:00
|
|
|
SRCS += stream_cddb.c
|
2006-07-31 17:39:17 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Stream readers/writers
|
|
|
|
SRCS += stream.c \
|
2006-08-03 19:25:16 +00:00
|
|
|
stream_cue.c \
|
2006-07-31 17:39:17 +00:00
|
|
|
stream_file.c \
|
2006-08-03 19:43:02 +00:00
|
|
|
stream_mf.c \
|
2006-07-31 17:39:17 +00:00
|
|
|
stream_null.c \
|
|
|
|
|
|
|
|
ifeq ($(HAVE_DVD),yes)
|
|
|
|
SRCS += stream_dvd.c
|
|
|
|
endif
|
|
|
|
ifeq ($(DVDNAV),yes)
|
2006-08-03 20:44:14 +00:00
|
|
|
SRCS += stream_dvdnav.c
|
2006-07-31 17:39:17 +00:00
|
|
|
endif
|
|
|
|
ifeq ($(VCD),yes)
|
|
|
|
SRCS += stream_vcd.c
|
|
|
|
endif
|
|
|
|
ifeq ($(FTP),yes)
|
|
|
|
SRCS += stream_ftp.c
|
|
|
|
endif
|
|
|
|
ifeq ($(LIBSMBCLIENT),yes)
|
|
|
|
SRCS += stream_smb.c
|
|
|
|
endif
|
|
|
|
ifeq ($(MPLAYER_NETWORK),yes)
|
|
|
|
SRCS += stream_netstream.c
|
|
|
|
ifeq ($(STREAMING_LIVE555),yes)
|
|
|
|
SRCS += stream_livedotcom.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(VSTREAM),yes)
|
|
|
|
SRCS += stream_vstream.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
# TV in
|
|
|
|
ifeq ($(TV),yes)
|
2006-07-31 18:36:29 +00:00
|
|
|
SRCS += stream_tv.c tv.c frequencies.c tvi_dummy.c
|
2006-07-31 17:39:17 +00:00
|
|
|
ifeq ($(TV_BSDBT848),yes)
|
|
|
|
SRCS += tvi_bsdbt848.c
|
|
|
|
endif
|
|
|
|
ifeq ($(TV_V4L2),yes)
|
|
|
|
SRCS += tvi_v4l2.c audio_in.c
|
|
|
|
ifeq ($(PVR),yes)
|
|
|
|
SRCS += stream_pvr.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(TV_V4L1),yes)
|
|
|
|
SRCS += tvi_v4l.c audio_in.c
|
|
|
|
endif
|
|
|
|
ifeq ($(TV_V4L),yes)
|
|
|
|
ifeq ($(ALSA1X),yes)
|
|
|
|
SRCS += ai_alsa1x.c
|
|
|
|
endif
|
|
|
|
ifeq ($(ALSA9),yes)
|
|
|
|
SRCS += ai_alsa.c
|
|
|
|
endif
|
|
|
|
ifeq ($(OSS),yes)
|
|
|
|
SRCS += ai_oss.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-08-28 17:05:18 +00:00
|
|
|
# Radio in
|
|
|
|
ifeq ($(RADIO),yes)
|
|
|
|
SRCS += stream_radio.c
|
|
|
|
ifeq ($(RADIO_CAPTURE),yes)
|
|
|
|
SRCS += audio_in.c
|
|
|
|
ifeq ($(ALSA1X),yes)
|
|
|
|
SRCS += ai_alsa1x.c
|
|
|
|
endif
|
|
|
|
ifeq ($(ALSA9),yes)
|
|
|
|
SRCS += ai_alsa.c
|
|
|
|
endif
|
|
|
|
ifeq ($(OSS),yes)
|
|
|
|
SRCS += ai_oss.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-07-31 17:39:17 +00:00
|
|
|
ifeq ($(MPLAYER_NETWORK),yes)
|
|
|
|
SRCS += asf_streaming.c \
|
|
|
|
http.c \
|
|
|
|
network.c \
|
|
|
|
cookies.c \
|
|
|
|
asf_mmst_streaming.c \
|
|
|
|
pnm.c \
|
|
|
|
rtp.c \
|
2006-08-04 19:31:53 +00:00
|
|
|
udp.c \
|
2006-08-05 10:30:06 +00:00
|
|
|
tcp.c \
|
2006-07-31 17:39:17 +00:00
|
|
|
stream_rtsp.c \
|
2006-08-04 18:32:36 +00:00
|
|
|
stream_rtp.c \
|
|
|
|
stream_udp.c \
|
2006-07-31 17:39:17 +00:00
|
|
|
|
|
|
|
SRCS += realrtsp/asmrp.c \
|
|
|
|
realrtsp/real.c \
|
|
|
|
realrtsp/rmff.c \
|
|
|
|
realrtsp/sdpplin.c \
|
|
|
|
realrtsp/xbuffer.c \
|
|
|
|
|
|
|
|
SRCS += librtsp/rtsp.c \
|
|
|
|
librtsp/rtsp_rtp.c \
|
|
|
|
librtsp/rtsp_session.c \
|
|
|
|
|
|
|
|
SRCS += freesdp/common.c \
|
|
|
|
freesdp/errorlist.c \
|
|
|
|
freesdp/parser.c \
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(DVBIN),yes)
|
2006-08-03 19:16:30 +00:00
|
|
|
SRCS += stream_dvb.c
|
2006-07-31 17:39:17 +00:00
|
|
|
SRCS += dvb_tune.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
2006-08-04 17:01:29 +00:00
|
|
|
INCLUDE = -I.. -I../loader $(LIBAV_INC)
|
2006-08-27 20:17:19 +00:00
|
|
|
CFLAGS = $(INCLUDE) $(OPTFLAGS)
|
2006-07-31 17:39:17 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .c .o
|
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
|
|
|
$(LIBNAME): $(OBJS)
|
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
|
|
|
$(RANLIB) $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~ \
|
|
|
|
realrtsp/*.o realrtsp/*.a realrtsp/*~ \
|
|
|
|
librtsp/*.o librtsp/*.a librtsp/*~ \
|
|
|
|
freesdp/*.o freesdp/*.a freesdp/*~
|
|
|
|
|
|
|
|
distclean: clean
|
2006-07-31 20:32:38 +00:00
|
|
|
rm -f .depend
|
2006-07-31 17:39:17 +00:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
|
|
|
depend:
|
2006-07-31 20:32:38 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
2006-07-31 17:39:17 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|