Fix:
[mplayer/glamo.git] / libmpdemux / Makefile
blobe07d747325658b4811ade14d732464c580e2a46d
2 LIBNAME = libmpdemux.a
4 include ../config.mak
6 # Headers and header-dumpers
7 SRCS = mp3_hdr.c \
8 mpeg_hdr.c \
9 asfheader.c \
10 aviheader.c \
11 aviprint.c \
13 # Core
14 SRCS += cache2.c \
15 extension.c \
16 mf.c \
17 open.c \
18 url.c \
19 video.c \
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 \
32 # Stream readers/writers
33 SRCS += stream.c \
34 stream_file.c \
35 stream_ftp.c \
36 stream_livedotcom.c \
37 stream_netstream.c \
38 stream_null.c \
39 stream_smb.c \
40 stream_vcd.c \
41 stream_vstream.c \
43 # TV in
44 SRCS += tv.c \
45 frequencies.c \
46 tvi_bsdbt848.c \
47 tvi_dummy.c \
48 tvi_v4l2.c \
49 tvi_v4l.c \
51 # Audio in
52 SRCS += audio_in.c \
53 ai_alsa1x.c \
54 ai_alsa.c \
55 ai_oss.c \
57 # Demuxers
58 SRCS += demuxer.c \
59 demux_aac.c \
60 demux_asf.c \
61 demux_audio.c \
62 demux_avi.c \
63 demux_demuxers.c \
64 demux_film.c \
65 demux_fli.c \
66 demux_gif.c \
67 demux_lmlm4.c \
68 demux_mf.c \
69 demux_mov.c \
70 demux_mpc.c \
71 demux_mpg.c \
72 demux_nsv.c \
73 demux_nuv.c \
74 demux_ogg.c \
75 demux_pva.c \
76 demux_rawaudio.c \
77 demux_rawdv.c \
78 demux_rawvideo.c \
79 demux_realaud.c \
80 demux_real.c \
81 demux_roq.c \
82 demux_smjpeg.c \
83 demux_ts.c \
84 demux_ty.c \
85 demux_ty_osd.c \
86 demux_viv.c \
87 demux_vqf.c \
88 demux_y4m.c \
89 demux_mkv.c ebml.c \
91 ifeq ($(HAVE_DVD),yes)
92 SRCS += stream_dvd.c
93 endif
94 ifeq ($(XMMS_PLUGINS),yes)
95 SRCS += demux_xmms.c
96 endif
97 ifneq ($(W32_LIB),)
98 SRCS += demux_avs.c
99 endif
101 # Muxers
102 MUXERS = muxer.c \
103 muxer_avi.c \
104 muxer_mpeg.c \
105 muxer_rawaudio.c \
106 muxer_rawvideo.c \
108 LIBAV_INC =
109 ifeq ($(CONFIG_LIBAVUTIL),yes)
110 LIBAV_INC += -I../libavutil
111 endif
112 ifeq ($(CONFIG_LIBAVCODEC),yes)
113 LIBAV_INC += -I../libavcodec
114 endif
115 ifeq ($(CONFIG_LIBAVFORMAT),yes)
116 LIBAV_INC += -I../libavformat
117 SRCS += demux_lavf.c
118 MUXERS += muxer_lavf.c
119 endif
120 ifeq ($(CONFIG_LIBAVFORMAT_SO),yes)
121 SRCS += demux_lavf.c
122 MUXERS += muxer_lavf.c
123 endif
125 ifeq ($(MPLAYER_NETWORK),yes)
126 SRCS += asf_streaming.c \
127 http.c \
128 network.c \
129 cookies.c \
130 asf_mmst_streaming.c \
131 pnm.c \
132 rtp.c \
134 SRCS += realrtsp/asmrp.c \
135 realrtsp/real.c \
136 realrtsp/rmff.c \
137 realrtsp/rtsp.c \
138 realrtsp/rtsp_session.c \
139 realrtsp/sdpplin.c \
140 realrtsp/xbuffer.c \
142 ifeq ($(STREAMING_LIVE555),yes)
143 CPLUSPLUSSRCS = demux_rtp.cpp demux_rtp_codec.cpp
144 CPLUSPLUSINCLUDE = $(LIVE_INCLUDES)
145 endif
146 endif
148 ifeq ($(DVBIN),yes)
149 SRCS += dvbin.c
150 SRCS += dvb_tune.c
151 endif
153 ifeq ($(MENCODER),yes)
154 SRCS += $(MUXERS)
155 endif
157 OBJS = $(SRCS:.c=.o)
158 OBJS += $(CPLUSPLUSSRCS:.cpp=.o)
159 INCLUDE = -I.. -I../loader $(CSS_INC) $(EXTRA_INC) $(LIBAV_INC)
160 CFLAGS = $(OPTFLAGS) $(INCLUDE) $(XMMS_CFLAGS) $(CDPARANOIA_INC) $(DVB_INC)
161 CPLUSPLUSFLAGS = $(CFLAGS) $(CPLUSPLUSINCLUDE) -D__STDC_LIMIT_MACROS
162 CPLUSPLUS = $(CC)
164 .SUFFIXES: .c .cpp .o
166 # .PHONY: all clean
168 all: $(LIBNAME)
170 .c.o:
171 $(CC) -c $(CFLAGS) -o $@ $<
172 .cpp.o:
173 $(CPLUSPLUS) -c $(CPLUSPLUSFLAGS) -o $@ $<
175 $(LIBNAME): $(OBJS)
176 $(AR) r $(LIBNAME) $(OBJS)
177 $(RANLIB) $(LIBNAME)
179 test: $(LIBNAME) test.c
180 $(CC) $(CFLAGS) test.c ../mp_msg.c ../osdep/shmem.c -o test \
181 ./libmpdemux.a ../libmpdvdkit2/libmpdvdkit.a ../libvo/aclib.o \
182 ../libmpcodecs/img_format.o ../libao2/afmt.o ../sub_cc.o \
183 ../m_option.o ../subreader.o \
184 $(ALSA_LIB) $(VORBIS_LIB) $(CDPARANOIA_LIB) -lz -lpthread
186 clean:
187 rm -f *.o *.a *~ realrtsp/*.o realrtsp/*.a realrtsp/*~
189 distclean: clean
190 rm -f .depend test
192 dep: depend
194 depend:
195 $(CC) -MM $(CFLAGS) test.c $(SRCS) 1>.depend
198 # include dependency files if they exist
200 ifneq ($(wildcard .depend),)
201 include .depend
202 endif