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