aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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