correcter mpeg4 headers
[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 \
6e1b4780 15 avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o dv.o framehook.o
c9a65ca8
FB
16# file I/O
17OBJS+= avio.o aviobuf.o file.o
8be1c656 18
487ec9a0
PG
19ifeq ($(BUILD_STRPTIME),yes)
20OBJS+= strptime.o
21endif
22
19720f15
FB
23ifeq ($(CONFIG_VIDEO4LINUX),yes)
24OBJS+= grab.o
8be1c656 25endif
85f07f22 26
19720f15
FB
27ifeq ($(CONFIG_AUDIO_OSS),yes)
28OBJS+= audio.o
29endif
30
dfdfa47c
FR
31ifeq ($(CONFIG_AUDIO_BEOS),yes)
32OBJS+= beosaudio.o
33endif
34
19720f15 35ifeq ($(CONFIG_NETWORK),yes)
bdd7d518 36OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
9ddd71fc 37# BeOS network stuff
4baca069 38ifeq ($(NEED_INET_ATON),yes)
9ddd71fc
FR
39OBJS+= barpainet.o
40endif
a74127c0
FB
41endif
42
81e0d0b4
MH
43ifeq ($(CONFIG_VORBIS),yes)
44OBJS+= ogg.o
45endif
46
19720f15 47LIB= libavformat.a
85f07f22
FB
48
49all: $(LIB)
50
51$(LIB): $(OBJS)
52 rm -f $@
be7109c1
MN
53 $(AR) rc $@ $(OBJS)
54 $(RANLIB) $@
85f07f22 55
910fdd21
FB
56installlib: 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
85f07f22
FB
64%.o: %.c
65 $(CC) $(CFLAGS) -c -o $@ $<
66
dfdfa47c
FR
67# BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
68%.o: %.cpp
69 g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
70
85f07f22
FB
71clean:
72 rm -f *.o *~ *.a