comparison Makefile @ 0:05318cf2e886 libavformat

renamed libav to libavformat
author bellard
date Mon, 25 Nov 2002 19:07:40 +0000
parents
children 464f4e8aa417
comparison
equal deleted inserted replaced
-1:000000000000 0:05318cf2e886
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 framehook.o
16 # file I/O
17 OBJS+= avio.o aviobuf.o file.o
18
19 ifeq ($(BUILD_STRPTIME),yes)
20 OBJS+= strptime.o
21 endif
22
23 ifeq ($(CONFIG_VIDEO4LINUX),yes)
24 OBJS+= grab.o
25 endif
26
27 ifeq ($(CONFIG_AUDIO_OSS),yes)
28 OBJS+= audio.o
29 endif
30
31 ifeq ($(CONFIG_AUDIO_BEOS),yes)
32 OBJS+= beosaudio.o
33 endif
34
35 ifeq ($(CONFIG_NETWORK),yes)
36 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
37 # BeOS network stuff
38 ifeq ($(CONFIG_BEOS_NETSERVER),yes)
39 OBJS+= barpainet.o
40 endif
41 endif
42
43 ifeq ($(CONFIG_VORBIS),yes)
44 OBJS+= ogg.o
45 endif
46
47 LIB= libavformat.a
48
49 all: $(LIB)
50
51 $(LIB): $(OBJS)
52 rm -f $@
53 $(AR) rc $@ $(OBJS)
54 $(RANLIB) $@
55
56 installlib: all
57 install -m 644 $(LIB) $(prefix)/lib
58 mkdir -p $(prefix)/include/ffmpeg
59 install -m 644 $(SRC_PATH)/libav/avformat.h $(SRC_PATH)/libav/avio.h \
60 $(SRC_PATH)/libav/rtp.h $(SRC_PATH)/libav/rtsp.h \
61 $(SRC_PATH)/libav/rtspcodes.h \
62 $(prefix)/include/ffmpeg
63
64 %.o: %.c
65 $(CC) $(CFLAGS) -c -o $@ $<
66
67 # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
68 %.o: %.cpp
69 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
70
71 clean:
72 rm -f *.o *~ *.a