aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: c84246a0711aee70aeb4cd6c0075ff8855c23cb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC = gcc
ACC = arm-linux-gnueabihf-gcc
CFLAGS = -Wall 

all: x86 copy

armhf: 
	$(ACC) $(CFLAGS) src/qmc5883.c src/hih61xx.c src/lm75.c src/main.c -o build/i2sensors-armhf

x86: 
	$(CC) $(CFLAGS) src/qmc5883.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/*