Revert putting EXTRALIBS in common.mak, linking fails on MinGW.
[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
9d9f4119
MR
20OBJS-$(CONFIG_ASF_DEMUXER) += asf.o riff.o
21OBJS-$(CONFIG_ASF_MUXER) += asf-enc.o riff.o
22OBJS-$(CONFIG_ASF_STREAM_MUXER) += asf-enc.o riff.o
23OBJS-$(CONFIG_AU_DEMUXER) += au.o riff.o
24OBJS-$(CONFIG_AU_MUXER) += au.o riff.o
25OBJS-$(CONFIG_AVI_DEMUXER) += avidec.o riff.o
26OBJS-$(CONFIG_AVI_MUXER) += avienc.o riff.o
8ac17293 27OBJS-$(CONFIG_AVISYNTH) += avisynth.o
ff70e601
MR
28OBJS-$(CONFIG_AVS_DEMUXER) += avs.o
29OBJS-$(CONFIG_CRC_MUXER) += crc.o
30OBJS-$(CONFIG_FRAMECRC_MUXER) += crc.o
31OBJS-$(CONFIG_DAUD_DEMUXER) += daud.o
72450e50 32OBJS-$(CONFIG_DSICIN_DEMUXER) += dsicin.o
ff70e601 33OBJS-$(CONFIG_DV_DEMUXER) += dv.o
d4fc91b4 34OBJS-$(CONFIG_DV_MUXER) += dvenc.o
ff70e601
MR
35OBJS-$(CONFIG_EA_DEMUXER) += electronicarts.o
36OBJS-$(CONFIG_FFM_DEMUXER) += ffm.o
37OBJS-$(CONFIG_FFM_MUXER) += ffm.o
38OBJS-$(CONFIG_FLIC_DEMUXER) += flic.o
39OBJS-$(CONFIG_FLV_DEMUXER) += flvdec.o
40OBJS-$(CONFIG_FLV_MUXER) += flvenc.o
41OBJS-$(CONFIG_GIF_MUXER) += gif.o
42OBJS-$(CONFIG_GIF_DEMUXER) += gifdec.o
43OBJS-$(CONFIG_GXF_DEMUXER) += gxf.o
44OBJS-$(CONFIG_IDCIN_DEMUXER) += idcin.o
45OBJS-$(CONFIG_ROQ_DEMUXER) += idroq.o
46OBJS-$(CONFIG_IMAGE2_DEMUXER) += img2.o
47OBJS-$(CONFIG_IMAGE2PIPE_DEMUXER) += img2.o
48OBJS-$(CONFIG_IMAGE2_MUXER) += img2.o
49OBJS-$(CONFIG_IMAGE2PIPE_MUXER) += img2.o
50OBJS-$(CONFIG_IMAGE_DEMUXER) += img.o
51OBJS-$(CONFIG_IMAGEPIPE_DEMUXER) += img.o
52OBJS-$(CONFIG_IMAGE_MUXER) += img.o
53OBJS-$(CONFIG_IMAGEPIPE_MUXER) += img.o
54OBJS-$(CONFIG_IPMOVIE_DEMUXER) += ipmovie.o
9d9f4119 55OBJS-$(CONFIG_MATROSKA_DEMUXER) += matroska.o riff.o
ff70e601 56OBJS-$(CONFIG_MM_DEMUXER) += mm.o
9d9f4119
MR
57OBJS-$(CONFIG_MMF_DEMUXER) += mmf.o riff.o
58OBJS-$(CONFIG_MMF_MUXER) += mmf.o riff.o
e40ee6a2
BC
59OBJS-$(CONFIG_MOV_DEMUXER) += mov.o riff.o isom.o
60OBJS-$(CONFIG_MOV_MUXER) += movenc.o riff.o isom.o
28146a8c 61OBJS-$(CONFIG_MTV_DEMUXER) += mtv.o
e40ee6a2
BC
62OBJS-$(CONFIG_TGP_MUXER) += movenc.o riff.o isom.o
63OBJS-$(CONFIG_MP4_MUXER) += movenc.o riff.o isom.o
64OBJS-$(CONFIG_PSP_MUXER) += movenc.o riff.o isom.o
65OBJS-$(CONFIG_TG2_MUXER) += movenc.o riff.o isom.o
ff70e601
MR
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
07bf2af8 78OBJS-$(CONFIG_MXF_DEMUXER) += mxf.o
9d9f4119 79OBJS-$(CONFIG_NSV_DEMUXER) += nsvdec.o riff.o
b9a73d8d
MR
80OBJS-$(CONFIG_NUT_DEMUXER) += nut.o riff.o
81OBJS-$(CONFIG_NUT_MUXER) += nut.o riff.o
9d9f4119 82OBJS-$(CONFIG_NUV_DEMUXER) += nuv.o riff.o
ff70e601
MR
83OBJS-$(CONFIG_OGG_DEMUXER) += ogg2.o \
84 oggparsevorbis.o \
85 oggparsetheora.o \
86 oggparseflac.o \
9d9f4119
MR
87 oggparseogm.o \
88 riff.o
ff70e601
MR
89OBJS-$(CONFIG_STR_DEMUXER) += psxstr.o
90OBJS-$(CONFIG_SHORTEN_DEMUXER) += raw.o
91OBJS-$(CONFIG_FLAC_DEMUXER) += raw.o
92OBJS-$(CONFIG_FLAC_MUXER) += raw.o
93OBJS-$(CONFIG_AC3_DEMUXER) += raw.o
94OBJS-$(CONFIG_AC3_MUXER) += raw.o
95OBJS-$(CONFIG_DTS_DEMUXER) += raw.o
96OBJS-$(CONFIG_AAC_DEMUXER) += raw.o
97OBJS-$(CONFIG_H261_DEMUXER) += raw.o
98OBJS-$(CONFIG_H261_MUXER) += raw.o
99OBJS-$(CONFIG_H263_DEMUXER) += raw.o
100OBJS-$(CONFIG_H263_MUXER) += raw.o
101OBJS-$(CONFIG_M4V_DEMUXER) += raw.o
102OBJS-$(CONFIG_M4V_MUXER) += raw.o
103OBJS-$(CONFIG_H264_DEMUXER) += raw.o
104OBJS-$(CONFIG_H264_MUXER) += raw.o
105OBJS-$(CONFIG_MPEGVIDEO_DEMUXER) += raw.o
106OBJS-$(CONFIG_MPEG1VIDEO_MUXER) += raw.o
107OBJS-$(CONFIG_MPEG2VIDEO_MUXER) += raw.o
108OBJS-$(CONFIG_MJPEG_DEMUXER) += raw.o
109OBJS-$(CONFIG_INGENIENT_DEMUXER) += raw.o
110OBJS-$(CONFIG_MJPEG_MUXER) += raw.o
111OBJS-$(CONFIG_RAWVIDEO_DEMUXER) += raw.o
112OBJS-$(CONFIG_RAWVIDEO_MUXER) += raw.o
113OBJS-$(CONFIG_NULL_MUXER) += raw.o
114OBJS-$(CONFIG_RM_DEMUXER) += rm.o
115OBJS-$(CONFIG_RM_MUXER) += rm.o
116OBJS-$(CONFIG_SEGAFILM_DEMUXER) += segafilm.o
117OBJS-$(CONFIG_VMD_DEMUXER) += sierravmd.o
118OBJS-$(CONFIG_SMACKER_DEMUXER) += smacker.o
119OBJS-$(CONFIG_SOL_DEMUXER) += sol.o
120OBJS-$(CONFIG_SWF_DEMUXER) += swf.o
121OBJS-$(CONFIG_SWF_MUXER) += swf.o
122OBJS-$(CONFIG_TTA_DEMUXER) += tta.o
9d9f4119
MR
123OBJS-$(CONFIG_VOC_DEMUXER) += voc.o riff.o
124OBJS-$(CONFIG_VOC_MUXER) += voc.o riff.o
125OBJS-$(CONFIG_WAV_DEMUXER) += wav.o riff.o
126OBJS-$(CONFIG_WAV_MUXER) += wav.o riff.o
ff70e601
MR
127OBJS-$(CONFIG_WC3_DEMUXER) += wc3movie.o
128OBJS-$(CONFIG_WSAUD_DEMUXER) += westwood.o
129OBJS-$(CONFIG_WSVQA_DEMUXER) += westwood.o
730581f3 130OBJS-$(CONFIG_WV_DEMUXER) += wv.o
ff70e601
MR
131OBJS-$(CONFIG_YUV4MPEGPIPE_MUXER) += yuv4mpeg.o
132OBJS-$(CONFIG_YUV4MPEGPIPE_DEMUXER) += yuv4mpeg.o
29f86228 133OBJS-$(CONFIG_TIERTEXSEQ_DEMUXER) += tiertexseq.o
bc634f6f 134
87a0a681 135# image formats
6a91ec51 136OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o
115329f1 137OBJS+= framehook.o
8be1c656 138
19720f15 139ifeq ($(CONFIG_VIDEO4LINUX),yes)
ff70e601 140OBJS-$(CONFIG_VIDEO_GRAB_DEVICE_DEMUXER) += grab.o
8be1c656 141endif
85f07f22 142
0a7b514f 143ifeq ($(CONFIG_VIDEO4LINUX2),yes)
ff70e601 144OBJS-$(CONFIG_V4L2_DEMUXER) += v4l2.o
0a7b514f
LA
145endif
146
6beefa40 147ifeq ($(CONFIG_BKTR),yes)
ff70e601 148OBJS-$(CONFIG_VIDEO_GRAB_DEVICE_DEMUXER) += grab_bktr.o
6beefa40
MN
149endif
150
8aa3ee32 151ifeq ($(CONFIG_DV1394),yes)
ff70e601 152OBJS-$(CONFIG_DV1394_DEMUXER) += dv1394.o
8aa3ee32
MK
153endif
154
f02be79d 155ifeq ($(CONFIG_DC1394),yes)
ff70e601 156OBJS-$(CONFIG_DC1394_DEMUXER) += dc1394.o
f02be79d
RS
157endif
158
19720f15 159ifeq ($(CONFIG_AUDIO_OSS),yes)
ff70e601
MR
160OBJS-$(CONFIG_AUDIO_DEMUXER) += audio.o
161OBJS-$(CONFIG_AUDIO_MUXER) += audio.o
19720f15
FB
162endif
163
14f29f79
DB
164EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) \
165 -lavcodec$(BUILDSUF) -L$(BUILD_ROOT)/libavcodec $(EXTRALIBS)
dbbcfd6b 166
dfdfa47c 167ifeq ($(CONFIG_AUDIO_BEOS),yes)
8b2121e3 168CPPOBJS+= beosaudio.o
dfdfa47c
FR
169endif
170
04f46ced
GB
171# protocols I/O
172OBJS+= avio.o aviobuf.o
173
174ifeq ($(CONFIG_PROTOCOLS),yes)
175OBJS+= file.o
19720f15 176ifeq ($(CONFIG_NETWORK),yes)
e8b409b5 177OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o mpegts.o
cc0799e5 178# BeOS and Darwin network stuff
4baca069 179ifeq ($(NEED_INET_ATON),yes)
9ddd71fc
FR
180OBJS+= barpainet.o
181endif
a74127c0 182endif
04f46ced 183endif
a74127c0 184
5c5dea3f 185ifeq ($(CONFIG_LIBOGG),yes)
ff70e601 186OBJS-$(CONFIG_OGG_MUXER) += ogg.o
81e0d0b4
MH
187endif
188
86329cce
BC
189ifeq ($(CONFIG_GPL),yes)
190OBJS-$(CONFIG_GXF_MUXER) += gxfenc.o
191endif
192
ff70e601
MR
193OBJS += $(OBJS-yes)
194
4bdd05e7 195NAME=avformat
6bc114b2 196ifeq ($(BUILD_SHARED),yes)
f3b60109
DB
197LIBVERSION=$(LAVFVERSION)
198LIBMAJOR=$(LAVFMAJOR)
6bc114b2
TA
199endif
200
8b2121e3 201include $(SRC_PATH)/common.mak