diff options
author | Gergő J. Miklós | 2020-10-10 23:29:28 +0200 |
---|---|---|
committer | Gergő J. Miklós | 2020-10-10 23:29:28 +0200 |
commit | e624eb01541ea927857559c62b88828e2754c160 (patch) | |
tree | 7ec0d2985f3c3776b4ab497aaf00a64b46ee04ea /Makefile | |
parent | 32094c850a92fbdc77b05f9d78cb35f385b44c2e (diff) | |
download | i2sensors-e624eb01541ea927857559c62b88828e2754c160.tar.gz i2sensors-e624eb01541ea927857559c62b88828e2754c160.zip |
versionstring
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |