-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (33 loc) · 993 Bytes
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
obj-m +=dm-loki.o
dm-loki-objs += dm-loki-main.o dm-loki-fault-list.o dm-loki-handle-messages.o dm-loki-log.o twobitseq.o
all:
@make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
.PHONY: clean
clean:
@make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
@rm -f *.o.ur-safe
@make -f tests.makefile clean
.PHONY: insert
insert: all
-sudo rmmod dm-loki.ko
-sudo insmod ./dm-loki.ko
.PHONY: testdeps
testdeps:
@make -f tests.makefile testdeps
.PHONY: test
test: testdeps insert
-@make -f tests.makefile run_tests
-@make -f tests.makefile teardown
-@make -f tests.makefile summary
.PHONY: test_small_logimg
test_small_logimg: testdeps insert
-@make -f tests.makefile test_small_logimg
-@make -f tests.makefile teardown
.PHONY: minitest
minitest: testdeps insert
-@make -f tests.makefile run_minitests
-@make -f tests.makefile teardown
.PHONY: interesting
interesting: testdeps insert
-@make -f tests.makefile interesting
-@make -f tests.makefile teardown