changeset 21285:a396402b091b

FFmpeg-style conditional dependency declaration
author diego
date Mon, 27 Nov 2006 01:17:22 +0000
parents 30c0e0cfd9ed
children eb5e0d858b98
files libvo/Makefile
diffstat 1 files changed, 9 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/Makefile	Mon Nov 27 01:01:50 2006 +0000
+++ b/libvo/Makefile	Mon Nov 27 01:17:22 2006 +0000
@@ -18,33 +18,26 @@
      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)