2007-03-24 15:14:20 +00:00
|
|
|
KERNEL_INC = /usr/src/linux/include
|
2007-03-24 15:25:07 +00:00
|
|
|
CFLAGS = -O2 -D__KERNEL__ -DMODULE -I$(KERNEL_INC) \
|
|
|
|
-include $(KERNEL_INC)/linux/modversions.h
|
2007-03-24 15:14:20 +00:00
|
|
|
VERSION = $(shell grep RELEASE $(KERNEL_INC)/linux/version.h | cut -d'"' -f2)
|
2002-02-02 06:34:44 +00:00
|
|
|
MDIR = /lib/modules/$(VERSION)/misc
|
|
|
|
|
|
|
|
all: dhahelper.o test
|
|
|
|
|
|
|
|
dhahelper.o: dhahelper.c dhahelper.h
|
|
|
|
|
|
|
|
install: dhahelper.o
|
2006-04-13 16:49:56 +00:00
|
|
|
-mkdir -p $(MDIR)
|
2002-02-02 06:34:44 +00:00
|
|
|
install -m 644 dhahelper.o $(MDIR)/dhahelper.o
|
|
|
|
depmod -a
|
|
|
|
|
2006-11-20 11:18:01 +00:00
|
|
|
dep depend:
|
2002-02-02 06:34:44 +00:00
|
|
|
|
2007-03-24 15:14:20 +00:00
|
|
|
clean:
|
2007-03-24 15:26:13 +00:00
|
|
|
rm -f *.o *~ test
|
2002-02-02 06:34:44 +00:00
|
|
|
|
|
|
|
distclean: clean
|
2008-04-18 08:13:00 +00:00
|
|
|
|
|
|
|
.PHONY: all install dep depend *clean
|