From 2a86b5b99eb5121b5aea0459314bffd2cbc54ef1 Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 27 Nov 2006 13:42:36 +0000 Subject: FFmpeg-style dependency declaration git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21325 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/Makefile | 147 ++++++++++++++++++++------------------------------------ 1 file changed, 51 insertions(+), 96 deletions(-) (limited to 'stream') diff --git a/stream/Makefile b/stream/Makefile index be3f6a4361..b6a080ea37 100644 --- a/stream/Makefile +++ b/stream/Makefile @@ -11,107 +11,62 @@ SRCS += open.c \ stream_null.c \ url.c \ -ifeq ($(STREAM_CACHE),yes) -SRCS += cache2.c -endif +SRCS-$(CDDA) += stream_cdda.c cdinfo.c +SRCS-$(DVBIN) += dvb_tune.c stream_dvb.c +SRCS-$(DVDNAV) += stream_dvdnav.c +SRCS-$(DVDREAD) += stream_dvd.c +SRCS-$(FTP) += stream_ftp.c +SRCS-$(LIBSMBCLIENT) += stream_smb.c +SRCS-$(MPLAYER_NETWORK) += stream_netstream.c \ + asf_mmst_streaming.c \ + asf_streaming.c \ + cookies.c \ + http.c \ + network.c \ + pnm.c \ + rtp.c \ + udp.c \ + tcp.c \ + stream_rtp.c \ + stream_rtsp.c \ + stream_udp.c \ + freesdp/common.c \ + freesdp/errorlist.c \ + freesdp/parser.c \ + librtsp/rtsp.c \ + librtsp/rtsp_rtp.c \ + librtsp/rtsp_session.c \ + realrtsp/asmrp.c \ + realrtsp/real.c \ + realrtsp/rmff.c \ + realrtsp/sdpplin.c \ + realrtsp/xbuffer.c \ + +SRCS-$(PVR) += stream_pvr.c +SRCS-$(RADIO) += stream_radio.c +SRCS-$(RADIO_CAPTURE) += audio_in.c +SRCS-$(STREAM_CACHE) += cache2.c +SRCS-$(STREAMING_LIVE555) += stream_livedotcom.c +SRCS-$(TV) += stream_tv.c tv.c frequencies.c tvi_dummy.c +SRCS-$(TV_BSDBT848) += tvi_bsdbt848.c +SRCS-$(TV_V4L1) += tvi_v4l.c audio_in.c +SRCS-$(TV_V4L2) += tvi_v4l2.c audio_in.c +SRCS-$(VCD) += stream_vcd.c +SRCS-$(VSTREAM) += stream_vstream.c + +#FIXME: These should have variables assigned in configure. ifeq ($(CDDA),yes) -SRCS += stream_cdda.c cdinfo.c - ifeq ($(MPLAYER_NETWORK),yes) - SRCS += stream_cddb.c - endif -endif -ifeq ($(DVDREAD),yes) -SRCS += stream_dvd.c -endif -ifeq ($(DVDNAV),yes) -SRCS += stream_dvdnav.c -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 -endif -ifeq ($(STREAMING_LIVE555),yes) -SRCS += stream_livedotcom.c -endif -ifeq ($(VSTREAM),yes) -SRCS += stream_vstream.c -endif -ifeq ($(TV),yes) -SRCS += stream_tv.c tv.c frequencies.c tvi_dummy.c -endif -ifeq ($(TV_BSDBT848),yes) -SRCS += tvi_bsdbt848.c -endif -ifeq ($(TV_V4L2),yes) -SRCS += tvi_v4l2.c audio_in.c -endif -ifeq ($(PVR),yes) -SRCS += stream_pvr.c -endif -ifeq ($(TV_V4L1),yes) -SRCS += tvi_v4l.c audio_in.c +SRCS-$(MPLAYER_NETWORK) += stream_cddb.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 -ifeq ($(RADIO),yes) -SRCS += stream_radio.c +SRCS-$(ALSA1X) += ai_alsa1x.c +SRCS-$(ALSA9) += ai_alsa.c +SRCS-$(OSS) += ai_oss.c endif 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 -ifeq ($(MPLAYER_NETWORK),yes) -SRCS += asf_mmst_streaming.c \ - asf_streaming.c \ - cookies.c \ - http.c \ - network.c \ - pnm.c \ - rtp.c \ - udp.c \ - tcp.c \ - stream_rtsp.c \ - stream_rtp.c \ - stream_udp.c \ - freesdp/common.c \ - freesdp/errorlist.c \ - freesdp/parser.c \ - librtsp/rtsp.c \ - librtsp/rtsp_rtp.c \ - librtsp/rtsp_session.c \ - realrtsp/asmrp.c \ - realrtsp/real.c \ - realrtsp/rmff.c \ - realrtsp/sdpplin.c \ - realrtsp/xbuffer.c \ -endif -ifeq ($(DVBIN),yes) -SRCS += dvb_tune.c stream_dvb.c +SRCS-$(ALSA1X) += ai_alsa1x.c +SRCS-$(ALSA9) += ai_alsa.c +SRCS-$(OSS) += ai_oss.c endif CFLAGS = -I../loader -- cgit v1.2.3