From bfa68ebe9380a8f2246d195fe464409fddb262ab Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Wed, 27 Jul 2005 04:58:50 +0000 Subject: Include logic to detect compilation against -mm kernels, adding MM_KERNEL to EXTRA_CFLAGS. This test will be available in -mm kernels AFTER (but not including) 2.6.13-rc3-mm1. Signed-off-by: Michael Krufky --- v4l/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'v4l/Makefile') diff --git a/v4l/Makefile b/v4l/Makefile index b452c8d0a..1da3d55b8 100644 --- a/v4l/Makefile +++ b/v4l/Makefile @@ -96,8 +96,10 @@ endif mm-kernel := $(TOPDIR)/.mm ifneq ($(mm-kernel),) MM_KERNEL_CFLAGS := -DMM_KERNEL=$(shell cat $(mm-kernel) 2> /dev/null) +ifneq ($(MM_KERNEL_CFLAGS),) EXTRA_CFLAGS += $(MM_KERNEL_CFLAGS) endif +endif bttv.o: $(bttv-objs) $(LD) -r -o $@ $(bttv-objs) -- cgit v1.2.3