1SERVER_USER= 2SERVER_PATH=/z/www/htdocs/dist/current/test-progs/hello/bin/arm/linux 3FETCH_PATH=http://gem5.org/dist/current/test-progs/hello/bin/arm/linux 4UPLOAD_LOCATION=$(SERVER_USER)daystrom.gem5.org:$(SERVER_PATH) 5 6all: hello64-static hello32-static 7 8upload: hello64-static hello32-static 9 scp hello64-static hello32-static $(UPLOAD_LOCATION) 10 11hello64-static: hello.c dockcross-arm64 12 ./dockcross-arm64 bash -c '$$CC hello.c -o hello64-static -static' 13 14hello32-static: hello.c dockcross-armv7 15 ./dockcross-armv7 bash -c '$$CC hello.c -o hello32-static -static' 16 17dockcross-arm64: 18 docker run --rm dockcross/linux-arm64 > ./dockcross-arm64 19 chmod +x ./dockcross-arm64 20 21dockcross-armv7: 22 docker run --rm dockcross/linux-armv7 > ./dockcross-armv7 23 chmod +x ./dockcross-armv7 24 25clean: 26 rm -f dockcross* hello64-static hello32-static 27