forked from PlatformLab/HomaModule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (32 loc) · 869 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
# 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_pool.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}
KDIR ?= /lib/modules/$(shell uname -r)/build
all:
make -C $(KDIR) M=$(PWD) modules
install:
make -C $(KDIR) M=$(PWD) modules_install
check:
../homaLinux/scripts/kernel-doc -none *.c
clean:
make -C $(KDIR) 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 $(KDIR) M=$(PWD) $@
printClean-%:
make -C $(KDIR) M=$(PWD) $@