Also remove versioned .so files on make clean.
[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
f130fd46
DB
7CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
8 -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 \
9 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
85f07f22 10
f71869a4 11OBJS= utils.o cutils.o os_support.o allformats.o
8b2121e3
MR
12CPPOBJS=
13
14HEADERS = avformat.h avio.h rtp.h rtsp.h rtspcodes.h
c9a65ca8 15
ff70e601
MR
16# muxers/demuxers
17OBJS-$(CONFIG_FOURXM_DEMUXER) += 4xm.o
18OBJS-$(CONFIG_ADTS_MUXER) += adtsenc.o
19OBJS-$(CONFIG_AIFF_DEMUXER) += aiff.o
20OBJS-$(CONFIG_AIFF_MUXER) += aiff.o
21OBJS-$(CONFIG_AMR_DEMUXER) += amr.o
22OBJS-$(CONFIG_AMR_MUXER) += amr.o
23OBJS-$(CONFIG_ASF_DEMUXER) += asf.o
24OBJS-$(CONFIG_ASF_MUXER) += asf-enc.o
25OBJS-$(CONFIG_ASF_STREAM_MUXER) += asf-enc.o
26OBJS-$(CONFIG_AU_DEMUXER) += au.o
27OBJS-$(CONFIG_AU_MUXER) += au.o
28OBJS-$(CONFIG_AVI_DEMUXER) += avidec.o
29OBJS-$(CONFIG_AVI_MUXER) += avienc.o
30OBJS-$(CONFIG_AVS_DEMUXER) += avs.o
31OBJS-$(CONFIG_CRC_MUXER) += crc.o
32OBJS-$(CONFIG_FRAMECRC_MUXER) += crc.o
33OBJS-$(CONFIG_DAUD_DEMUXER) += daud.o
34OBJS-$(CONFIG_DV_DEMUXER) += dv.o
35OBJS-$(CONFIG_DV_MUXER) += dv.o
36OBJS-$(CONFIG_EA_DEMUXER) += electronicarts.o
37OBJS-$(CONFIG_FFM_DEMUXER) += ffm.o
38OBJS-$(CONFIG_FFM_MUXER) += ffm.o
39OBJS-$(CONFIG_FLIC_DEMUXER) += flic.o
40OBJS-$(CONFIG_FLV_DEMUXER) += flvdec.o
41OBJS-$(CONFIG_FLV_MUXER) += flvenc.o
42OBJS-$(CONFIG_GIF_MUXER) += gif.o
43OBJS-$(CONFIG_GIF_DEMUXER) += gifdec.o
44OBJS-$(CONFIG_GXF_DEMUXER) += gxf.o
45OBJS-$(CONFIG_IDCIN_DEMUXER) += idcin.o
46OBJS-$(CONFIG_ROQ_DEMUXER) += idroq.o
47OBJS-$(CONFIG_IMAGE2_DEMUXER) += img2.o
48OBJS-$(CONFIG_IMAGE2PIPE_DEMUXER) += img2.o
49OBJS-$(CONFIG_IMAGE2_MUXER) += img2.o
50OBJS-$(CONFIG_IMAGE2PIPE_MUXER) += img2.o
51OBJS-$(CONFIG_IMAGE_DEMUXER) += img.o
52OBJS-$(CONFIG_IMAGEPIPE_DEMUXER) += img.o
53OBJS-$(CONFIG_IMAGE_MUXER) += img.o
54OBJS-$(CONFIG_IMAGEPIPE_MUXER) += img.o
55OBJS-$(CONFIG_IPMOVIE_DEMUXER) += ipmovie.o
56OBJS-$(CONFIG_MATROSKA_DEMUXER) += matroska.o
57OBJS-$(CONFIG_MM_DEMUXER) += mm.o
58OBJS-$(CONFIG_MMF_DEMUXER) += mmf.o
59OBJS-$(CONFIG_MMF_MUXER) += mmf.o
60OBJS-$(CONFIG_MOV_DEMUXER) += mov.o
61OBJS-$(CONFIG_MOV_MUXER) += movenc.o
62OBJS-$(CONFIG_TGP_MUXER) += movenc.o
63OBJS-$(CONFIG_MP4_MUXER) += movenc.o
64OBJS-$(CONFIG_PSP_MUXER) += movenc.o
65OBJS-$(CONFIG_TG2_MUXER) += movenc.o
66OBJS-$(CONFIG_MP3_DEMUXER) += mp3.o
67OBJS-$(CONFIG_MP2_MUXER) += mp3.o
68OBJS-$(CONFIG_MP3_MUXER) += mp3.o
69OBJS-$(CONFIG_MPEG1SYSTEM_MUXER) += mpeg.o
70OBJS-$(CONFIG_MPEG1VCD_MUXER) += mpeg.o
71OBJS-$(CONFIG_MPEG2VOB_MUXER) += mpeg.o
72OBJS-$(CONFIG_MPEG2SVCD_MUXER) += mpeg.o
73OBJS-$(CONFIG_MPEG2DVD_MUXER) += mpeg.o
74OBJS-$(CONFIG_MPEGPS_DEMUXER) += mpeg.o
75OBJS-$(CONFIG_MPEGTS_DEMUXER) += mpegts.o
76OBJS-$(CONFIG_MPEGTS_MUXER) += mpegtsenc.o
77OBJS-$(CONFIG_MPJPEG_MUXER) += mpjpeg.o
78OBJS-$(CONFIG_NSV_DEMUXER) += nsvdec.o
79OBJS-$(CONFIG_NUT_DEMUXER) += nut.o
80OBJS-$(CONFIG_NUT_MUXER) += nut.o
81OBJS-$(CONFIG_NUV_DEMUXER) += nuv.o
82OBJS-$(CONFIG_OGG_DEMUXER) += ogg2.o \
83 oggparsevorbis.o \
84 oggparsetheora.o \
85 oggparseflac.o \
86 oggparseogm.o
87OBJS-$(CONFIG_STR_DEMUXER) += psxstr.o
88OBJS-$(CONFIG_SHORTEN_DEMUXER) += raw.o
89OBJS-$(CONFIG_FLAC_DEMUXER) += raw.o
90OBJS-$(CONFIG_FLAC_MUXER) += raw.o
91OBJS-$(CONFIG_AC3_DEMUXER) += raw.o
92OBJS-$(CONFIG_AC3_MUXER) += raw.o
93OBJS-$(CONFIG_DTS_DEMUXER) += raw.o
94OBJS-$(CONFIG_AAC_DEMUXER) += raw.o
95OBJS-$(CONFIG_H261_DEMUXER) += raw.o
96OBJS-$(CONFIG_H261_MUXER) += raw.o
97OBJS-$(CONFIG_H263_DEMUXER) += raw.o
98OBJS-$(CONFIG_H263_MUXER) += raw.o
99OBJS-$(CONFIG_M4V_DEMUXER) += raw.o
100OBJS-$(CONFIG_M4V_MUXER) += raw.o
101OBJS-$(CONFIG_H264_DEMUXER) += raw.o
102OBJS-$(CONFIG_H264_MUXER) += raw.o
103OBJS-$(CONFIG_MPEGVIDEO_DEMUXER) += raw.o
104OBJS-$(CONFIG_MPEG1VIDEO_MUXER) += raw.o
105OBJS-$(CONFIG_MPEG2VIDEO_MUXER) += raw.o
106OBJS-$(CONFIG_MJPEG_DEMUXER) += raw.o
107OBJS-$(CONFIG_INGENIENT_DEMUXER) += raw.o
108OBJS-$(CONFIG_MJPEG_MUXER) += raw.o
109OBJS-$(CONFIG_RAWVIDEO_DEMUXER) += raw.o
110OBJS-$(CONFIG_RAWVIDEO_MUXER) += raw.o
111OBJS-$(CONFIG_NULL_MUXER) += raw.o
112OBJS-$(CONFIG_RM_DEMUXER) += rm.o
113OBJS-$(CONFIG_RM_MUXER) += rm.o
114OBJS-$(CONFIG_SEGAFILM_DEMUXER) += segafilm.o
115OBJS-$(CONFIG_VMD_DEMUXER) += sierravmd.o
116OBJS-$(CONFIG_SMACKER_DEMUXER) += smacker.o
117OBJS-$(CONFIG_SOL_DEMUXER) += sol.o
118OBJS-$(CONFIG_SWF_DEMUXER) += swf.o
119OBJS-$(CONFIG_SWF_MUXER) += swf.o
120OBJS-$(CONFIG_TTA_DEMUXER) += tta.o
121OBJS-$(CONFIG_VOC_DEMUXER) += voc.o
122OBJS-$(CONFIG_VOC_MUXER) += voc.o
123OBJS-$(CONFIG_WAV_DEMUXER) += wav.o
124OBJS-$(CONFIG_WAV_MUXER) += wav.o
125OBJS-$(CONFIG_WC3_DEMUXER) += wc3movie.o
126OBJS-$(CONFIG_WSAUD_DEMUXER) += westwood.o
127OBJS-$(CONFIG_WSVQA_DEMUXER) += westwood.o
128OBJS-$(CONFIG_YUV4MPEGPIPE_MUXER) += yuv4mpeg.o
129OBJS-$(CONFIG_YUV4MPEGPIPE_DEMUXER) += yuv4mpeg.o
bc634f6f 130
87a0a681 131# image formats
6a91ec51 132OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o
115329f1 133OBJS+= framehook.o
8be1c656 134
19720f15 135ifeq ($(CONFIG_VIDEO4LINUX),yes)
ff70e601 136OBJS-$(CONFIG_VIDEO_GRAB_DEVICE_DEMUXER) += grab.o
8be1c656 137endif
85f07f22 138
0a7b514f 139ifeq ($(CONFIG_VIDEO4LINUX2),yes)
ff70e601 140OBJS-$(CONFIG_V4L2_DEMUXER) += v4l2.o
0a7b514f
LA
141endif
142
6beefa40 143ifeq ($(CONFIG_BKTR),yes)
ff70e601 144OBJS-$(CONFIG_VIDEO_GRAB_DEVICE_DEMUXER) += grab_bktr.o
6beefa40
MN
145endif
146
8aa3ee32 147ifeq ($(CONFIG_DV1394),yes)
ff70e601 148OBJS-$(CONFIG_DV1394_DEMUXER) += dv1394.o
8aa3ee32
MK
149endif
150
f02be79d 151ifeq ($(CONFIG_DC1394),yes)
ff70e601 152OBJS-$(CONFIG_DC1394_DEMUXER) += dc1394.o
f02be79d
RS
153endif
154
19720f15 155ifeq ($(CONFIG_AUDIO_OSS),yes)
ff70e601
MR
156OBJS-$(CONFIG_AUDIO_DEMUXER) += audio.o
157OBJS-$(CONFIG_AUDIO_MUXER) += audio.o
19720f15
FB
158endif
159
f130fd46
DB
160EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) \
161 -lavcodec$(BUILDSUF) -L../libavcodec $(EXTRALIBS)
dbbcfd6b 162
dfdfa47c 163ifeq ($(CONFIG_AUDIO_BEOS),yes)
8b2121e3 164CPPOBJS+= beosaudio.o
dfdfa47c
FR
165endif
166
04f46ced
GB
167# protocols I/O
168OBJS+= avio.o aviobuf.o
169
170ifeq ($(CONFIG_PROTOCOLS),yes)
171OBJS+= file.o
19720f15 172ifeq ($(CONFIG_NETWORK),yes)
bdd7d518 173OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
cc0799e5 174# BeOS and Darwin network stuff
4baca069 175ifeq ($(NEED_INET_ATON),yes)
9ddd71fc
FR
176OBJS+= barpainet.o
177endif
a74127c0 178endif
04f46ced 179endif
a74127c0 180
5c5dea3f 181ifeq ($(CONFIG_LIBOGG),yes)
ff70e601 182OBJS-$(CONFIG_OGG_MUXER) += ogg.o
81e0d0b4
MH
183endif
184
ff70e601
MR
185OBJS += $(OBJS-yes)
186
4bdd05e7 187NAME=avformat
6bc114b2 188ifeq ($(BUILD_SHARED),yes)
f3b60109
DB
189LIBVERSION=$(LAVFVERSION)
190LIBMAJOR=$(LAVFMAJOR)
6bc114b2
TA
191endif
192
8b2121e3 193include $(SRC_PATH)/common.mak