From a94ea0f5203602dab296730badd664e22a9ab046 Mon Sep 17 00:00:00 2001 From: diego Date: Sat, 17 Mar 2007 13:29:26 +0000 Subject: [PATCH] Remove pointless variable indirection for -I options. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22688 b3059339-0415-0410-9bf9-f77b7e298cf2 --- drivers/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/Makefile b/drivers/Makefile index 7b8a811526..bfdd930988 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -1,16 +1,15 @@ KERNEL_DIR=/lib/modules/`uname -r`/build KERNEL_INCLUDES= $(KERNEL_DIR)/include -INCLUDES = -I$(KERNEL_INCLUDES) VERSION = $(shell grep UTS_RELEASE $(KERNEL_INCLUDES)/linux/version.h | cut -d '"' -f2) MDIR = /lib/modules/$(VERSION)/misc ifneq (,$(findstring 2.6, $(VERSION))) MGA_VID_OBJ = mga_vid.ko -CFLAGS = -O2 -D__KERNEL__ -DMODULE $(INCLUDES) -Wall -include $(KERNEL_INCLUDES)/config/modversions.h +CFLAGS = -O2 -D__KERNEL__ -DMODULE -I$(KERNEL_INCLUDES) -Wall -include $(KERNEL_INCLUDES)/config/modversions.h all: $(MGA_VID_OBJ) mga_vid_test else MGA_VID_OBJ = mga_vid.o -CFLAGS = -O2 -D__KERNEL__ -DMODULE $(INCLUDES) -Wall -include $(KERNEL_INCLUDES)/linux/modversions.h +CFLAGS = -O2 -D__KERNEL__ -DMODULE -I$(KERNEL_INCLUDES) -Wall -include $(KERNEL_INCLUDES)/linux/modversions.h all: $(MGA_VID_OBJ) mga_vid_test tdfx_vid.o tdfx_vid_test endif