Makefile 1.97 KB
Newer Older
Fabrice Bellard's avatar
Fabrice Bellard committed
1 2
#
# libavformat Makefile
Fabrice Bellard's avatar
Fabrice Bellard committed
3
# (c) 2000-2003 Fabrice Bellard
Fabrice Bellard's avatar
Fabrice Bellard committed
4
#
5
include ../config.mak
Fabrice Bellard's avatar
Fabrice Bellard committed
6

7 8 9
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
Fabrice Bellard's avatar
merge  
Fabrice Bellard committed
10

11
OBJS= utils.o cutils.o os_support.o allformats.o
12 13 14
CPPOBJS=

HEADERS = avformat.h avio.h rtp.h rtsp.h rtspcodes.h
Fabrice Bellard's avatar
Fabrice Bellard committed
15

16
# demuxers
17
OBJS+=mpeg.o mpegts.o mpegtsenc.o ffm.o crc.o img.o img2.o raw.o rm.o \
18
      avienc.o avidec.o wav.o mmf.o swf.o au.o gif.o mov.o mpjpeg.o dv.o \
19
      yuv4mpeg.o 4xm.o flvdec.o psxstr.o idroq.o ipmovie.o \
20
      nut.o wc3movie.o mp3.o westwood.o segafilm.o idcin.o flic.o \
21
      sierravmd.o matroska.o sol.o electronicarts.o nsvdec.o asf.o \
Aurelien Jacobs's avatar
Aurelien Jacobs committed
22
      ogg2.o oggparsevorbis.o oggparsetheora.o oggparseflac.o daud.o aiff.o \
Reimar Döffinger's avatar
Reimar Döffinger committed
23
      voc.o tta.o mm.o avs.o smacker.o nuv.o gxf.o oggparseogm.o
24 25 26

# muxers
ifeq ($(CONFIG_MUXERS),yes)
27
OBJS+= flvenc.o movenc.o asf-enc.o adtsenc.o
28 29 30
endif


Diego Biurrun's avatar
Diego Biurrun committed
31 32
ifeq ($(AMR),yes)
OBJS+= amr.o
33
endif
Zdenek Kabelac's avatar
Zdenek Kabelac committed
34

Fabrice Bellard's avatar
Fabrice Bellard committed
35
# image formats
36
OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o
37
OBJS+= framehook.o
Fabrice Bellard's avatar
Fabrice Bellard committed
38

Fabrice Bellard's avatar
Fabrice Bellard committed
39 40
ifeq ($(CONFIG_VIDEO4LINUX),yes)
OBJS+= grab.o
Fabrice Bellard's avatar
Fabrice Bellard committed
41
endif
Fabrice Bellard's avatar
merge  
Fabrice Bellard committed
42

Luca Abeni's avatar
Luca Abeni committed
43 44 45 46
ifeq ($(CONFIG_VIDEO4LINUX2),yes)
OBJS+= v4l2.o
endif

47 48 49 50
ifeq ($(CONFIG_BKTR),yes)
OBJS+= grab_bktr.o
endif

51 52 53 54
ifeq ($(CONFIG_DV1394),yes)
OBJS+= dv1394.o
endif

55 56 57 58
ifeq ($(CONFIG_DC1394),yes)
OBJS+= dc1394.o
endif

Fabrice Bellard's avatar
Fabrice Bellard committed
59
ifeq ($(CONFIG_AUDIO_OSS),yes)
60
OBJS+= audio.o
Fabrice Bellard's avatar
Fabrice Bellard committed
61 62
endif

63 64
EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) \
             -lavcodec$(BUILDSUF) -L../libavcodec $(EXTRALIBS)
65

66
ifeq ($(CONFIG_AUDIO_BEOS),yes)
67
CPPOBJS+= beosaudio.o
68 69
endif

70 71 72 73 74
# protocols I/O
OBJS+= avio.o aviobuf.o

ifeq ($(CONFIG_PROTOCOLS),yes)
OBJS+= file.o
Fabrice Bellard's avatar
Fabrice Bellard committed
75
ifeq ($(CONFIG_NETWORK),yes)
76
OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
77
# BeOS and Darwin network stuff
78
ifeq ($(NEED_INET_ATON),yes)
79 80
OBJS+= barpainet.o
endif
Fabrice Bellard's avatar
Fabrice Bellard committed
81
endif
82
endif
Fabrice Bellard's avatar
Fabrice Bellard committed
83

Nilesh Bansal's avatar
Nilesh Bansal committed
84
ifeq ($(CONFIG_LIBOGG),yes)
85 86 87
OBJS+= ogg.o
endif

88
NAME=avformat
89
ifeq ($(BUILD_SHARED),yes)
90 91
LIBVERSION=$(LAVFVERSION)
LIBMAJOR=$(LAVFMAJOR)
92 93
endif

94
include $(SRC_PATH)/common.mak