aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGergő J. Miklós2019-05-15 19:10:22 +0200
committerGergő J. Miklós2019-05-15 19:10:22 +0200
commitd150a9f31a81a7dc02f2359529a7351c743a0067 (patch)
treeb678ba9988fea60fed794eac9fac1754a605a072 /Makefile
parenta55a3a855af46a8385c1bdcf4083f48a2b2490ba (diff)
downloadi2sensors-d150a9f31a81a7dc02f2359529a7351c743a0067.tar.gz
i2sensors-d150a9f31a81a7dc02f2359529a7351c743a0067.zip
LM75 refactored and Working correctly
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index ca19f51..0c9b0c1 100644
--- a/Makefile
+++ b/Makefile
@@ -2,17 +2,20 @@ CC = gcc
ACC = arm-linux-gnueabihf-gcc
CFLAGS = -Wall
-all: main copy
+all: armhf copy
+#copy
-main:
-# $(CC) $(CFLAGS) src/hmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors
+armhf:
$(ACC) $(CFLAGS) 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
+copy:
+ scp -r build/i2sensors-armhf root@cb2:/tmp/i2sensors
+# rsync -aHv -q -e "ssh" build/i2sensors-arm root@cb2:/tmp/i2sensors
+
clean:
- rm -f build/i2sensors*
+ rm -f build/*
-copy:
- echo
- \ No newline at end of file