added compilation of RTP/RTSP stuff
[libav.git] / libav / Makefile
1 #
2 # libavformat Makefile
3 # (c) 2000, 2001, 2002 Fabrice Bellard
4 #
5 include ../config.mak
6
7 VPATH=$(SRC_PATH)/libav
8
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
10
11 OBJS= utils.o
12
13 # mux and demuxes
14 OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o asf.o \
15 avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o
16 # file I/O
17 OBJS+= avio.o aviobuf.o file.o
18
19 ifeq ($(CONFIG_VIDEO4LINUX),yes)
20 OBJS+= grab.o
21 endif
22
23 ifeq ($(CONFIG_AUDIO_OSS),yes)
24 OBJS+= audio.o
25 endif
26
27 ifeq ($(CONFIG_NETWORK),yes)
28 OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
29 endif
30
31 LIB= libavformat.a
32
33 all: $(LIB)
34
35 $(LIB): $(OBJS)
36 rm -f $@
37 $(AR) rcs $@ $(OBJS)
38
39 %.o: %.c
40 $(CC) $(CFLAGS) -c -o $@ $<
41
42 clean:
43 rm -f *.o *~ *.a