-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (28 loc) · 692 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (28 loc) · 692 Bytes
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
31
ifneq ($(KERNELRELEASE),)
KERNELDIR ?= /lib/modules/$(KERNELRELEASE)/build
else
## KERNELRELEASE not set.
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
endif
pwd := $(shell pwd)/module
all:
@echo "KERNELDIR: $(KERNELDIR)"
cd module; make -C $(KERNELDIR) M=$(pwd)
cd evaluator; gcc -orun -Wno-varargs evaluator.c -pthread
clean:
rm -r -f \
module/tirdad.ko \
module/modules.order \
module/.tirdad.ko.cmd \
module/.tirdad.mod.o.cmd \
module/.tirdad.o.cmd \
module/.tirdad.o.d \
module/.tmp_versions \
module/Module.symvers \
module/tirdad.mod*\
module/..module* \
module/.module* \
module/.Module* \
module/.tirdad* \
module/tirdad.o \
evaluator/run