mirror of https://github.com/mpv-player/mpv
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:
parent
e5c9a24a89
commit
5db95cba6c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue