FFmpeg-style conditional dependency declaration

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21301 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2006-11-27 01:17:22 +00:00
parent 3d9e9137d5
commit 21b6b9af3c
1 changed files with 9 additions and 16 deletions

View File

@ -18,33 +18,26 @@ SRCS=aspect.c \
vo_yuv4mpeg.c \
$(VO_SRCS) \
SRCS-$(EXTERNAL_VIDIX) += vosub_vidix.c
SRCS-$(VIDIX) += vosub_vidix.c
SRCS2 = aclib.c \
osd.c \
sub.c \
ifeq ($(CONFIG_LIBAVUTIL),yes)
LIBAV_INC += -I../libavutil
endif
SRCS2-$(BITMAP_FONT) += font_load.c
SRCS2-$(FREETYPE) += font_load_ft.c
OBJS_TEMP=$(basename $(SRCS))
OBJS=$(OBJS_TEMP:%=%.o)
OBJS2=$(SRCS2:.c=.o)
ifeq ($(BITMAP_FONT),yes)
SRCS2 += font_load.c
endif
ifeq ($(FREETYPE),yes)
SRCS2 += font_load_ft.c
endif
LIBAV_INC-$(CONFIG_LIBAVUTIL) += -I../libavutil
ifeq ($(VIDIX),yes)
SRCS += vosub_vidix.c
endif
ifeq ($(EXTERNAL_VIDIX),yes)
SRCS += vosub_vidix.c
endif
SRCS += $(SRCS-yes)
SRCS2 += $(SRCS2-yes)
LIBAV_INC += $(LIBAV_INC-yes)
CFLAGS = -I.. -I../osdep $(LIBAV_INC)