Statistics
| Branch: | Revision:

ffmpeg / libav / Makefile @ 9ddd71fc

History | View | Annotate | Download (1.33 KB)

1 19720f15 Fabrice Bellard
#
2
# libavformat Makefile
3
# (c) 2000, 2001, 2002 Fabrice Bellard
4
#
5 980fc7b8 Fabrice Bellard
include ../config.mak
6 f57a4535 Fabrice Bellard
7
VPATH=$(SRC_PATH)/libav
8
9 eddbd7e5 Roy Sigurd Karlsbakk
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
10 85f07f22 Fabrice Bellard
11 910fdd21 Fabrice Bellard
OBJS= utils.o cutils.o allformats.o
12 c9a65ca8 Fabrice Bellard
13
# mux and demuxes
14
OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o asf.o \
15 f20dca40 Fabrice Bellard
      avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o dv.o
16 487ec9a0 Philip Gladstone
# framehook.o
17 c9a65ca8 Fabrice Bellard
# file I/O
18
OBJS+= avio.o aviobuf.o file.o 
19 8be1c656 Fabrice Bellard
20 487ec9a0 Philip Gladstone
ifeq ($(BUILD_STRPTIME),yes)
21
OBJS+= strptime.o
22
endif
23
24 19720f15 Fabrice Bellard
ifeq ($(CONFIG_VIDEO4LINUX),yes)
25
OBJS+= grab.o
26 8be1c656 Fabrice Bellard
endif
27 85f07f22 Fabrice Bellard
28 19720f15 Fabrice Bellard
ifeq ($(CONFIG_AUDIO_OSS),yes)
29
OBJS+= audio.o 
30
endif
31
32
ifeq ($(CONFIG_NETWORK),yes)
33 bdd7d518 Fabrice Bellard
OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
34 9ddd71fc Fran├žois Revol
# BeOS network stuff
35
ifeq ($(CONFIG_BEOS_NETSERVER),yes)
36
OBJS+= barpainet.o
37
endif
38 a74127c0 Fabrice Bellard
endif
39
40 81e0d0b4 Mark Hills
ifeq ($(CONFIG_VORBIS),yes)
41
OBJS+= ogg.o
42
endif
43
44 19720f15 Fabrice Bellard
LIB= libavformat.a
45 85f07f22 Fabrice Bellard
46
all: $(LIB)
47
48
$(LIB): $(OBJS)
49
	rm -f $@
50 be7109c1 Michael Niedermayer
	$(AR) rc $@ $(OBJS)
51
	$(RANLIB) $@
52 85f07f22 Fabrice Bellard
53 910fdd21 Fabrice Bellard
installlib: all
54
	install -m 644 $(LIB) $(prefix)/lib
55
	mkdir -p $(prefix)/include/ffmpeg
56
	install -m 644 $(SRC_PATH)/libav/avformat.h $(SRC_PATH)/libav/avio.h \
57
                $(SRC_PATH)/libav/rtp.h $(SRC_PATH)/libav/rtsp.h \
58
                $(SRC_PATH)/libav/rtspcodes.h \
59
                $(prefix)/include/ffmpeg
60
61 85f07f22 Fabrice Bellard
%.o: %.c
62
	$(CC) $(CFLAGS) -c -o $@ $< 
63
64
clean: 
65
	rm -f *.o *~ *.a