summaryrefslogtreecommitdiffstatshomepage
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/Makefile b/src/Makefile
index 8226038..9899a73 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -12,8 +12,8 @@ DEPMOD ?= depmod
PWD := $(shell pwd)
-all: module tools
-debug: module-debug tools-debug
+all: module
+debug: module-debug
ifneq ($(V),1)
MAKEFLAGS += --no-print-directory
@@ -42,40 +42,30 @@ module-debug: version.h
clean:
@$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
- @$(MAKE) -C tools clean
module-install:
@$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
$(DEPMOD) -a $(KERNELRELEASE)
-install: module-install tools-install
+install: module-install
rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))
-DKMS_SOURCES := version.h Makefile Kbuild Kconfig dkms.conf $(filter-out version.h wireguard.mod.c tools/% tests/%,$(call rwildcard,,*.c *.h *.S *.pl *.include))
+DKMS_SOURCES := version.h Makefile Kbuild Kconfig dkms.conf $(filter-out version.h wireguard.mod.c tests/%,$(call rwildcard,,*.c *.h *.S *.pl *.include))
dkms-install: $(DKMS_SOURCES)
@$(foreach f,$(DKMS_SOURCES),install -v -m0644 -D $(f) $(DESTDIR)$(DKMSDIR)/$(f);)
-tools:
- @$(MAKE) -C tools
-
-tools-debug:
- @$(MAKE) -C tools V=1 DEBUG_TOOLS=y
-
-tools-install:
- @$(MAKE) -C tools install
-
style:
$(KERNELDIR)/scripts/checkpatch.pl -f --max-line-length=4000 --codespell --color=always $(filter-out wireguard.mod.c,$(wildcard *.c)) $(wildcard *.h) $(wildcard selftest/*.c)
check: clean
- scan-build --html-title=WireGuard -maxloop 100 --view --keep-going $(MAKE) module tools CONFIG_WIREGUARD_DEBUG=y C=2 CF="-D__CHECK_ENDIAN__"
+ scan-build --html-title=wireguard-linux-compat -maxloop 100 --view --keep-going $(MAKE) module CONFIG_WIREGUARD_DEBUG=y C=2 CF="-D__CHECK_ENDIAN__"
coccicheck: clean
@$(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_WIREGUARD_DEBUG=y coccicheck MODE=report
cloc:
- @cloc --skip-uniqueness --by-file --extract-with="$$(readlink -f ../contrib/kernel-tree/filter-compat-defines.sh) >FILE< > \$$(basename >FILE<)" $(filter-out wireguard.mod.c,$(wildcard *.c)) $(wildcard *.h)
+ @cloc --skip-uniqueness --by-file --extract-with="$$(readlink -f ../kernel-tree-scripts/filter-compat-defines.sh) >FILE< > \$$(basename >FILE<)" $(filter-out wireguard.mod.c,$(wildcard *.c)) $(wildcard *.h)
-include tests/debug.mk
-.PHONY: all module module-debug module-install tools tools-install install dkms-install clean core-cloc check style version.h dkms.conf
+.PHONY: all module module-debug module-install install dkms-install clean cloc check style version.h dkms.conf