Move all internal -I parameters to the front of CFLAGS to avoid using external
[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
7981555d
DB
7CFLAGS=-I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec \
8 $(OPTFLAGS) -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 \
4b65d88f 9 -D_LARGEFILE_SOURCE -D_ISOC9X_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
9d9f4119
MR
19OBJS-$(CONFIG_AIFF_DEMUXER) += aiff.o riff.o
20OBJS-$(CONFIG_AIFF_MUXER) += aiff.o riff.o
ff70e601
MR
21OBJS-$(CONFIG_AMR_DEMUXER) += amr.o
22OBJS-$(CONFIG_AMR_MUXER) += amr.o
9d9f4119
MR
23OBJS-$(CONFIG_ASF_DEMUXER) += asf.o riff.o
24OBJS-$(CONFIG_ASF_MUXER) += asf-enc.o riff.o
25OBJS-$(CONFIG_ASF_STREAM_MUXER) += asf-enc.o riff.o
26OBJS-$(CONFIG_AU_DEMUXER) += au.o riff.o
27OBJS-$(CONFIG_AU_MUXER) += au.o riff.o
28OBJS-$(CONFIG_AVI_DEMUXER) += avidec.o riff.o
29OBJS-$(CONFIG_AVI_MUXER) += avienc.o riff.o
ff70e601
MR
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
9d9f4119 56OBJS-$(CONFIG_MATROSKA_DEMUXER) += matroska.o riff.o
ff70e601 57OBJS-$(CONFIG_MM_DEMUXER) += mm.o
9d9f4119
MR
58OBJS-$(CONFIG_MMF_DEMUXER) += mmf.o riff.o
59OBJS-$(CONFIG_MMF_MUXER) += mmf.o riff.o
e40ee6a2
BC
60OBJS-$(CONFIG_MOV_DEMUXER) += mov.o riff.o isom.o
61OBJS-$(CONFIG_MOV_MUXER) += movenc.o riff.o isom.o
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
130OBJS-$(CONFIG_YUV4MPEGPIPE_MUXER) += yuv4mpeg.o
131OBJS-$(CONFIG_YUV4MPEGPIPE_DEMUXER) += yuv4mpeg.o
bc634f6f 132
87a0a681 133# image formats
6a91ec51 134OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o
115329f1 135OBJS+= framehook.o
8be1c656 136
19720f15 137ifeq ($(CONFIG_VIDEO4LINUX),yes)
ff70e601 138OBJS-$(CONFIG_VIDEO_GRAB_DEVICE_DEMUXER) += grab.o
8be1c656 139endif
85f07f22 140
0a7b514f 141ifeq ($(CONFIG_VIDEO4LINUX2),yes)
ff70e601 142OBJS-$(CONFIG_V4L2_DEMUXER) += v4l2.o
0a7b514f
LA
143endif
144
6beefa40 145ifeq ($(CONFIG_BKTR),yes)
ff70e601 146OBJS-$(CONFIG_VIDEO_GRAB_DEVICE_DEMUXER) += grab_bktr.o
6beefa40
MN
147endif
148
8aa3ee32 149ifeq ($(CONFIG_DV1394),yes)
ff70e601 150OBJS-$(CONFIG_DV1394_DEMUXER) += dv1394.o
8aa3ee32
MK
151endif
152
f02be79d 153ifeq ($(CONFIG_DC1394),yes)
ff70e601 154OBJS-$(CONFIG_DC1394_DEMUXER) += dc1394.o
f02be79d
RS
155endif
156
19720f15 157ifeq ($(CONFIG_AUDIO_OSS),yes)
ff70e601
MR
158OBJS-$(CONFIG_AUDIO_DEMUXER) += audio.o
159OBJS-$(CONFIG_AUDIO_MUXER) += audio.o
19720f15
FB
160endif
161
f130fd46
DB
162EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) \
163 -lavcodec$(BUILDSUF) -L../libavcodec $(EXTRALIBS)
dbbcfd6b 164
dfdfa47c 165ifeq ($(CONFIG_AUDIO_BEOS),yes)
8b2121e3 166CPPOBJS+= beosaudio.o
dfdfa47c
FR
167endif
168
04f46ced
GB
169# protocols I/O
170OBJS+= avio.o aviobuf.o
171
172ifeq ($(CONFIG_PROTOCOLS),yes)
173OBJS+= file.o
19720f15 174ifeq ($(CONFIG_NETWORK),yes)
bdd7d518 175OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
cc0799e5 176# BeOS and Darwin network stuff
4baca069 177ifeq ($(NEED_INET_ATON),yes)
9ddd71fc
FR
178OBJS+= barpainet.o
179endif
a74127c0 180endif
04f46ced 181endif
a74127c0 182
5c5dea3f 183ifeq ($(CONFIG_LIBOGG),yes)
ff70e601 184OBJS-$(CONFIG_OGG_MUXER) += ogg.o
81e0d0b4
MH
185endif
186
86329cce
BC
187ifeq ($(CONFIG_GPL),yes)
188OBJS-$(CONFIG_GXF_MUXER) += gxfenc.o
189endif
190
ff70e601
MR
191OBJS += $(OBJS-yes)
192
4bdd05e7 193NAME=avformat
6bc114b2 194ifeq ($(BUILD_SHARED),yes)
f3b60109
DB
195LIBVERSION=$(LAVFVERSION)
196LIBMAJOR=$(LAVFMAJOR)
6bc114b2
TA
197endif
198
8b2121e3 199include $(SRC_PATH)/common.mak