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 | |
1d0d55da | 14 | OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o \ |
0250738f | 15 | avienc.o avidec.o wav.o swf.o au.o gif.o mov.o mpjpeg.o dv.o \ |
87a0a681 | 16 | yuv4mpeg.o |
1d0d55da MN |
17 | |
18 | ifeq ($(CONFIG_RISKY),yes) | |
19 | OBJS+= asf.o | |
20 | endif | |
21 | ||
87a0a681 | 22 | # image formats |
85a57296 | 23 | OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o |
c9a65ca8 FB |
24 | # file I/O |
25 | OBJS+= avio.o aviobuf.o file.o | |
87a0a681 | 26 | OBJS+= framehook.o |
8be1c656 | 27 | |
487ec9a0 PG |
28 | ifeq ($(BUILD_STRPTIME),yes) |
29 | OBJS+= strptime.o | |
30 | endif | |
31 | ||
19720f15 FB |
32 | ifeq ($(CONFIG_VIDEO4LINUX),yes) |
33 | OBJS+= grab.o | |
8be1c656 | 34 | endif |
85f07f22 | 35 | |
8aa3ee32 MK |
36 | ifeq ($(CONFIG_DV1394),yes) |
37 | OBJS+= dv1394.o | |
38 | endif | |
39 | ||
19720f15 FB |
40 | ifeq ($(CONFIG_AUDIO_OSS),yes) |
41 | OBJS+= audio.o | |
42 | endif | |
43 | ||
dfdfa47c FR |
44 | ifeq ($(CONFIG_AUDIO_BEOS),yes) |
45 | OBJS+= beosaudio.o | |
46 | endif | |
47 | ||
19720f15 | 48 | ifeq ($(CONFIG_NETWORK),yes) |
bdd7d518 | 49 | OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o |
9ddd71fc | 50 | # BeOS network stuff |
4baca069 | 51 | ifeq ($(NEED_INET_ATON),yes) |
9ddd71fc FR |
52 | OBJS+= barpainet.o |
53 | endif | |
a74127c0 FB |
54 | endif |
55 | ||
81e0d0b4 MH |
56 | ifeq ($(CONFIG_VORBIS),yes) |
57 | OBJS+= ogg.o | |
58 | endif | |
59 | ||
f3ec2d46 | 60 | LIB= $(LIBPREF)avformat$(LIBSUF) |
85f07f22 | 61 | |
7c235fe2 | 62 | SRCS := $(OBJS:.o=.c) |
77b71ddc | 63 | |
85f07f22 FB |
64 | all: $(LIB) |
65 | ||
f8d7b5f5 | 66 | $(LIB): $(OBJS) |
85f07f22 | 67 | rm -f $@ |
be7109c1 | 68 | $(AR) rc $@ $(OBJS) |
f3ec2d46 | 69 | ifneq ($(CONFIG_OS2),yes) |
be7109c1 | 70 | $(RANLIB) $@ |
f3ec2d46 | 71 | endif |
85f07f22 | 72 | |
f8d7b5f5 | 73 | depend: $(SRCS) |
7c235fe2 FB |
74 | $(CC) -MM $(CFLAGS) $^ 1>.depend |
75 | ||
910fdd21 FB |
76 | installlib: all |
77 | install -m 644 $(LIB) $(prefix)/lib | |
78 | mkdir -p $(prefix)/include/ffmpeg | |
f60f0df1 TJ |
79 | install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \ |
80 | $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \ | |
81 | $(SRC_PATH)/libavformat/rtspcodes.h \ | |
910fdd21 FB |
82 | $(prefix)/include/ffmpeg |
83 | ||
85f07f22 FB |
84 | %.o: %.c |
85 | $(CC) $(CFLAGS) -c -o $@ $< | |
86 | ||
dfdfa47c FR |
87 | # BeOS: remove -Wall to get rid of all the "multibyte constant" warnings |
88 | %.o: %.cpp | |
89 | g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $< | |
90 | ||
85f07f22 | 91 | clean: |
7c235fe2 FB |
92 | rm -f *.o *.d .depend *~ *.a $(LIB) |
93 | ||
94 | # | |
95 | # include dependency files if they exist | |
96 | # | |
97 | ifneq ($(wildcard .depend),) | |
98 | include .depend | |
99 | endif |