aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGergő J. Miklós2020-10-15 23:28:26 +0200
committerGergő J. Miklós2020-10-15 23:28:26 +0200
commit521dad36cb4533e423fe14602165a534080b7344 (patch)
tree99186a68d442ed18088ab06806304f580d6aff43 /Makefile
parent06d3cf11147a363cbc5d0c5487beadbfc1e03306 (diff)
downloadi2sensors-521dad36cb4533e423fe14602165a534080b7344.tar.gz
i2sensors-521dad36cb4533e423fe14602165a534080b7344.zip
i2sensors: SMBUS lib loading
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 255d599..82169a0 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,9 @@ ACC = arm-linux-gnueabihf-gcc
DATE = $(shell date "+%Y-%m-%d %H:%M:%S" )
VFLAGS = -D"_BUILD_TIME_=\"$(DATE)\""
CFLAGS = -Wall
+#-D"WITH_I2C_SMBUS"
-all: dir x86
+all: dir smbus
##copy
dir:
@@ -13,12 +14,15 @@ dir:
armhf:
$(ACC) $(CFLAGS) $(VFLAGS) src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors-armhf -li2c
-x86:
- $(CC) $(CFLAGS) $(VFLAGS) src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors -li2c
+tiny:
+ $(CC) $(CFLAGS) $(VFLAGS) src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors
geode:
$(CC) $(CFLAGS) $(VFLAGS) -m32 -march=geode src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors -li2c
+smbus:
+ $(CC) $(CFLAGS) $(VFLAGS) -D"WITH_I2C_SMBUS" src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors -li2c
+
copy:
scp -r build/i2sensors-armhf root@cb2:/tmp/i2sensors
# rsync -aHv -q -e "ssh" build/i2sensors-arm root@cb2:/tmp/i2sensors