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
|
|
|
|
|
|
|
VPATH=$(SRC_PATH)/libav
|
|
|
|
|
|
|
|
CFLAGS= $(OPTFLAGS) -Wall -g -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -DHAVE_AV_CONFIG_H
|
2001-07-22 17:37:44 +03:00
|
|
|
|
2002-05-20 19:31:13 +03:00
|
|
|
OBJS= utils.o
|
|
|
|
|
|
|
|
# mux and demuxes
|
|
|
|
OBJS+=mpeg.o mpegts.o ffm.o crc.o img.o raw.o rm.o asf.o \
|
|
|
|
avienc.o avidec.o wav.o swf.o au.o gif.o mov.o jpeg.o
|
|
|
|
# file I/O
|
|
|
|
OBJS+= avio.o aviobuf.o file.o
|
2001-08-14 00:37:10 +03:00
|
|
|
|
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
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_NETWORK),yes)
|
2001-08-16 01:33:03 +03:00
|
|
|
OBJS+= udp.o http.o
|
|
|
|
endif
|
|
|
|
|
2002-05-26 01:34:32 +03:00
|
|
|
LIB= libavformat.a
|
2001-07-22 17:37:44 +03:00
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
|
|
|
$(LIB): $(OBJS)
|
|
|
|
rm -f $@
|
|
|
|
$(AR) rcs $@ $(OBJS)
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *~ *.a
|