Mercurial > mplayer.hg
annotate libmpdemux/Makefile @ 15816:5aa87072ef31
set HAVE_LRINTF and C99/GNU_SOURCE during internal FAAD compile test
author | henry |
---|---|
date | Sat, 25 Jun 2005 18:33:44 +0000 |
parents | d3d30585a9d2 |
children | 087142ef3a2d |
rev | line source |
---|---|
2311 | 1 |
2 LIBNAME = libmpdemux.a | |
3 | |
4 include ../config.mak | |
5 | |
15772 | 6 # Headers and header-dumpers |
7 SRCS = mp3_hdr.c \ | |
8 mpeg_hdr.c \ | |
9 asfheader.c \ | |
10 aviheader.c \ | |
11 aviprint.c \ | |
12 | |
13 # Core | |
14 SRCS += cache2.c \ | |
15 extension.c \ | |
16 mf.c \ | |
17 open.c \ | |
18 url.c \ | |
19 video.c \ | |
20 | |
21 # Miscellaneous | |
22 SRCS += cdda.c \ | |
23 cddb.c \ | |
24 cdinfo.c \ | |
25 cue_read.c \ | |
26 dvdnav_stream.c \ | |
27 parse_es.c \ | |
28 parse_mp4.c \ | |
29 yuv4mpeg.c \ | |
30 yuv4mpeg_ratio.c \ | |
31 | |
32 # Stream readers/writers | |
33 SRCS += stream.c \ | |
34 stream_dvd.c \ | |
35 stream_file.c \ | |
36 stream_ftp.c \ | |
37 stream_livedotcom.c \ | |
38 stream_netstream.c \ | |
39 stream_null.c \ | |
40 stream_smb.c \ | |
41 stream_vcd.c \ | |
42 stream_vstream.c \ | |
43 | |
44 # TV in | |
45 SRCS += tv.c \ | |
46 frequencies.c \ | |
47 tvi_bsdbt848.c \ | |
48 tvi_dummy.c \ | |
49 tvi_v4l2.c \ | |
50 tvi_v4l.c \ | |
51 | |
52 # Audio in | |
53 SRCS += audio_in.c \ | |
54 ai_alsa1x.c \ | |
55 ai_alsa.c \ | |
56 ai_oss.c \ | |
57 | |
58 # Demuxers | |
59 SRCS += demuxer.c \ | |
60 demux_aac.c \ | |
61 demux_asf.c \ | |
62 demux_audio.c \ | |
63 demux_avi.c \ | |
64 demux_demuxers.c \ | |
65 demux_film.c \ | |
66 demux_fli.c \ | |
67 demux_gif.c \ | |
68 demux_lavf.c \ | |
69 demux_lmlm4.c \ | |
70 demux_mf.c \ | |
71 demux_mov.c \ | |
72 demux_mpg.c \ | |
73 demux_nsv.c \ | |
74 demux_nuv.c \ | |
75 demux_ogg.c \ | |
76 demux_pva.c \ | |
77 demux_rawaudio.c \ | |
78 demux_rawdv.c \ | |
79 demux_rawvideo.c \ | |
80 demux_realaud.c \ | |
81 demux_real.c \ | |
82 demux_roq.c \ | |
83 demux_smjpeg.c \ | |
84 demux_ts.c \ | |
85 demux_ty.c \ | |
86 demux_ty_osd.c \ | |
87 demux_viv.c \ | |
88 demux_vqf.c \ | |
89 demux_y4m.c \ | |
90 | |
8528 | 91 ifeq ($(XMMS_PLUGINS),yes) |
92 SRCS += demux_xmms.c | |
93 endif | |
15772 | 94 ifneq ($(W32_LIB),) |
95 SRCS += demux_avs.c | |
96 endif | |
97 ifeq ($(MATROSKA),yes) | |
98 SRCS += demux_mkv.c ebml.c | |
99 endif | |
100 | |
101 # Muxers | |
102 SRCS += muxer.c \ | |
103 muxer_avi.c \ | |
104 muxer_mpeg.c \ | |
105 muxer_rawaudio.c \ | |
106 muxer_rawvideo.c \ | |
107 | |
108 ifeq ($(CONFIG_LIBAVFORMAT),yes) | |
109 LIBAV_INC = -I../libavcodec -I../libavformat | |
110 SRCS += muxer_lavf.c | |
111 endif | |
112 | |
10121
d42177a0da2a
Changed the STREAMING defines to MPLAYER_NETWORK to avoid name definition clash.
bertrand
parents:
10057
diff
changeset
|
113 ifeq ($(MPLAYER_NETWORK),yes) |
15772 | 114 SRCS += asf_streaming.c \ |
115 http.c \ | |
116 network.c \ | |
117 cookies.c \ | |
118 asf_mmst_streaming.c \ | |
119 pnm.c \ | |
120 rtp.c \ | |
121 | |
122 SRCS += realrtsp/asmrp.c \ | |
123 realrtsp/real.c \ | |
124 realrtsp/rmff.c \ | |
125 realrtsp/rtsp.c \ | |
126 realrtsp/rtsp_session.c \ | |
127 realrtsp/sdpplin.c \ | |
128 realrtsp/xbuffer.c \ | |
129 | |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
130 ifeq ($(STREAMING_LIVE_DOT_COM),yes) |
9250 | 131 CPLUSPLUSSRCS = demux_rtp.cpp demux_rtp_codec.cpp |
13997 | 132 CPLUSPLUSINCLUDE = $(LIVE_INCLUDES) |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
133 endif |
2311 | 134 endif |
135 | |
9610 | 136 ifeq ($(DVBIN),yes) |
137 SRCS += dvbin.c | |
138 SRCS += dvb_tune.c | |
139 endif | |
140 | |
2311 | 141 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
|
142 OBJS += $(CPLUSPLUSSRCS:.cpp=.o) |
13787
e047e70a9767
Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.
diego
parents:
12958
diff
changeset
|
143 INCLUDE = -I.. -I../loader $(CSS_INC) $(EXTRA_INC) $(LIBAV_INC) |
10651
efb6dcac967d
--dvbincdir support by Gotz Waschk <waschk@informatik.uni-rostock.de>
alex
parents:
10634
diff
changeset
|
144 CFLAGS = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS) $(CDPARANOIA_INC) $(DVB_INC) |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
145 CPLUSPLUSFLAGS = $(CFLAGS) $(CPLUSPLUSINCLUDE) |
7168
cb1428dd4d79
assume $(CC) can compile c++ - fixes compile with non-default compiler
arpi
parents:
7148
diff
changeset
|
146 CPLUSPLUS = $(CC) |
2311 | 147 |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
148 .SUFFIXES: .c .cpp .o |
2311 | 149 |
150 # .PHONY: all clean | |
151 | |
152 all: $(LIBNAME) | |
153 | |
154 .c.o: | |
155 $(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
|
156 .cpp.o: |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
157 $(CPLUSPLUS) -c $(CPLUSPLUSFLAGS) -o $@ $< |
2311 | 158 |
159 $(LIBNAME): $(OBJS) | |
160 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 161 $(RANLIB) $(LIBNAME) |
2311 | 162 |
163 test: $(LIBNAME) test.c | |
9754 | 164 $(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 | 165 |
166 clean: | |
10057
d1f55b76ef2c
Made sure to clean out the "realrtsp" subdirectory when doing a "make clean"
rsf
parents:
10033
diff
changeset
|
167 rm -f *.o *.a *~ realrtsp/*.o realrtsp/*.a realrtsp/*~ |
2311 | 168 |
169 distclean: | |
10057
d1f55b76ef2c
Made sure to clean out the "realrtsp" subdirectory when doing a "make clean"
rsf
parents:
10033
diff
changeset
|
170 rm -f test Makefile.bak *.o *.a *~ realrtsp/*.o realrtsp/*.a realrtsp/*~ .depend |
2311 | 171 |
172 dep: depend | |
173 | |
174 depend: | |
175 $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend | |
176 | |
177 # | |
178 # include dependency files if they exist | |
179 # | |
180 ifneq ($(wildcard .depend),) | |
181 include .depend | |
182 endif |