forked from PlatformLab/HomaModule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (28 loc) · 873 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
# Makefile to build Homa as a Linux module.
obj-m += homa.o
homa-y = homa_incoming.o \
homa_offload.o \
homa_outgoing.o \
homa_peertab.o \
homa_plumbing.o \
homa_socktab.o \
homa_timer.o \
homa_utils.o \
timetrace.o
MY_CFLAGS += -g
ccflags-y += ${MY_CFLAGS}
CC += ${MY_CFLAGS}
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
check:
../homaLinux/scripts/kernel-doc -none *.c
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
# The following targets are useful for debugging Makefiles; they
# print the value of a make variable in one of several contexts.
print-%:
@echo $* = $($*)
printBuild-%:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) $@
printClean-%:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) $@