Add logic to figure out whether strptime is present on the system. If not, then
[libav.git] / libav / Makefile
CommitLineData
19720f15
FB
1#
2# libavformat Makefile
3# (c) 2000, 2001, 2002 Fabrice Bellard
4#
980fc7b8 5include ../config.mak
f57a4535
FB
6
7VPATH=$(SRC_PATH)/libav
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
14OBJS+=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
17OBJS+= avio.o aviobuf.o file.o
8be1c656 18
19720f15
FB
19ifeq ($(CONFIG_VIDEO4LINUX),yes)
20OBJS+= grab.o
8be1c656 21endif
85f07f22 22
19720f15
FB
23ifeq ($(CONFIG_AUDIO_OSS),yes)
24OBJS+= audio.o
25endif
26
27ifeq ($(CONFIG_NETWORK),yes)
bdd7d518 28OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
a74127c0
FB
29endif
30
19720f15 31LIB= libavformat.a
85f07f22
FB
32
33all: $(LIB)
34
35$(LIB): $(OBJS)
36 rm -f $@
37 $(AR) rcs $@ $(OBJS)
38
910fdd21
FB
39installlib: all
40 install -m 644 $(LIB) $(prefix)/lib
41 mkdir -p $(prefix)/include/ffmpeg
42 install -m 644 $(SRC_PATH)/libav/avformat.h $(SRC_PATH)/libav/avio.h \
43 $(SRC_PATH)/libav/rtp.h $(SRC_PATH)/libav/rtsp.h \
44 $(SRC_PATH)/libav/rtspcodes.h \
45 $(prefix)/include/ffmpeg
46
85f07f22
FB
47%.o: %.c
48 $(CC) $(CFLAGS) -c -o $@ $<
49
50clean:
51 rm -f *.o *~ *.a