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 \
15 avienc.o avidec.o wav.o swf.o au.o gif.o mov.o mpjpeg.o dv.o \
18 ifeq ($(CONFIG_RISKY),yes)
23 OBJS+= pnm.o yuv.o png.o libpng/png.o libpng/pngread.o libpng/pngrutil.o libpng/pngwrite.o libpng/pngwutil.o jpeg.o gifdec.o
25 OBJS+= avio.o aviobuf.o file.o
28 ifeq ($(BUILD_STRPTIME),yes)
32 ifeq ($(CONFIG_VIDEO4LINUX),yes)
36 ifeq ($(CONFIG_DV1394),yes)
40 ifeq ($(CONFIG_AUDIO_OSS),yes)
44 ifeq ($(CONFIG_AUDIO_BEOS),yes)
48 ifeq ($(CONFIG_NETWORK),yes)
49 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
51 ifeq ($(NEED_INET_ATON),yes)
56 ifeq ($(CONFIG_VORBIS),yes)
60 LIB= $(LIBPREF)avformat$(LIBSUF)
69 ifneq ($(CONFIG_OS2),yes)
74 $(CC) -MM $(CFLAGS) $^ 1>.depend
77 install -m 644 $(LIB) $(prefix)/lib
78 mkdir -p $(prefix)/include/ffmpeg
79 install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
80 $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \
81 $(SRC_PATH)/libavformat/rtspcodes.h \
82 $(prefix)/include/ffmpeg
85 $(CC) $(CFLAGS) -c -o $@ $<
87 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
89 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
92 rm -f *.o *.d .depend *~ *.a $(LIB)
95 # include dependency files if they exist
97 ifneq ($(wildcard .depend),)