# change next line to match your configuration BIN=/home/eric/CodeSourcery/Sourcery_G++_Lite/bin GCC=$(BIN)/arm-none-linux-gnueabi-gcc COPT=-O3 -std=c99 -lpthread -D_REENTRANT build: hello.c @echo "--- Compiling..." $(GCC) $(COPT) hello.c -o hello clean: rm -f hello upload: build @echo "--- Uploading binary..." scp hello root@ev3: run: upload @echo "--- Starting execution on target..." ssh -t root@ev3 ./hello