2002-05-26 01:34:32 +03:00
|
|
|
#
|
|
|
|
# libavformat Makefile
|
|
|
|
# (c) 2000, 2001, 2002 Fabrice Bellard
|
|
|
|
#
|
2001-07-23 23:06:54 +03:00
|
|
|
include ../config.mak
|
2002-05-19 02:07:57 +03:00
|
|
|
|
2002-11-29 16:56:03 +02:00
|
|
|
VPATH=$(SRC_PATH)/libavformat
|
2002-05-19 02:07:57 +03:00
|
|
|
|
2002-07-18 23:27:09 +03: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 17:37:44 +03:00
|
|
|
|
2002-07-25 19:06:41 +03:00
|
|
|
OBJS= utils.o cutils.o allformats.o
|
2002-05-20 19:31:13 +03:00
|
|
|
|
|
|
|
# mux and demuxes
|
|
|
|
OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o asf.o \
|
2003-01-11 07:02:14 +02:00
|
|
|
avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o dv.o \
|
|
|
|
yuv4mpeg.o
|
|
|
|
# image formats
|
|
|
|
OBJS+= pnm.o yuv.o
|
2002-05-20 19:31:13 +03:00
|
|
|
# file I/O
|
|
|
|
OBJS+= avio.o aviobuf.o file.o
|
2003-01-11 07:02:14 +02:00
|
|
|
OBJS+= framehook.o
|
2001-08-14 00:37:10 +03:00
|
|
|
|
2002-07-27 06:00:39 +03:00
|
|
|
ifeq ($(BUILD_STRPTIME),yes)
|
|
|
|
OBJS+= strptime.o
|
|
|
|
endif
|
|
|
|
|
2002-05-26 01:34:32 +03:00
|
|
|
ifeq ($(CONFIG_VIDEO4LINUX),yes)
|
|
|
|
OBJS+= grab.o
|
2001-08-14 00:37:10 +03:00
|
|
|
endif
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2002-05-26 01:34:32 +03:00
|
|
|
ifeq ($(CONFIG_AUDIO_OSS),yes)
|
|
|
|
OBJS+= audio.o
|
|
|
|
endif
|
|
|
|
|
2002-11-05 02:38:06 +02:00
|
|
|
ifeq ($(CONFIG_AUDIO_BEOS),yes)
|
|
|
|
OBJS+= beosaudio.o
|
|
|
|
endif
|
|
|
|
|
2002-05-26 01:34:32 +03:00
|
|
|
ifeq ($(CONFIG_NETWORK),yes)
|
2002-07-24 21:04:24 +03:00
|
|
|
OBJS+= udp.o tcp.o http.o rtsp.o rtp.o rtpproto.o
|
2002-11-02 12:35:07 +02:00
|
|
|
# BeOS network stuff
|
2002-11-27 04:45:14 +02:00
|
|
|
ifeq ($(NEED_INET_ATON),yes)
|
2002-11-02 12:35:07 +02:00
|
|
|
OBJS+= barpainet.o
|
|
|
|
endif
|
2001-08-16 01:33:03 +03:00
|
|
|
endif
|
|
|
|
|
2002-09-01 21:07:56 +03:00
|
|
|
ifeq ($(CONFIG_VORBIS),yes)
|
|
|
|
OBJS+= ogg.o
|
|
|
|
endif
|
|
|
|
|
2003-01-11 22:34:38 +02:00
|
|
|
LIB= $(LIBPREF)avformat$(LIBSUF)
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2003-01-22 11:53:25 +02:00
|
|
|
SRCS := $(OBJS:.o=.c)
|
2003-01-14 17:30:42 +02:00
|
|
|
|
2001-07-22 17:37:44 +03:00
|
|
|
all: $(LIB)
|
|
|
|
|
2003-01-22 11:53:25 +02:00
|
|
|
$(LIB): .depend $(OBJS)
|
2001-07-22 17:37:44 +03:00
|
|
|
rm -f $@
|
2002-09-02 19:48:40 +03:00
|
|
|
$(AR) rc $@ $(OBJS)
|
2003-01-11 22:34:38 +02:00
|
|
|
ifneq ($(CONFIG_OS2),yes)
|
2002-09-02 19:48:40 +03:00
|
|
|
$(RANLIB) $@
|
2003-01-11 22:34:38 +02:00
|
|
|
endif
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2003-01-22 11:53:25 +02:00
|
|
|
.depend: $(SRCS)
|
|
|
|
$(CC) -MM $(CFLAGS) $^ 1>.depend
|
|
|
|
|
2002-07-25 19:06:41 +03:00
|
|
|
installlib: all
|
|
|
|
install -m 644 $(LIB) $(prefix)/lib
|
|
|
|
mkdir -p $(prefix)/include/ffmpeg
|
2002-12-30 03:07:47 +02:00
|
|
|
install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
|
|
|
|
$(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \
|
|
|
|
$(SRC_PATH)/libavformat/rtspcodes.h \
|
2002-07-25 19:06:41 +03:00
|
|
|
$(prefix)/include/ffmpeg
|
|
|
|
|
2001-07-22 17:37:44 +03:00
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
2002-11-05 02:38:06 +02:00
|
|
|
# BeOS: remove -Wall to get rid of all the "multibyte constant" warnings
|
|
|
|
%.o: %.cpp
|
|
|
|
g++ $(subst -Wall,,$(CFLAGS)) -c -o $@ $<
|
|
|
|
|
2001-07-22 17:37:44 +03:00
|
|
|
clean:
|
2003-01-22 11:53:25 +02:00
|
|
|
rm -f *.o *.d .depend *~ *.a $(LIB)
|
|
|
|
|
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|