blob: 05037f052069f23896c7724533b1e44c6b597d67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
diff --git a/Makefile b/Makefile
index 25e5a49..d0a34a2 100644
--- a/Makefile
+++ b/Makefile
@@ -7,11 +7,14 @@ netcat-y+= tracks/trk4.o
netcat-y+= tracks/trk5.o
netcat-y+= tracks/trk6.o
-KERNELDIR ?= /lib/modules/$(shell uname -r)/build
-PWD := $(shell pwd)
+KERNELRELEASE ?= $(shell uname -r)
+KDIR ?= /lib/modules/$(KERNELRELEASE)/build
+PWD ?= $(shell pwd)
-all:
- $(MAKE) -C $(KERNELDIR) M=$(PWD)
+ccflags-y := -Werror
-clean:
- $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
+default: modules
+install: modules_install
+
+modules modules_install clean:
+ $(MAKE) -C $(KDIR) M=$(PWD) $@
|