summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f7a17fd..68e0134 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,15 @@
obj-m = enable_cc.o
KVERSION = $(shell uname -r)
-all:
+all: targets install
+
+targets:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
+ g++ -o latency latency.c
+
clean:
make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean
+ rm latency
+install:
+ make -C /lib/modules/$(KVERSION)/build M=$PWD modules_install
+