Mercurial > mplayer.hg
annotate libmpdemux/Makefile @ 9873:480bfff4804c
Reapplied the patch that I had originally made in revision 1.53.
(Someone apparently overlooked it when they checked in a subsequent patch)
author | rsf |
---|---|
date | Mon, 07 Apr 2003 20:41:24 +0000 |
parents | 1446c04b558d |
children | e578e4375434 |
rev | line source |
---|---|
2311 | 1 |
2 LIBNAME = libmpdemux.a | |
3 | |
4 include ../config.mak | |
5 | |
9854 | 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 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 |
8528 | 7 ifeq ($(XMMS_PLUGINS),yes) |
8 SRCS += demux_xmms.c | |
9 endif | |
2311 | 10 ifeq ($(STREAMING),yes) |
8570 | 11 SRCS += asf_streaming.c url.c http.c network.c asf_mmst_streaming.c pnm.c |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
12 ifeq ($(STREAMING_LIVE_DOT_COM),yes) |
9250 | 13 CPLUSPLUSSRCS = demux_rtp.cpp demux_rtp_codec.cpp |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
14 CPLUSPLUSINCLUDE = -I$(LIVE_LIB_DIR)/liveMedia/include |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
15 CPLUSPLUSINCLUDE += -I$(LIVE_LIB_DIR)/UsageEnvironment/include |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
16 CPLUSPLUSINCLUDE += -I$(LIVE_LIB_DIR)/BasicUsageEnvironment/include |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
17 CPLUSPLUSINCLUDE += -I$(LIVE_LIB_DIR)/groupsock/include |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
18 else |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
19 SRCS += rtp.c |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
20 endif |
2311 | 21 endif |
22 | |
9610 | 23 ifeq ($(DVBIN),yes) |
24 SRCS += dvbin.c | |
25 SRCS += dvb_tune.c | |
26 endif | |
27 | |
28 | |
29 | |
30 | |
2311 | 31 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
|
32 OBJS += $(CPLUSPLUSSRCS:.cpp=.o) |
2466
451426046a14
CSS_INC include flags are now needed in libmpdemux, to compile dvdauth.c
jkeil
parents:
2322
diff
changeset
|
33 INCLUDE = -I../loader $(CSS_INC) $(EXTRA_INC) |
8608
677d4443af55
just quells warnings in the ".depends" generation phase.
arpi
parents:
8585
diff
changeset
|
34 CFLAGS = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS) $(CDPARANOIA_INC) |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
35 CPLUSPLUSFLAGS = $(CFLAGS) $(CPLUSPLUSINCLUDE) |
7168
cb1428dd4d79
assume $(CC) can compile c++ - fixes compile with non-default compiler
arpi
parents:
7148
diff
changeset
|
36 CPLUSPLUS = $(CC) |
2311 | 37 |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
38 .SUFFIXES: .c .cpp .o |
2311 | 39 |
40 # .PHONY: all clean | |
41 | |
42 all: $(LIBNAME) | |
43 | |
44 .c.o: | |
45 $(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
|
46 .cpp.o: |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
47 $(CPLUSPLUS) -c $(CPLUSPLUSFLAGS) -o $@ $< |
2311 | 48 |
49 $(LIBNAME): $(OBJS) | |
50 $(AR) r $(LIBNAME) $(OBJS) | |
51 | |
52 test: $(LIBNAME) test.c | |
9754 | 53 $(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 | 54 |
55 clean: | |
56 rm -f *.o *.a *~ | |
57 | |
58 distclean: | |
59 rm -f test Makefile.bak *.o *.a *~ .depend | |
60 | |
61 dep: depend | |
62 | |
63 depend: | |
64 $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend | |
65 | |
66 # | |
67 # include dependency files if they exist | |
68 # | |
69 ifneq ($(wildcard .depend),) | |
70 include .depend | |
71 endif |