You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
364 B
20 lines
364 B
5 years ago
|
# Comment/uncomment the following line to disable/enable debugging
|
||
|
|
||
|
ifneq ($(KERNELRELEASE),)
|
||
|
# call from kernel build system
|
||
|
obj-m := xilinx_mem.o
|
||
|
else
|
||
|
|
||
|
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
|
||
|
PWD := $(shell pwd)
|
||
|
|
||
|
all: modules
|
||
|
|
||
|
modules: xilinx_mem.c
|
||
|
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
|
||
|
|
||
|
clean:
|
||
|
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
|
||
|
|
||
|
endif
|