new vbv calculation patch by (Henry Mason <talus25 at speakeasy dot net>) with slight...
[libav.git] / libav / Makefile
CommitLineData
19720f15
FB
1#
2# libavformat Makefile
3# (c) 2000, 2001, 2002 Fabrice Bellard
4#
980fc7b8 5include ../config.mak
f57a4535
FB
6
7VPATH=$(SRC_PATH)/libav
f57a4535 8
eddbd7e5 9CFLAGS= $(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
85f07f22 10
910fdd21 11OBJS= utils.o cutils.o allformats.o
c9a65ca8
FB
12
13# mux and demuxes
14OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o asf.o \
487ec9a0
PG
15 avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o
16# framehook.o
c9a65ca8
FB
17# file I/O
18OBJS+= avio.o aviobuf.o file.o
8be1c656 19
487ec9a0
PG
20ifeq ($(BUILD_STRPTIME),yes)
21OBJS+= strptime.o
22endif
23
19720f15
FB
24ifeq ($(CONFIG_VIDEO4LINUX),yes)
25OBJS+= grab.o
8be1c656 26endif
85f07f22 27
19720f15
FB
28ifeq ($(CONFIG_AUDIO_OSS),yes)
29OBJS+= audio.o
30endif
31
32ifeq ($(CONFIG_NETWORK),yes)
bdd7d518 33OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
a74127c0
FB
34endif
35
81e0d0b4
MH
36ifeq ($(CONFIG_VORBIS),yes)
37OBJS+= ogg.o
38endif
39
19720f15 40LIB= libavformat.a
85f07f22
FB
41
42all: $(LIB)
43
44$(LIB): $(OBJS)
45 rm -f $@
46 $(AR) rcs $@ $(OBJS)
47
910fdd21
FB
48installlib: all
49 install -m 644 $(LIB) $(prefix)/lib
50 mkdir -p $(prefix)/include/ffmpeg
51 install -m 644 $(SRC_PATH)/libav/avformat.h $(SRC_PATH)/libav/avio.h \
52 $(SRC_PATH)/libav/rtp.h $(SRC_PATH)/libav/rtsp.h \
53 $(SRC_PATH)/libav/rtspcodes.h \
54 $(prefix)/include/ffmpeg
55
85f07f22
FB
56%.o: %.c
57 $(CC) $(CFLAGS) -c -o $@ $<
58
59clean:
60 rm -f *.o *~ *.a