aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGergő J. Miklós2020-10-10 16:49:23 +0200
committerGergő J. Miklós2020-10-10 16:49:23 +0200
commit065984edbcc62f2adb2e4c31146a66e177b3ffc1 (patch)
tree5c2ff92083e1acd2baaf1de9a998cd4ed645c113
parent6bbb8b9e6639125b5539bd8d14e422a9c79c3f0a (diff)
downloadi2sensors-065984edbcc62f2adb2e4c31146a66e177b3ffc1.tar.gz
i2sensors-065984edbcc62f2adb2e4c31146a66e177b3ffc1.zip
makefile
-rw-r--r--.gitignore1
-rw-r--r--Makefile2
-rw-r--r--src/main.c5
3 files changed, 5 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 3b47b1f..8148c1a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
*~
build/
+builder/
.vscode/
diff --git a/Makefile b/Makefile
index c913718..3623794 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ x86:
$(CC) $(CFLAGS) src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors
geode:
- $(CC) $(CFLAGS) -m32 -mtune=geode -march=geode src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors
+ $(CC) $(CFLAGS) -m32 -march=geode src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors
copy:
scp -r build/i2sensors-armhf root@cb2:/tmp/i2sensors
diff --git a/src/main.c b/src/main.c
index 2920a2a..383884d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -11,6 +11,7 @@
#include <linux/i2c-dev.h>
+#include <linux/i2c.h>
#include <sys/ioctl.h>
#include "deftypes.h"
@@ -18,8 +19,8 @@
#include "hih61xx.h"
#include "hmc5883.h"
-#define VERSION 1.24
-
+#define VERSION 1.25
+
// extern void lm75_print_help(void);
// extern void lm75_read_all(const char *opts);
// extern void lm75_read_one(const char *opts);