# HG changeset patch # User diego # Date 1174749907 0 # Node ID 52c7adc4403246f8f15d1ab7bfea3cda215778f2 # Parent a92b69a7224cbcfd1b5f40fd4429ef9fa8b1cbfc Merge INCLUDES into CFLAGS and remove now redundant commands and rules. diff -r a92b69a7224c -r 52c7adc44032 libdha/kernelhelper/Makefile --- a/libdha/kernelhelper/Makefile Sat Mar 24 15:15:28 2007 +0000 +++ b/libdha/kernelhelper/Makefile Sat Mar 24 15:25:07 2007 +0000 @@ -1,16 +1,12 @@ KERNEL_INC = /usr/src/linux/include -INCLUDES = -I$(KERNEL_INC) -CFLAGS = -O2 -D__KERNEL__ -DMODULE -include $(KERNEL_INC)/linux/modversions.h +CFLAGS = -O2 -D__KERNEL__ -DMODULE -I$(KERNEL_INC) \ + -include $(KERNEL_INC)/linux/modversions.h VERSION = $(shell grep RELEASE $(KERNEL_INC)/linux/version.h | cut -d'"' -f2) MDIR = /lib/modules/$(VERSION)/misc all: dhahelper.o test dhahelper.o: dhahelper.c dhahelper.h - $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c - -test: test.c - $(CC) -O $(INCLUDES) -o $@ $@.c install: dhahelper.o -mkdir -p $(MDIR)