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