Merge INCLUDES into CFLAGS and remove now redundant commands and rules.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22805 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2007-03-24 15:25:07 +00:00
parent e5c9a24a89
commit 5db95cba6c
1 changed files with 2 additions and 6 deletions

View File

@ -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)