aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGergő J. Miklós2020-10-10 23:29:28 +0200
committerGergő J. Miklós2020-10-10 23:29:28 +0200
commite624eb01541ea927857559c62b88828e2754c160 (patch)
tree7ec0d2985f3c3776b4ab497aaf00a64b46ee04ea /Makefile
parent32094c850a92fbdc77b05f9d78cb35f385b44c2e (diff)
downloadi2sensors-e624eb01541ea927857559c62b88828e2754c160.tar.gz
i2sensors-e624eb01541ea927857559c62b88828e2754c160.zip
versionstring
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d79e2c9..05a9a5b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
CC = gcc
ACC = arm-linux-gnueabihf-gcc
DATE = $(shell date "+%Y-%m-%d %H:%M:%S" )
-CFLAGS = -Wall -D"_BUILD_TIME_=\"$(DATE)\""
+VFLAGS = -D"_BUILD_TIME_=\"$(DATE)\""
+CFLAGS = -Wall
all: dir x86
##copy
@@ -10,13 +11,13 @@ dir:
mkdir -p build/
armhf:
- $(ACC) $(CFLAGS) src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors-armhf
+ $(ACC) $(CFLAGS) $(VFLAGS) src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors-armhf
x86:
- $(CC) $(CFLAGS) src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors
+ $(CC) $(CFLAGS) $(VFLAGS) src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors
geode:
- $(CC) $(CFLAGS) -m32 -march=geode src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors
+ $(CC) $(CFLAGS) $(VFLAGS) -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