summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f76db58..f96fbb5 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,14 @@
#LML="/usr/src/linux-headers-$(shell uname -r)/"
LML="/lib/modules/$(shell uname -r)/build/" # Change if required on your system
-obj-m += ina260.o
+obj-m += inahwmon.o
-all: ina260.c
+all: hwmon
+
+ina260: ina260.c
+ make -C $(LML) M=$(PWD) modules
+
+hwmon: inahwmon.c
make -C $(LML) M=$(PWD) modules
run: ina260.c