• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1obj-m := lkdtm.o
2KDIR := /lib/modules/$(shell uname -r)/build
3PWD := $(shell pwd)
4USE_SYMBOL_NAME := $(shell echo "${USE_SYMBOL_NAME}")
5
6ifeq (1, $(USE_SYMBOL_NAME))
7	EXTRA_CFLAGS := -DUSE_SYMBOL_NAME
8endif
9
10default:
11	$(MAKE) -C $(KDIR) M=$(PWD) modules
12
13
14clean:
15	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
16	rm -f Module.symvers
17#clean:
18#	rm -f *.mod.c *.ko *.o .*.cmd *.symvers
19#	rm -rf .tmp_versions
20