Commit | Line | Data |
---|---|---|
19720f15 FB |
1 | # |
2 | # libavformat Makefile | |
3 | # (c) 2000, 2001, 2002 Fabrice Bellard | |
4 | # | |
980fc7b8 | 5 | include ../config.mak |
f57a4535 | 6 | |
a382b927 | 7 | VPATH=$(SRC_PATH)/libavformat |
f57a4535 | 8 | |
eddbd7e5 | 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 |
85f07f22 | 10 | |
910fdd21 | 11 | OBJS= utils.o cutils.o allformats.o |
c9a65ca8 FB |
12 | |
13 | # mux and demuxes | |
14 | OBJS+=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 |
17 | OBJS+= avio.o aviobuf.o file.o | |
8be1c656 | 18 | |
487ec9a0 PG |
19 | ifeq ($(BUILD_STRPTIME),yes) |
20 | OBJS+= strptime.o | |
21 | endif | |
22 | ||
19720f15 FB |
23 | ifeq ($(CONFIG_VIDEO4LINUX),yes) |
24 | OBJS+= grab.o | |
8be1c656 | 25 | endif |
85f07f22 | 26 | |
19720f15 FB |
27 | ifeq ($(CONFIG_AUDIO_OSS),yes) |
28 | OBJS+= audio.o | |
29 | endif | |
30 | ||
dfdfa47c FR |
31 | ifeq ($(CONFIG_AUDIO_BEOS),yes) |
32 | OBJS+= beosaudio.o | |
33 | endif | |
34 | ||
19720f15 | 35 | ifeq ($(CONFIG_NETWORK),yes) |
bdd7d518 | 36 | OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o |
9ddd71fc | 37 | # BeOS network stuff |
4baca069 | 38 | ifeq ($(NEED_INET_ATON),yes) |
9ddd71fc FR |
39 | OBJS+= barpainet.o |
40 | endif | |
a74127c0 FB |
41 | endif |
42 | ||
81e0d0b4 MH |
43 | ifeq ($(CONFIG_VORBIS),yes) |
44 | OBJS+= ogg.o | |
45 | endif | |
46 | ||
19720f15 | 47 | LIB= libavformat.a |
85f07f22 FB |
48 | |
49 | all: $(LIB) | |
50 | ||
51 | $(LIB): $(OBJS) | |
52 | rm -f $@ | |
be7109c1 MN |
53 | $(AR) rc $@ $(OBJS) |
54 | $(RANLIB) $@ | |
85f07f22 | 55 | |
910fdd21 FB |
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 | ||
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 |
71 | clean: |
72 | rm -f *.o *~ *.a |