gmc1
[libav.git] / libavformat / Makefile
CommitLineData
19720f15
FB
1#
2# libavformat Makefile
3# (c) 2000, 2001, 2002 Fabrice Bellard
4#
980fc7b8 5include ../config.mak
f57a4535 6
a382b927 7VPATH=$(SRC_PATH)/libavformat
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 \
87a0a681
FB
15 avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o dv.o \
16 yuv4mpeg.o
17# image formats
18OBJS+= pnm.o yuv.o
c9a65ca8
FB
19# file I/O
20OBJS+= avio.o aviobuf.o file.o
87a0a681 21OBJS+= framehook.o
8be1c656 22
487ec9a0
PG
23ifeq ($(BUILD_STRPTIME),yes)
24OBJS+= strptime.o
25endif
26
19720f15
FB
27ifeq ($(CONFIG_VIDEO4LINUX),yes)
28OBJS+= grab.o
8be1c656 29endif
85f07f22 30
19720f15
FB
31ifeq ($(CONFIG_AUDIO_OSS),yes)
32OBJS+= audio.o
33endif
34
dfdfa47c
FR
35ifeq ($(CONFIG_AUDIO_BEOS),yes)
36OBJS+= beosaudio.o
37endif
38
19720f15 39ifeq ($(CONFIG_NETWORK),yes)
bdd7d518 40OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
9ddd71fc 41# BeOS network stuff
4baca069 42ifeq ($(NEED_INET_ATON),yes)
9ddd71fc
FR
43OBJS+= barpainet.o
44endif
a74127c0
FB
45endif
46
81e0d0b4
MH
47ifeq ($(CONFIG_VORBIS),yes)
48OBJS+= ogg.o
49endif
50
19720f15 51LIB= libavformat.a
85f07f22
FB
52
53all: $(LIB)
54
55$(LIB): $(OBJS)
56 rm -f $@
be7109c1
MN
57 $(AR) rc $@ $(OBJS)
58 $(RANLIB) $@
85f07f22 59
910fdd21
FB
60installlib: all
61 install -m 644 $(LIB) $(prefix)/lib
62 mkdir -p $(prefix)/include/ffmpeg
f60f0df1
TJ
63 install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
64 $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \
65 $(SRC_PATH)/libavformat/rtspcodes.h \
910fdd21
FB
66 $(prefix)/include/ffmpeg
67
85f07f22
FB
68%.o: %.c
69 $(CC) $(CFLAGS) -c -o $@ $<
70
dfdfa47c
FR
71# BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
72%.o: %.cpp
73 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
74
85f07f22
FB
75clean:
76 rm -f *.o *~ *.a