Not every 64 bit SPARC is an UltraSPARC so optimize for v9 instead.
[libav.git] / libavformat / Makefile
CommitLineData
19720f15
FB
1#
2# libavformat Makefile
165f74ff 3# (c) 2000-2003 Fabrice Bellard
19720f15 4#
980fc7b8 5include ../config.mak
f57a4535 6
f130fd46
DB
7CFLAGS=$(OPTFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavutil \
8 -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 \
9 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
85f07f22 10
f71869a4 11OBJS= utils.o cutils.o os_support.o allformats.o
8b2121e3
MR
12CPPOBJS=
13
14HEADERS = avformat.h avio.h rtp.h rtsp.h rtspcodes.h
c9a65ca8 15
04f46ced 16# demuxers
03cfe134 17OBJS+=mpeg.o mpegts.o mpegtsenc.o ffm.o crc.o img.o img2.o raw.o rm.o \
93a23627 18 avienc.o avidec.o wav.o mmf.o swf.o au.o gif.o mov.o mpjpeg.o dv.o \
04f46ced 19 yuv4mpeg.o 4xm.o flvdec.o psxstr.o idroq.o ipmovie.o \
a7eb3c8d 20 nut.o wc3movie.o mp3.o westwood.o segafilm.o idcin.o flic.o \
04f46ced 21 sierravmd.o matroska.o sol.o electronicarts.o nsvdec.o asf.o \
ea395e8c 22 ogg2.o oggparsevorbis.o oggparsetheora.o oggparseflac.o daud.o aiff.o \
cc0bc648 23 voc.o tta.o mm.o avs.o smacker.o nuv.o gxf.o oggparseogm.o
04f46ced
GB
24
25# muxers
26ifeq ($(CONFIG_MUXERS),yes)
a283db39 27OBJS+= flvenc.o movenc.o asf-enc.o adtsenc.o
04f46ced
GB
28endif
29
30
60827a1a
DB
31ifeq ($(AMR),yes)
32OBJS+= amr.o
485bc05d 33endif
bc634f6f 34
87a0a681 35# image formats
6a91ec51 36OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o sgi.o
115329f1 37OBJS+= framehook.o
8be1c656 38
19720f15
FB
39ifeq ($(CONFIG_VIDEO4LINUX),yes)
40OBJS+= grab.o
8be1c656 41endif
85f07f22 42
0a7b514f
LA
43ifeq ($(CONFIG_VIDEO4LINUX2),yes)
44OBJS+= v4l2.o
45endif
46
6beefa40
MN
47ifeq ($(CONFIG_BKTR),yes)
48OBJS+= grab_bktr.o
49endif
50
8aa3ee32
MK
51ifeq ($(CONFIG_DV1394),yes)
52OBJS+= dv1394.o
53endif
54
f02be79d
RS
55ifeq ($(CONFIG_DC1394),yes)
56OBJS+= dc1394.o
57endif
58
19720f15 59ifeq ($(CONFIG_AUDIO_OSS),yes)
115329f1 60OBJS+= audio.o
19720f15
FB
61endif
62
f130fd46
DB
63EXTRALIBS := -L../libavutil -lavutil$(BUILDSUF) \
64 -lavcodec$(BUILDSUF) -L../libavcodec $(EXTRALIBS)
dbbcfd6b 65
dfdfa47c 66ifeq ($(CONFIG_AUDIO_BEOS),yes)
8b2121e3 67CPPOBJS+= beosaudio.o
dfdfa47c
FR
68endif
69
04f46ced
GB
70# protocols I/O
71OBJS+= avio.o aviobuf.o
72
73ifeq ($(CONFIG_PROTOCOLS),yes)
74OBJS+= file.o
19720f15 75ifeq ($(CONFIG_NETWORK),yes)
bdd7d518 76OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
cc0799e5 77# BeOS and Darwin network stuff
4baca069 78ifeq ($(NEED_INET_ATON),yes)
9ddd71fc
FR
79OBJS+= barpainet.o
80endif
a74127c0 81endif
04f46ced 82endif
a74127c0 83
5c5dea3f 84ifeq ($(CONFIG_LIBOGG),yes)
81e0d0b4
MH
85OBJS+= ogg.o
86endif
87
4bdd05e7 88NAME=avformat
6bc114b2 89ifeq ($(BUILD_SHARED),yes)
f3b60109
DB
90LIBVERSION=$(LAVFVERSION)
91LIBMAJOR=$(LAVFMAJOR)
6bc114b2
TA
92endif
93
8b2121e3 94include $(SRC_PATH)/common.mak