Fix the 'hard cpu loop' problem when capturing audio from /dev/dsp. This
[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
1d0d55da 14OBJS+=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
18ifeq ($(CONFIG_RISKY),yes)
19OBJS+= asf.o
20endif
21
87a0a681 22# image formats
85a57296 23OBJS+= pnm.o yuv.o png.o jpeg.o gifdec.o
c9a65ca8
FB
24# file I/O
25OBJS+= avio.o aviobuf.o file.o
87a0a681 26OBJS+= framehook.o
8be1c656 27
487ec9a0
PG
28ifeq ($(BUILD_STRPTIME),yes)
29OBJS+= strptime.o
30endif
31
19720f15
FB
32ifeq ($(CONFIG_VIDEO4LINUX),yes)
33OBJS+= grab.o
8be1c656 34endif
85f07f22 35
8aa3ee32
MK
36ifeq ($(CONFIG_DV1394),yes)
37OBJS+= dv1394.o
38endif
39
19720f15
FB
40ifeq ($(CONFIG_AUDIO_OSS),yes)
41OBJS+= audio.o
42endif
43
dfdfa47c
FR
44ifeq ($(CONFIG_AUDIO_BEOS),yes)
45OBJS+= beosaudio.o
46endif
47
19720f15 48ifeq ($(CONFIG_NETWORK),yes)
bdd7d518 49OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
9ddd71fc 50# BeOS network stuff
4baca069 51ifeq ($(NEED_INET_ATON),yes)
9ddd71fc
FR
52OBJS+= barpainet.o
53endif
a74127c0
FB
54endif
55
81e0d0b4
MH
56ifeq ($(CONFIG_VORBIS),yes)
57OBJS+= ogg.o
58endif
59
f3ec2d46 60LIB= $(LIBPREF)avformat$(LIBSUF)
85f07f22 61
7c235fe2 62SRCS := $(OBJS:.o=.c)
77b71ddc 63
85f07f22
FB
64all: $(LIB)
65
f8d7b5f5 66$(LIB): $(OBJS)
85f07f22 67 rm -f $@
be7109c1 68 $(AR) rc $@ $(OBJS)
f3ec2d46 69ifneq ($(CONFIG_OS2),yes)
be7109c1 70 $(RANLIB) $@
f3ec2d46 71endif
85f07f22 72
f8d7b5f5 73depend: $(SRCS)
7c235fe2
FB
74 $(CC) -MM $(CFLAGS) $^ 1>.depend
75
910fdd21
FB
76installlib: 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 91clean:
7c235fe2
FB
92 rm -f *.o *.d .depend *~ *.a $(LIB)
93
94#
95# include dependency files if they exist
96#
97ifneq ($(wildcard .depend),)
98include .depend
99endif