Real rstp:// streaming support, ported from xine
[mplayer/greg.git] / libmpdemux / Makefile
blobf96a0d6f41a024a622436edb2e105573c0a94391
2 LIBNAME = libmpdemux.a
4 include ../config.mak
6 SRCS = mp3_hdr.c video.c mpeg_hdr.c cache2.c asfheader.c aviheader.c aviprint.c muxer.c muxer_avi.c muxer_mpeg.c demux_asf.c demux_avi.c demux_mov.c parse_mp4.c demux_mpg.c demux_pva.c demux_viv.c demuxer.c dvdauth.c dvdnav_stream.c open.c parse_es.c stream.c stream_file.c stream_netstream.c stream_vcd.c stream_null.c tv.c tvi_dummy.c tvi_v4l.c tvi_bsdbt848.c frequencies.c demux_fli.c demux_real.c demux_y4m.c yuv4mpeg.c yuv4mpeg_ratio.c demux_nuv.c demux_film.c demux_roq.c mf.c demux_mf.c demux_audio.c demux_demuxers.c demux_ogg.c demux_bmp.c cdda.c demux_rawaudio.c demux_rawvideo.c cddb.c cdinfo.c demux_rawdv.c ai_alsa.c ai_oss.c audio_in.c demux_smjpeg.c cue_read.c extension.c demux_gif.c demux_ts.c
7 SRCS += realrtsp/asmrp.c realrtsp/real.c realrtsp/rmff.c realrtsp/rtsp.c realrtsp/rtsp_session.c realrtsp/sdpplin.c realrtsp/xbuffer.c
8 ifeq ($(XMMS_PLUGINS),yes)
9 SRCS += demux_xmms.c
10 endif
11 ifeq ($(STREAMING),yes)
12 SRCS += asf_streaming.c url.c http.c network.c asf_mmst_streaming.c pnm.c
13 ifeq ($(STREAMING_LIVE_DOT_COM),yes)
14 CPLUSPLUSSRCS = demux_rtp.cpp demux_rtp_codec.cpp
15 CPLUSPLUSINCLUDE = -I$(LIVE_LIB_DIR)/liveMedia/include
16 CPLUSPLUSINCLUDE += -I$(LIVE_LIB_DIR)/UsageEnvironment/include
17 CPLUSPLUSINCLUDE += -I$(LIVE_LIB_DIR)/BasicUsageEnvironment/include
18 CPLUSPLUSINCLUDE += -I$(LIVE_LIB_DIR)/groupsock/include
19 else
20 SRCS += rtp.c
21 endif
22 endif
24 ifeq ($(DVBIN),yes)
25 SRCS += dvbin.c
26 SRCS += dvb_tune.c
27 endif
32 OBJS = $(SRCS:.c=.o)
33 OBJS += $(CPLUSPLUSSRCS:.cpp=.o)
34 INCLUDE = -I../loader $(CSS_INC) $(EXTRA_INC)
35 CFLAGS = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS) $(CDPARANOIA_INC)
36 CPLUSPLUSFLAGS = $(CFLAGS) $(CPLUSPLUSINCLUDE)
37 CPLUSPLUS = $(CC)
39 .SUFFIXES: .c .cpp .o
41 # .PHONY: all clean
43 all: $(LIBNAME)
45 .c.o:
46 $(CC) -c $(CFLAGS) -o $@ $<
47 .cpp.o:
48 $(CPLUSPLUS) -c $(CPLUSPLUSFLAGS) -o $@ $<
50 $(LIBNAME): $(OBJS)
51 $(AR) r $(LIBNAME) $(OBJS)
53 test: $(LIBNAME) test.c
54 $(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
56 clean:
57 rm -f *.o *.a *~
59 distclean:
60 rm -f test Makefile.bak *.o *.a *~ .depend
62 dep: depend
64 depend:
65 $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend
68 # include dependency files if they exist
70 ifneq ($(wildcard .depend),)
71 include .depend
72 endif