Statistics
| Branch: | Revision:

ffmpeg / libav / Makefile @ 41568e4a

History | View | Annotate | Download (1.51 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 dv.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_AUDIO_BEOS),yes)
33
OBJS+= beosaudio.o
34
endif
35

    
36
ifeq ($(CONFIG_NETWORK),yes)
37
OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
38
# BeOS network stuff
39
ifeq ($(CONFIG_BEOS_NETSERVER),yes)
40
OBJS+= barpainet.o
41
endif
42
endif
43

    
44
ifeq ($(CONFIG_VORBIS),yes)
45
OBJS+= ogg.o
46
endif
47

    
48
LIB= libavformat.a
49

    
50
all: $(LIB)
51

    
52
$(LIB): $(OBJS)
53
	rm -f $@
54
	$(AR) rc $@ $(OBJS)
55
	$(RANLIB) $@
56

    
57
installlib: all
58
	install -m 644 $(LIB) $(prefix)/lib
59
	mkdir -p $(prefix)/include/ffmpeg
60
	install -m 644 $(SRC_PATH)/libav/avformat.h $(SRC_PATH)/libav/avio.h \
61
                $(SRC_PATH)/libav/rtp.h $(SRC_PATH)/libav/rtsp.h \
62
                $(SRC_PATH)/libav/rtspcodes.h \
63
                $(prefix)/include/ffmpeg
64

    
65
%.o: %.c
66
	$(CC) $(CFLAGS) -c -o $@ $< 
67

    
68
# BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
69
%.o: %.cpp
70
	g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< 
71

    
72
clean: 
73
	rm -f *.o *~ *.a