Mercurial > mplayer.hg
annotate libmpdemux/Makefile @ 19271:64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
author | ben |
---|---|
date | Mon, 31 Jul 2006 17:39:17 +0000 |
parents | 1ea5c31932fd |
children | 6fae24d40138 |
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 | |
18922
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
14 SRCS += extension.c \ |
15772 | 15 video.c \ |
16 | |
17 # Miscellaneous | |
19271
64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
ben
parents:
19190
diff
changeset
|
18 SRCS += parse_es.c \ |
15772 | 19 parse_mp4.c \ |
19141 | 20 mpeg_packetizer.c \ |
15772 | 21 yuv4mpeg.c \ |
22 yuv4mpeg_ratio.c \ | |
23 | |
24 # Demuxers | |
25 SRCS += demuxer.c \ | |
26 demux_aac.c \ | |
27 demux_asf.c \ | |
28 demux_audio.c \ | |
29 demux_avi.c \ | |
30 demux_demuxers.c \ | |
31 demux_film.c \ | |
32 demux_fli.c \ | |
33 demux_lmlm4.c \ | |
34 demux_mf.c \ | |
35 demux_mov.c \ | |
15958
087142ef3a2d
musepack demuxing and decoding support (demuxing is v7 bitstream only).
reimar
parents:
15772
diff
changeset
|
36 demux_mpc.c \ |
15772 | 37 demux_mpg.c \ |
38 demux_nsv.c \ | |
39 demux_nuv.c \ | |
40 demux_pva.c \ | |
41 demux_rawaudio.c \ | |
42 demux_rawvideo.c \ | |
43 demux_realaud.c \ | |
44 demux_real.c \ | |
45 demux_roq.c \ | |
46 demux_smjpeg.c \ | |
47 demux_ts.c \ | |
48 demux_ty.c \ | |
49 demux_ty_osd.c \ | |
50 demux_viv.c \ | |
51 demux_vqf.c \ | |
52 demux_y4m.c \ | |
18404 | 53 demux_mkv.c ebml.c \ |
15772 | 54 |
18922
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
55 ifeq ($(LIBVORBIS),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
56 SRCS += demux_ogg.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
57 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
58 ifeq ($(LIBDV),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
59 SRCS += demux_rawdv.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
60 endif |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
61 ifeq ($(GIF),yes) |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
62 SRCS += demux_gif.c |
d2d9d011203f
Move conditional compilation into the build system.
diego
parents:
18921
diff
changeset
|
63 endif |
8528 | 64 ifeq ($(XMMS_PLUGINS),yes) |
65 SRCS += demux_xmms.c | |
18921 | 66 endif |
15772 | 67 ifneq ($(W32_LIB),) |
68 SRCS += demux_avs.c | |
69 endif | |
70 | |
71 # Muxers | |
17538 | 72 MUXERS = muxer.c \ |
15772 | 73 muxer_avi.c \ |
74 muxer_mpeg.c \ | |
75 muxer_rawaudio.c \ | |
76 muxer_rawvideo.c \ | |
77 | |
16165 | 78 LIBAV_INC = |
79 ifeq ($(CONFIG_LIBAVUTIL),yes) | |
80 LIBAV_INC += -I../libavutil | |
81 endif | |
82 ifeq ($(CONFIG_LIBAVCODEC),yes) | |
83 LIBAV_INC += -I../libavcodec | |
84 endif | |
15772 | 85 ifeq ($(CONFIG_LIBAVFORMAT),yes) |
16165 | 86 LIBAV_INC += -I../libavformat |
17538 | 87 SRCS += demux_lavf.c |
88 MUXERS += muxer_lavf.c | |
17354 | 89 endif |
90 ifeq ($(CONFIG_LIBAVFORMAT_SO),yes) | |
17538 | 91 SRCS += demux_lavf.c |
92 MUXERS += muxer_lavf.c | |
15772 | 93 endif |
94 | |
19271
64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
ben
parents:
19190
diff
changeset
|
95 ifeq ($(MENCODER),yes) |
64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
ben
parents:
19190
diff
changeset
|
96 SRCS += $(MUXERS) |
64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
ben
parents:
19190
diff
changeset
|
97 endif |
18823
ef667dd373e2
new imported library in libmpdemux: freesdp (will be used by native rtsp demuxer)
ben
parents:
18799
diff
changeset
|
98 |
16572
56a5f69e9b35
"LIVE.COM Streaming Media" is now called "LIVE555 Streaming Media".
rsf
parents:
16165
diff
changeset
|
99 ifeq ($(STREAMING_LIVE555),yes) |
9250 | 100 CPLUSPLUSSRCS = demux_rtp.cpp demux_rtp_codec.cpp |
13997 | 101 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
|
102 endif |
17538 | 103 |
2311 | 104 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
|
105 OBJS += $(CPLUSPLUSSRCS:.cpp=.o) |
19271
64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
ben
parents:
19190
diff
changeset
|
106 INCLUDE = -I.. -I../stream -I../loader $(LIBAV_INC) |
19190 | 107 CFLAGS = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS) |
18137 | 108 CPLUSPLUSFLAGS = $(CFLAGS) $(CPLUSPLUSINCLUDE) -D__STDC_LIMIT_MACROS |
7168
cb1428dd4d79
assume $(CC) can compile c++ - fixes compile with non-default compiler
arpi
parents:
7148
diff
changeset
|
109 CPLUSPLUS = $(CC) |
2311 | 110 |
6910
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
111 .SUFFIXES: .c .cpp .o |
2311 | 112 |
113 # .PHONY: all clean | |
114 | |
115 all: $(LIBNAME) | |
116 | |
117 .c.o: | |
118 $(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
|
119 .cpp.o: |
1a747aee653b
applied live.com streaming patch (-sdp and rtsp:// support) by Ross Finlayson <finlayson@live.com>
arpi
parents:
6474
diff
changeset
|
120 $(CPLUSPLUS) -c $(CPLUSPLUSFLAGS) -o $@ $< |
2311 | 121 |
122 $(LIBNAME): $(OBJS) | |
123 $(AR) r $(LIBNAME) $(OBJS) | |
12632 | 124 $(RANLIB) $(LIBNAME) |
2311 | 125 |
126 test: $(LIBNAME) test.c | |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17538
diff
changeset
|
127 $(CC) $(CFLAGS) test.c ../mp_msg.c ../osdep/shmem.c -o test \ |
19271
64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
ben
parents:
19190
diff
changeset
|
128 ./libmpdemux.a ../stream/stream.a \ |
64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
ben
parents:
19190
diff
changeset
|
129 ../libmpdvdkit2/libmpdvdkit.a ../libvo/aclib.o \ |
17943
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17538
diff
changeset
|
130 ../libmpcodecs/img_format.o ../libao2/afmt.o ../sub_cc.o \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17538
diff
changeset
|
131 ../m_option.o ../subreader.o \ |
c127ce678083
cosmetics: Shorten overly long lines, put SRCS/OBJS on individual lines
diego
parents:
17538
diff
changeset
|
132 $(ALSA_LIB) $(VORBIS_LIB) $(CDPARANOIA_LIB) -lz -lpthread |
2311 | 133 |
134 clean: | |
19271
64d82a45a05d
introduce new 'stream' directory for all stream layer related components and split them from libmpdemux
ben
parents:
19190
diff
changeset
|
135 rm -f *.o *.a *~ |
2311 | 136 |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17354
diff
changeset
|
137 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17354
diff
changeset
|
138 rm -f .depend test |
2311 | 139 |
140 dep: depend | |
141 | |
142 depend: | |
143 $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend | |
144 | |
145 # | |
146 # include dependency files if they exist | |
147 # | |
148 ifneq ($(wildcard .depend),) | |
149 include .depend | |
150 endif |