2001-02-24 20:28:24 +00:00
|
|
|
|
2006-07-12 17:28:14 +00:00
|
|
|
include ../config.mak
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
LIBNAME = libvo.a
|
|
|
|
|
2005-06-19 22:52:55 +00:00
|
|
|
SRCS=aclib.c \
|
|
|
|
aspect.c \
|
|
|
|
geometry.c \
|
|
|
|
osd.c \
|
|
|
|
spuenc.c \
|
|
|
|
sub.c \
|
|
|
|
video_out.c \
|
|
|
|
vo_mpegpes.c \
|
|
|
|
vo_null.c \
|
|
|
|
vo_yuv4mpeg.c \
|
2006-07-12 17:28:14 +00:00
|
|
|
$(VO_SRCS) \
|
2005-06-19 22:52:55 +00:00
|
|
|
|
2005-09-01 10:44:46 +00:00
|
|
|
LIBAV_INC =
|
|
|
|
ifeq ($(CONFIG_LIBAVUTIL),yes)
|
|
|
|
LIBAV_INC += -I../libavutil
|
|
|
|
endif
|
|
|
|
|
2005-04-29 11:41:07 +00:00
|
|
|
OBJS_TEMP=$(basename $(SRCS))
|
|
|
|
OBJS=$(OBJS_TEMP:%=%.o)
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2006-08-21 23:19:11 +00:00
|
|
|
ifeq ($(BITMAP_FONT),yes)
|
|
|
|
SRCS += font_load.c
|
|
|
|
endif
|
|
|
|
|
2006-06-30 12:41:05 +00:00
|
|
|
ifeq ($(FREETYPE),yes)
|
|
|
|
SRCS += font_load_ft.c
|
|
|
|
endif
|
|
|
|
|
2002-01-11 17:20:43 +00:00
|
|
|
ifeq ($(VIDIX),yes)
|
2002-01-15 12:13:53 +00:00
|
|
|
SRCS += vosub_vidix.c
|
2002-01-11 17:20:43 +00:00
|
|
|
endif
|
|
|
|
|
2006-03-28 22:44:16 +00:00
|
|
|
ifeq ($(EXTERNAL_VIDIX),yes)
|
|
|
|
SRCS += vosub_vidix.c
|
|
|
|
endif
|
|
|
|
|
2006-08-16 21:08:50 +00:00
|
|
|
INCLUDE = -I. -I.. -I../osdep $(LIBAV_INC)
|
2006-08-17 17:19:56 +00:00
|
|
|
CFLAGS = $(INCLUDE) $(OPTFLAGS) -DMPG12PLAY
|
2005-06-19 22:52:55 +00:00
|
|
|
|
|
|
|
#CFLAGS += -Wall
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2005-05-14 21:35:35 +00:00
|
|
|
.SUFFIXES: .c .o .m
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
# .PHONY: all clean
|
|
|
|
|
|
|
|
.c.o:
|
2001-03-02 21:42:17 +00:00
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2005-04-29 11:41:07 +00:00
|
|
|
.m.o:
|
|
|
|
$(CC) -c $(CFLAGS) -o $@ $<
|
|
|
|
|
2001-06-04 19:33:28 +00:00
|
|
|
$(LIBNAME): $(OBJS)
|
2001-02-24 20:28:24 +00:00
|
|
|
$(AR) r $(LIBNAME) $(OBJS)
|
2004-06-24 13:54:08 +00:00
|
|
|
$(RANLIB) $(LIBNAME)
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
all: $(LIBNAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.a *~
|
|
|
|
|
2006-01-27 00:06:42 +00:00
|
|
|
distclean: clean
|
|
|
|
rm -f .depend
|
2001-02-24 20:28:24 +00:00
|
|
|
|
|
|
|
dep: depend
|
|
|
|
|
2001-06-04 19:33:28 +00:00
|
|
|
depend:
|
2001-05-24 21:09:13 +00:00
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
|
2001-02-24 20:28:24 +00:00
|
|
|
|
2001-03-02 21:42:17 +00:00
|
|
|
#
|
|
|
|
# include dependency files if they exist
|
|
|
|
#
|
|
|
|
ifneq ($(wildcard .depend),)
|
|
|
|
include .depend
|
|
|
|
endif
|