blob: ff20ffe91a8c3abdd041b0aceb639d58139e9ef5 (
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
26
27
28
29
30
|
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
all: module tools
debug: module-debug tools
module:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
module-debug:
$(MAKE) -C $(KERNELDIR) M=$(PWD) V=1 CONFIG_WIREGUARD_DEBUG=y modules
clean:
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
$(MAKE) -C tools clean
install:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
depmod -a
$(MAKE) -C tools install
tools:
$(MAKE) -C tools
check:
$(MAKE) -C $(KERNELDIR) M=$(PWD) C=2 CF="-D__CHECK_ENDIAN__" CONFIG_WIREGUARD_DEBUG=y
include tests/debug.mk
.PHONY: all module module-debug tools install clean core-cloc check
|