Statistics
| Branch: | Revision:

ffmpeg / libav / Makefile @ be7109c1

History | View | Annotate | Download (1.24 KB)

1
#
2
# libavformat Makefile
3
# (c) 2000, 2001, 2002 Fabrice Bellard
4
#
5
include ../config.mak
6

    
7
VPATH=$(SRC_PATH)/libav
8

    
9
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

    
11
OBJS= utils.o cutils.o allformats.o
12

    
13
# mux and demuxes
14
OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o asf.o \
15
      avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o 
16
# framehook.o
17
# file I/O
18
OBJS+= avio.o aviobuf.o file.o 
19

    
20
ifeq ($(BUILD_STRPTIME),yes)
21
OBJS+= strptime.o
22
endif
23

    
24
ifeq ($(CONFIG_VIDEO4LINUX),yes)
25
OBJS+= grab.o
26
endif
27

    
28
ifeq ($(CONFIG_AUDIO_OSS),yes)
29
OBJS+= audio.o 
30
endif
31

    
32
ifeq ($(CONFIG_NETWORK),yes)
33
OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
34
endif
35

    
36
ifeq ($(CONFIG_VORBIS),yes)
37
OBJS+= ogg.o
38
endif
39

    
40
LIB= libavformat.a
41

    
42
all: $(LIB)
43

    
44
$(LIB): $(OBJS)
45
	rm -f $@
46
	$(AR) rc $@ $(OBJS)
47
	$(RANLIB) $@
48

    
49
installlib: all
50
	install -m 644 $(LIB) $(prefix)/lib
51
	mkdir -p $(prefix)/include/ffmpeg
52
	install -m 644 $(SRC_PATH)/libav/avformat.h $(SRC_PATH)/libav/avio.h \
53
                $(SRC_PATH)/libav/rtp.h $(SRC_PATH)/libav/rtsp.h \
54
                $(SRC_PATH)/libav/rtspcodes.h \
55
                $(prefix)/include/ffmpeg
56

    
57
%.o: %.c
58
	$(CC) $(CFLAGS) -c -o $@ $< 
59

    
60
clean: 
61
	rm -f *.o *~ *.a