CC = gcc ACC = arm-linux-gnueabihf-gcc CFLAGS = -Wall all: dir x86 #copy dir: mkdir -p build/ 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 geode: $(CC) $(CFLAGS) -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 # rsync -aHv -q -e "ssh" build/i2sensors-arm root@cb2:/tmp/i2sensors clean: rm -f build/*