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
15 OBJS+=mpeg.o mpegts.o mpegtsenc.o ffm.o crc.o img.o raw.o rm.o \
16 avienc.o avidec.o wav.o swf.o au.o gif.o mov.o mpjpeg.o dv.o \
19 ifeq ($(CONFIG_RISKY),yes)
28 OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o
30 OBJS+= avio.o aviobuf.o file.o
33 ifeq ($(BUILD_STRPTIME),yes)
37 ifeq ($(CONFIG_VIDEO4LINUX),yes)
41 ifeq ($(CONFIG_DV1394),yes)
45 ifeq ($(CONFIG_AUDIO_OSS),yes)
49 ifeq ($(CONFIG_AUDIO_BEOS),yes)
53 ifeq ($(CONFIG_NETWORK),yes)
54 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
55 # BeOS and Darwin network stuff
56 ifeq ($(NEED_INET_ATON),yes)
61 ifeq ($(CONFIG_VORBIS),yes)
65 LIB= $(LIBPREF)avformat$(LIBSUF)
67 SRCS := $(OBJS:.o=.c) $(PPOBJS:.o=.cpp)
71 $(LIB): $(OBJS) $(PPOBJS)
73 $(AR) rc $@ $(OBJS) $(PPOBJS)
77 $(CC) -MM $(CFLAGS) $^ 1>.depend
80 install -m 644 $(LIB) $(prefix)/lib
81 mkdir -p $(prefix)/include/ffmpeg
82 install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
83 $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \
84 $(SRC_PATH)/libavformat/rtspcodes.h \
85 $(prefix)/include/ffmpeg
88 $(CC) $(CFLAGS) -c -o $@ $<
90 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
92 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
95 rm -f *.o *.d .depend *~ *.a $(LIB)
98 # include dependency files if they exist
100 ifneq ($(wildcard .depend),)