2 # Makefile borrowed from acer_acpi
5 ifneq ($(KERNELRELEASE),)
11 KERNELVERSION = `uname -r`
12 KERNELSRC := /lib/modules/$(KERNELVERSION)/build
13 KERNELMAJOR = $(shell echo $(KERNELVERSION) | head -c3)
17 INCLUDE = -I$(KERNELSRC)/include
19 ifneq ($(KERNELMAJOR), 2.6)
26 @echo "No support for 2.4 series kernels"
29 @echo Possible targets:
30 @echo -e all\\t- default target, builds kernel module
31 @echo -e install\\t- copies module binary to /lib/modules/$(KERNELVERSION)/extra/
32 @echo -e clean\\t- removes all binaries and temporary files
35 $(MAKE) -C $(KERNELSRC) SUBDIRS=$(PWD) modules
38 rm -f *~ *.o *.s *.ko *.mod.c .*.cmd Module.symvers
42 mkdir -p ${DESTDIR}/lib/modules/$(KERNELVERSION)/extra
43 cp -v quickstart.ko ${DESTDIR}/lib/modules/$(KERNELVERSION)/extra/