2002-05-26 00:34:32 +02:00
|
|
|
#
|
|
|
|
# libavformat Makefile
|
|
|
|
# (c) 2000, 2001, 2002 Fabrice Bellard
|
|
|
|
#
|
2001-07-23 22:06:54 +02:00
|
|
|
include ../config.mak
|
2002-05-19 01:07:57 +02:00
|
|
|
|
|
|
|
VPATH=$(SRC_PATH)/libav
|
|
|
|
|
2002-07-18 22:27:09 +02:00
|
|
|
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
|
2001-07-22 16:37:44 +02:00
|
|
|
|
2002-07-25 18:06:41 +02:00
|
|
|
OBJS= utils.o cutils.o allformats.o
|
2002-05-20 18:31:13 +02:00
|
|
|
|
|
|
|
# mux and demuxes
|
|
|
|
OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o asf.o \
|
2002-07-27 05:00:39 +02:00
|
|
|
avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o
|
|
|
|
# framehook.o
|
2002-05-20 18:31:13 +02:00
|
|
|
# file I/O
|
|
|
|
OBJS+= avio.o aviobuf.o file.o
|
2001-08-13 23:37:10 +02:00
|
|
|
|
2002-07-27 05:00:39 +02:00
|
|
|
ifeq ($(BUILD_STRPTIME),yes)
|
|
|
|
OBJS+= strptime.o
|
|
|
|
endif
|
|
|
|
|
2002-05-26 00:34:32 +02:00
|
|
|
ifeq ($(CONFIG_VIDEO4LINUX),yes)
|
|
|
|
OBJS+= grab.o
|
2001-08-13 23:37:10 +02:00
|
|
|
endif
|
2001-07-22 16:37:44 +02:00
|
|
|
|
2002-05-26 00:34:32 +02:00
|
|
|
ifeq ($(CONFIG_AUDIO_OSS),yes)
|
|
|
|
OBJS+= audio.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NETWORK),yes)
|
2002-07-24 20:04:24 +02:00
|
|
|
OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
|
2001-08-16 00:33:03 +02:00
|
|
|
endif
|
|
|
|
|
2002-09-01 20:07:56 +02:00
|
|
|
ifeq ($(CONFIG_VORBIS),yes)
|
|
|
|
OBJS+= ogg.o
|
|
|
|
endif
|
|
|
|
|
2002-05-26 00:34:32 +02:00
|
|
|
LIB= libavformat.a
|
2001-07-22 16:37:44 +02:00
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
|
|
|
rm -f $@
|
2002-09-02 18:48:40 +02:00
|
|
|
$(AR) rc $@ $(OBJS)
|
|
|
|
$(RANLIB) $@
|
2001-07-22 16:37:44 +02:00
|
|
|
|
2002-07-25 18:06:41 +02:00
|
|
|
installlib: all
|
|
|
|
install -m 644 $(LIB) $(prefix)/lib
|
|
|
|
mkdir -p $(prefix)/include/ffmpeg
|
|
|
|
install -m 644 $(SRC_PATH)/libav/avformat.h $(SRC_PATH)/libav/avio.h \
|
|
|
|
$(SRC_PATH)/libav/rtp.h $(SRC_PATH)/libav/rtsp.h \
|
|
|
|
$(SRC_PATH)/libav/rtspcodes.h \
|
|
|
|
$(prefix)/include/ffmpeg
|
|
|
|
|
2001-07-22 16:37:44 +02:00
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *~ *.a
|