From e624eb01541ea927857559c62b88828e2754c160 Mon Sep 17 00:00:00 2001 From: Gergő J. Miklós Date: Sat, 10 Oct 2020 23:29:28 +0200 Subject: versionstring --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3