diff options
Diffstat (limited to 'linux/makefile')
| -rw-r--r-- | linux/makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/makefile b/linux/makefile index f293cc1..e88ebac 100644 --- a/linux/makefile +++ b/linux/makefile @@ -2,6 +2,9 @@ MODDIR := /lib/modules/$(shell uname -r) INCLUDE := -isystem $(MODDIR)/build/include -isystem ../inc CFLAGS := -O2 -D__KERNEL__ -DMODULE -Wall $(INCLUDE) +ifeq ($(debug),1) +CFLAGS += -DENABLE_DLOG +endif ifneq (,$(wildcard $(MODDIR)/build/include/linux/modversions.h)) CFLAGS += -DMODVERSIONS endif @@ -16,7 +19,7 @@ clean: install: chudisk.o install -m0644 chudisk.o $(MODDIR)/block - depmod -A + depmod uninstall: rm -f $(MODDIR)/block/chudisk.o |
