aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index e09d6fd88d..ba1cb6aa23 100644
--- a/Makefile
+++ b/Makefile
@@ -6,12 +6,9 @@
include config.mak
-ifeq ($(CONFIG_LIBAVUTIL),yes)
-LIBAV_INC += -I./libavutil
-endif
-ifeq ($(CONFIG_LIBAVCODEC),yes)
-LIBAV_INC += -I./libavcodec
-endif
+LIBAV_INC-$(CONFIG_LIBAVUTIL) += -I./libavutil
+LIBAV_INC-$(CONFIG_LIBAVCODEC) += -I./libavcodec
+LIBAV_INC += $(LIBAV_INC-yes)
CFLAGS = $(OPTFLAGS) -I. $(LIBAV_INC)