2002-05-26 01:34:32 +03:00
|
|
|
#
|
|
|
|
# libavformat Makefile
|
2003-09-16 23:29:19 +03:00
|
|
|
# (c) 2000-2003 Fabrice Bellard
|
2002-05-26 01:34:32 +03:00
|
|
|
#
|
2001-07-23 23:06:54 +03:00
|
|
|
include ../config.mak
|
2002-05-19 02:07:57 +03:00
|
|
|
|
2005-08-01 23:07:05 +03:00
|
|
|
CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2003-09-09 00:20:55 +03:00
|
|
|
OBJS= utils.o cutils.o os_support.o allformats.o
|
2006-02-13 14:53:25 +02:00
|
|
|
CPPOBJS=
|
|
|
|
|
|
|
|
HEADERS = avformat.h avio.h rtp.h rtsp.h rtspcodes.h
|
2002-05-20 19:31:13 +03:00
|
|
|
|
2006-01-21 20:36:32 +02:00
|
|
|
# demuxers
|
2004-07-15 21:32:54 +03:00
|
|
|
OBJS+=mpeg.o mpegts.o mpegtsenc.o ffm.o crc.o img.o img2.o raw.o rm.o \
|
2005-07-15 15:50:00 +03:00
|
|
|
avienc.o avidec.o wav.o mmf.o swf.o au.o gif.o mov.o mpjpeg.o dv.o \
|
2006-01-21 20:36:32 +02:00
|
|
|
yuv4mpeg.o 4xm.o flvdec.o psxstr.o idroq.o ipmovie.o \
|
2004-01-02 06:47:02 +02:00
|
|
|
nut.o wc3movie.o mp3.o westwood.o segafilm.o idcin.o flic.o \
|
2006-01-21 20:36:32 +02:00
|
|
|
sierravmd.o matroska.o sol.o electronicarts.o nsvdec.o asf.o \
|
2006-02-10 00:52:23 +02:00
|
|
|
ogg2.o oggparsevorbis.o oggparsetheora.o oggparseflac.o daud.o aiff.o \
|
2006-07-03 19:32:57 +03:00
|
|
|
voc.o tta.o mm.o avs.o smacker.o nuv.o gxf.o oggparseogm.o
|
2006-01-21 20:36:32 +02:00
|
|
|
|
|
|
|
# muxers
|
|
|
|
ifeq ($(CONFIG_MUXERS),yes)
|
2006-02-10 03:24:32 +02:00
|
|
|
OBJS+= flvenc.o movenc.o asf-enc.o adtsenc.o
|
2006-01-21 20:36:32 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2006-05-06 13:57:38 +03:00
|
|
|
ifeq ($(AMR),yes)
|
|
|
|
OBJS+= amr.o
|
2003-10-14 14:36:03 +03:00
|
|
|
endif
|
2003-06-05 17:30:52 +03:00
|
|
|
|
2003-01-11 07:02:14 +02:00
|
|
|
# image formats
|
2004-03-13 19:30:37 +02:00
|
|
|
OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o
|
2005-12-17 20:14:38 +02:00
|
|
|
OBJS+= framehook.o
|
2001-08-14 00:37:10 +03:00
|
|
|
|
2002-05-26 01:34:32 +03:00
|
|
|
ifeq ($(CONFIG_VIDEO4LINUX),yes)
|
|
|
|
OBJS+= grab.o
|
2001-08-14 00:37:10 +03:00
|
|
|
endif
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2006-02-01 13:31:33 +02:00
|
|
|
ifeq ($(CONFIG_VIDEO4LINUX2),yes)
|
|
|
|
OBJS+= v4l2.o
|
|
|
|
endif
|
|
|
|
|
2005-06-25 12:04:08 +03:00
|
|
|
ifeq ($(CONFIG_BKTR),yes)
|
|
|
|
OBJS+= grab_bktr.o
|
|
|
|
endif
|
|
|
|
|
2003-01-23 00:40:52 +02:00
|
|
|
ifeq ($(CONFIG_DV1394),yes)
|
|
|
|
OBJS+= dv1394.o
|
|
|
|
endif
|
|
|
|
|
2004-10-22 05:04:30 +03:00
|
|
|
ifeq ($(CONFIG_DC1394),yes)
|
|
|
|
OBJS+= dc1394.o
|
|
|
|
endif
|
|
|
|
|
2002-05-26 01:34:32 +03:00
|
|
|
ifeq ($(CONFIG_AUDIO_OSS),yes)
|
2005-12-17 20:14:38 +02:00
|
|
|
OBJS+= audio.o
|
2002-05-26 01:34:32 +03:00
|
|
|
endif
|
|
|
|
|
2006-04-15 18:05:53 +03:00
|
|
|
EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) -lavcodec$(BUILDSUF) -L../libavcodec $(EXTRALIBS)
|
2005-08-12 01:16:25 +03:00
|
|
|
|
2002-11-05 02:38:06 +02:00
|
|
|
ifeq ($(CONFIG_AUDIO_BEOS),yes)
|
2006-02-13 14:53:25 +02:00
|
|
|
CPPOBJS+= beosaudio.o
|
2002-11-05 02:38:06 +02:00
|
|
|
endif
|
|
|
|
|
2006-01-21 20:36:32 +02:00
|
|
|
# protocols I/O
|
|
|
|
OBJS+= avio.o aviobuf.o
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_PROTOCOLS),yes)
|
|
|
|
OBJS+= file.o
|
2002-05-26 01:34:32 +03:00
|
|
|
ifeq ($(CONFIG_NETWORK),yes)
|
2002-07-24 21:04:24 +03:00
|
|
|
OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
|
2003-02-06 17:09:39 +02:00
|
|
|
# BeOS and Darwin network stuff
|
2002-11-27 04:45:14 +02:00
|
|
|
ifeq ($(NEED_INET_ATON),yes)
|
2002-11-02 12:35:07 +02:00
|
|
|
OBJS+= barpainet.o
|
|
|
|
endif
|
2001-08-16 01:33:03 +03:00
|
|
|
endif
|
2006-01-21 20:36:32 +02:00
|
|
|
endif
|
2001-08-16 01:33:03 +03:00
|
|
|
|
2005-02-24 17:18:02 +02:00
|
|
|
ifeq ($(CONFIG_LIBOGG),yes)
|
2002-09-01 21:07:56 +03:00
|
|
|
OBJS+= ogg.o
|
|
|
|
endif
|
|
|
|
|
2006-01-14 17:54:58 +02:00
|
|
|
NAME=avformat
|
2003-07-12 00:33:27 +03:00
|
|
|
ifeq ($(BUILD_SHARED),yes)
|
2006-01-14 05:39:02 +02:00
|
|
|
LIBVERSION=$(LAVFVERSION)
|
|
|
|
LIBMAJOR=$(LAVFMAJOR)
|
2003-07-12 00:33:27 +03:00
|
|
|
endif
|
|
|
|
|
2006-02-13 14:53:25 +02:00
|
|
|
include $(SRC_PATH)/common.mak
|