Make protocols configure selectable and also cleanup the CONFIG_NETWORK
[libav.git] / libavformat / Makefile
CommitLineData
19720f15
FB
1#
2# libavformat Makefile
165f74ff 3# (c) 2000-2003 Fabrice Bellard
19720f15 4#
980fc7b8 5include ../config.mak
f57a4535 6
dadb850a 7CFLAGS+=-I$(SRC_PATH)/libavcodec
85f07f22 8
f71869a4 9OBJS= utils.o cutils.o os_support.o allformats.o
8b2121e3
MR
10
11HEADERS = avformat.h avio.h rtp.h rtsp.h rtspcodes.h
c9a65ca8 12
ff70e601
MR
13# muxers/demuxers
14OBJS-$(CONFIG_FOURXM_DEMUXER) += 4xm.o
15OBJS-$(CONFIG_ADTS_MUXER) += adtsenc.o
9d9f4119
MR
16OBJS-$(CONFIG_AIFF_DEMUXER) += aiff.o riff.o
17OBJS-$(CONFIG_AIFF_MUXER) += aiff.o riff.o
ff70e601
MR
18OBJS-$(CONFIG_AMR_DEMUXER) += amr.o
19OBJS-$(CONFIG_AMR_MUXER) += amr.o
8e952e4d 20OBJS-$(CONFIG_APC_DEMUXER) += apc.o
9d9f4119
MR
21OBJS-$(CONFIG_ASF_DEMUXER) += asf.o riff.o
22OBJS-$(CONFIG_ASF_MUXER) += asf-enc.o riff.o
23OBJS-$(CONFIG_ASF_STREAM_MUXER) += asf-enc.o riff.o
24OBJS-$(CONFIG_AU_DEMUXER) += au.o riff.o
25OBJS-$(CONFIG_AU_MUXER) += au.o riff.o
e011ef1a
DB
26OBJS-$(CONFIG_AUDIO_DEMUXER) += audio.o
27OBJS-$(CONFIG_AUDIO_MUXER) += audio.o
9d9f4119
MR
28OBJS-$(CONFIG_AVI_DEMUXER) += avidec.o riff.o
29OBJS-$(CONFIG_AVI_MUXER) += avienc.o riff.o
8ac17293 30OBJS-$(CONFIG_AVISYNTH) += avisynth.o
e9f36c5c 31OBJS-$(CONFIG_AVS_DEMUXER) += avs.o vocdec.o voc.o riff.o
1e6c6759 32OBJS-$(CONFIG_BETHSOFTVID_DEMUXER) += bethsoftvid.o
9a0ddd09 33OBJS-$(CONFIG_C93_DEMUXER) += c93.o
ff70e601
MR
34OBJS-$(CONFIG_CRC_MUXER) += crc.o
35OBJS-$(CONFIG_FRAMECRC_MUXER) += crc.o
36OBJS-$(CONFIG_DAUD_DEMUXER) += daud.o
621b4c4c 37OBJS-$(CONFIG_DC1394_DEMUXER) += dc1394.o
72450e50 38OBJS-$(CONFIG_DSICIN_DEMUXER) += dsicin.o
ff70e601 39OBJS-$(CONFIG_DV_DEMUXER) += dv.o
d4fc91b4 40OBJS-$(CONFIG_DV_MUXER) += dvenc.o
621b4c4c 41OBJS-$(CONFIG_DV1394_DEMUXER) += dv1394.o
33a0dd37 42OBJS-$(CONFIG_DXA_DEMUXER) += dxa.o
ff70e601
MR
43OBJS-$(CONFIG_EA_DEMUXER) += electronicarts.o
44OBJS-$(CONFIG_FFM_DEMUXER) += ffm.o
45OBJS-$(CONFIG_FFM_MUXER) += ffm.o
46OBJS-$(CONFIG_FLIC_DEMUXER) += flic.o
47OBJS-$(CONFIG_FLV_DEMUXER) += flvdec.o
48OBJS-$(CONFIG_FLV_MUXER) += flvenc.o
49OBJS-$(CONFIG_GIF_MUXER) += gif.o
50OBJS-$(CONFIG_GIF_DEMUXER) += gifdec.o
51OBJS-$(CONFIG_GXF_DEMUXER) += gxf.o
621b4c4c 52OBJS-$(CONFIG_GXF_MUXER) += gxfenc.o
ff70e601
MR
53OBJS-$(CONFIG_IDCIN_DEMUXER) += idcin.o
54OBJS-$(CONFIG_ROQ_DEMUXER) += idroq.o
55OBJS-$(CONFIG_IMAGE2_DEMUXER) += img2.o
56OBJS-$(CONFIG_IMAGE2PIPE_DEMUXER) += img2.o
57OBJS-$(CONFIG_IMAGE2_MUXER) += img2.o
58OBJS-$(CONFIG_IMAGE2PIPE_MUXER) += img2.o
ff70e601 59OBJS-$(CONFIG_IPMOVIE_DEMUXER) += ipmovie.o
9d9f4119 60OBJS-$(CONFIG_MATROSKA_DEMUXER) += matroska.o riff.o
ff70e601 61OBJS-$(CONFIG_MM_DEMUXER) += mm.o
9d9f4119
MR
62OBJS-$(CONFIG_MMF_DEMUXER) += mmf.o riff.o
63OBJS-$(CONFIG_MMF_MUXER) += mmf.o riff.o
e40ee6a2
BC
64OBJS-$(CONFIG_MOV_DEMUXER) += mov.o riff.o isom.o
65OBJS-$(CONFIG_MOV_MUXER) += movenc.o riff.o isom.o
66OBJS-$(CONFIG_TGP_MUXER) += movenc.o riff.o isom.o
67OBJS-$(CONFIG_MP4_MUXER) += movenc.o riff.o isom.o
68OBJS-$(CONFIG_PSP_MUXER) += movenc.o riff.o isom.o
69OBJS-$(CONFIG_TG2_MUXER) += movenc.o riff.o isom.o
ff70e601
MR
70OBJS-$(CONFIG_MP3_DEMUXER) += mp3.o
71OBJS-$(CONFIG_MP2_MUXER) += mp3.o
72OBJS-$(CONFIG_MP3_MUXER) += mp3.o
185c7b6b 73OBJS-$(CONFIG_MPC_DEMUXER) += mpc.o
ff70e601
MR
74OBJS-$(CONFIG_MPEG1SYSTEM_MUXER) += mpeg.o
75OBJS-$(CONFIG_MPEG1VCD_MUXER) += mpeg.o
76OBJS-$(CONFIG_MPEG2VOB_MUXER) += mpeg.o
77OBJS-$(CONFIG_MPEG2SVCD_MUXER) += mpeg.o
78OBJS-$(CONFIG_MPEG2DVD_MUXER) += mpeg.o
79OBJS-$(CONFIG_MPEGPS_DEMUXER) += mpeg.o
80OBJS-$(CONFIG_MPEGTS_DEMUXER) += mpegts.o
81OBJS-$(CONFIG_MPEGTS_MUXER) += mpegtsenc.o
82OBJS-$(CONFIG_MPJPEG_MUXER) += mpjpeg.o
bf507033 83OBJS-$(CONFIG_MTV_DEMUXER) += mtv.o
07bf2af8 84OBJS-$(CONFIG_MXF_DEMUXER) += mxf.o
9d9f4119 85OBJS-$(CONFIG_NSV_DEMUXER) += nsvdec.o riff.o
9d9f4119 86OBJS-$(CONFIG_NUV_DEMUXER) += nuv.o riff.o
ff70e601
MR
87OBJS-$(CONFIG_OGG_DEMUXER) += ogg2.o \
88 oggparsevorbis.o \
89 oggparsetheora.o \
90 oggparseflac.o \
9d9f4119
MR
91 oggparseogm.o \
92 riff.o
621b4c4c 93OBJS-$(CONFIG_OGG_MUXER) += ogg.o
ff70e601 94OBJS-$(CONFIG_STR_DEMUXER) += psxstr.o
c23a4708 95OBJS-$(CONFIG_AAC_DEMUXER) += raw.o
ff70e601
MR
96OBJS-$(CONFIG_AC3_DEMUXER) += raw.o
97OBJS-$(CONFIG_AC3_MUXER) += raw.o
98OBJS-$(CONFIG_DTS_DEMUXER) += raw.o
c23a4708
DB
99OBJS-$(CONFIG_FLAC_DEMUXER) += raw.o
100OBJS-$(CONFIG_FLAC_MUXER) += raw.o
ff70e601
MR
101OBJS-$(CONFIG_H261_DEMUXER) += raw.o
102OBJS-$(CONFIG_H261_MUXER) += raw.o
103OBJS-$(CONFIG_H263_DEMUXER) += raw.o
104OBJS-$(CONFIG_H263_MUXER) += raw.o
105OBJS-$(CONFIG_M4V_DEMUXER) += raw.o
106OBJS-$(CONFIG_M4V_MUXER) += raw.o
107OBJS-$(CONFIG_H264_DEMUXER) += raw.o
108OBJS-$(CONFIG_H264_MUXER) += raw.o
109OBJS-$(CONFIG_MPEGVIDEO_DEMUXER) += raw.o
110OBJS-$(CONFIG_MPEG1VIDEO_MUXER) += raw.o
111OBJS-$(CONFIG_MPEG2VIDEO_MUXER) += raw.o
112OBJS-$(CONFIG_MJPEG_DEMUXER) += raw.o
113OBJS-$(CONFIG_INGENIENT_DEMUXER) += raw.o
114OBJS-$(CONFIG_MJPEG_MUXER) += raw.o
c23a4708 115OBJS-$(CONFIG_NULL_MUXER) += raw.o
ff70e601
MR
116OBJS-$(CONFIG_RAWVIDEO_DEMUXER) += raw.o
117OBJS-$(CONFIG_RAWVIDEO_MUXER) += raw.o
c23a4708 118OBJS-$(CONFIG_SHORTEN_DEMUXER) += raw.o
7a7a6486 119OBJS-$(CONFIG_NUT_DEMUXER) += nutdec.o riff.o
c08fb000 120OBJS-$(CONFIG_REDIR_DEMUXER) += rtsp.o
ff70e601
MR
121OBJS-$(CONFIG_RM_DEMUXER) += rm.o
122OBJS-$(CONFIG_RM_MUXER) += rm.o
c08fb000
AB
123OBJS-$(CONFIG_RTP_MUXER) += rtp.o rtp_h264.o
124OBJS-$(CONFIG_RTSP_DEMUXER) += rtsp.o
ff70e601
MR
125OBJS-$(CONFIG_SEGAFILM_DEMUXER) += segafilm.o
126OBJS-$(CONFIG_VMD_DEMUXER) += sierravmd.o
c08fb000 127OBJS-$(CONFIG_SDP_DEMUXER) += rtsp.o
ff70e601
MR
128OBJS-$(CONFIG_SMACKER_DEMUXER) += smacker.o
129OBJS-$(CONFIG_SOL_DEMUXER) += sol.o
130OBJS-$(CONFIG_SWF_DEMUXER) += swf.o
131OBJS-$(CONFIG_SWF_MUXER) += swf.o
efb0c399 132OBJS-$(CONFIG_THP_DEMUXER) += thp.o
20cd83e2 133OBJS-$(CONFIG_TIERTEXSEQ_DEMUXER) += tiertexseq.o
ff70e601 134OBJS-$(CONFIG_TTA_DEMUXER) += tta.o
621b4c4c 135OBJS-$(CONFIG_V4L2_DEMUXER) += v4l2.o
e9f36c5c
AJ
136OBJS-$(CONFIG_VOC_DEMUXER) += vocdec.o voc.o riff.o
137OBJS-$(CONFIG_VOC_MUXER) += vocenc.o voc.o riff.o
9d9f4119
MR
138OBJS-$(CONFIG_WAV_DEMUXER) += wav.o riff.o
139OBJS-$(CONFIG_WAV_MUXER) += wav.o riff.o
ff70e601
MR
140OBJS-$(CONFIG_WC3_DEMUXER) += wc3movie.o
141OBJS-$(CONFIG_WSAUD_DEMUXER) += westwood.o
142OBJS-$(CONFIG_WSVQA_DEMUXER) += westwood.o
730581f3 143OBJS-$(CONFIG_WV_DEMUXER) += wv.o
621b4c4c 144OBJS-$(CONFIG_X11_GRAB_DEVICE_DEMUXER) += x11grab.o
ff70e601
MR
145OBJS-$(CONFIG_YUV4MPEGPIPE_MUXER) += yuv4mpeg.o
146OBJS-$(CONFIG_YUV4MPEGPIPE_DEMUXER) += yuv4mpeg.o
bc634f6f 147
7a7a6486
DB
148# external libraries
149OBJS-$(CONFIG_LIBNUT_DEMUXER) += libnut.o riff.o
150OBJS-$(CONFIG_LIBNUT_MUXER) += libnut.o riff.o
151
115329f1 152OBJS+= framehook.o
8be1c656 153
3af6d5cf
DB
154OBJS-$(CONFIG_VIDEO_GRAB_V4L_DEMUXER) += grab.o
155OBJS-$(CONFIG_VIDEO_GRAB_BKTR_DEMUXER) += grab_bktr.o
6beefa40 156
14f29f79
DB
157EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) \
158 -lavcodec$(BUILDSUF) -L$(BUILD_ROOT)/libavcodec $(EXTRALIBS)
dbbcfd6b 159
7b17ad84 160CPPOBJS-$(CONFIG_AUDIO_BEOS) += beosaudio.o
dfdfa47c 161
04f46ced
GB
162# protocols I/O
163OBJS+= avio.o aviobuf.o
164
c08fb000
AB
165OBJS-$(CONFIG_FILE_PROTOCOL) += file.o
166OBJS-$(CONFIG_HTTP_PROTOCOL) += http.o
167OBJS-$(CONFIG_PIPE_PROTOCOL) += file.o
168OBJS-$(CONFIG_RTP_PROTOCOL) += rtpproto.o
169OBJS-$(CONFIG_TCP_PROTOCOL) += tcp.o
170OBJS-$(CONFIG_UDP_PROTOCOL) += udp.o
a74127c0 171
4bdd05e7 172NAME=avformat
f3b60109
DB
173LIBVERSION=$(LAVFVERSION)
174LIBMAJOR=$(LAVFMAJOR)
6bc114b2 175
997baf01 176include ../common.mak