3 # (c) 2000, 2001, 2002 Fabrice Bellard
7 VPATH
=$(SRC_PATH
)/libavformat
9 CFLAGS
= $(OPTFLAGS
) -Wall
-g
-I..
-I
$(SRC_PATH
) -I
$(SRC_PATH
)/libavcodec
-DHAVE_AV_CONFIG_H
-D_FILE_OFFSET_BITS
=64 -D_LARGEFILE_SOURCE
-D_GNU_SOURCE
11 OBJS
= utils.o cutils.o allformats.o
14 OBJS
+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o
rm.o asf.o \
15 avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o dv.o \
20 OBJS
+= avio.o aviobuf.o file.o
23 ifeq ($(BUILD_STRPTIME
),yes
)
27 ifeq ($(CONFIG_VIDEO4LINUX
),yes
)
31 ifeq ($(CONFIG_DV1394
),yes
)
35 ifeq ($(CONFIG_AUDIO_OSS
),yes
)
39 ifeq ($(CONFIG_AUDIO_BEOS
),yes
)
43 ifeq ($(CONFIG_NETWORK
),yes
)
44 OBJS
+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
46 ifeq ($(NEED_INET_ATON
),yes
)
51 ifeq ($(CONFIG_VORBIS
),yes
)
55 LIB
= $(LIBPREF
)avformat
$(LIBSUF
)
61 $(LIB
): .depend
$(OBJS
)
64 ifneq ($(CONFIG_OS2
),yes
)
69 $(CC
) -MM
$(CFLAGS
) $^
1>.depend
72 install -m
644 $(LIB
) $(prefix)/lib
73 mkdir
-p
$(prefix)/include/ffmpeg
74 install -m
644 $(SRC_PATH
)/libavformat
/avformat.h
$(SRC_PATH
)/libavformat
/avio.h \
75 $(SRC_PATH
)/libavformat
/rtp.h
$(SRC_PATH
)/libavformat
/rtsp.h \
76 $(SRC_PATH
)/libavformat
/rtspcodes.h \
77 $(prefix)/include/ffmpeg
80 $(CC
) $(CFLAGS
) -c
-o
$@
$<
82 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
84 g
++ $(subst -Wall
,,$(CFLAGS
)) -c
-o
$@
$<
87 rm -f
*.o
*.d .depend
*~
*.a
$(LIB
)
90 # include dependency files if they exist
92 ifneq ($(wildcard .depend
),)