112884Sjason@lowepower.comSERVER_USER=
212884Sjason@lowepower.comSERVER_PATH=/z/www/htdocs/dist/current/test-progs/hello/bin/arm/linux
312884Sjason@lowepower.comFETCH_PATH=http://gem5.org/dist/current/test-progs/hello/bin/arm/linux
412884Sjason@lowepower.comUPLOAD_LOCATION=$(SERVER_USER)daystrom.gem5.org:$(SERVER_PATH)
512884Sjason@lowepower.com
612884Sjason@lowepower.comall: hello64-static hello32-static
712884Sjason@lowepower.com
812884Sjason@lowepower.comupload: hello64-static hello32-static
912884Sjason@lowepower.com	scp hello64-static hello32-static $(UPLOAD_LOCATION)
1012884Sjason@lowepower.com
1112884Sjason@lowepower.comhello64-static: hello.c dockcross-arm64
1212884Sjason@lowepower.com	./dockcross-arm64 bash -c '$$CC hello.c -o hello64-static -static'
1312884Sjason@lowepower.com
1412884Sjason@lowepower.comhello32-static: hello.c dockcross-armv7
1512884Sjason@lowepower.com	./dockcross-armv7 bash -c '$$CC hello.c -o hello32-static -static'
1612884Sjason@lowepower.com
1712884Sjason@lowepower.comdockcross-arm64:
1812884Sjason@lowepower.com	docker run --rm dockcross/linux-arm64 > ./dockcross-arm64
1912884Sjason@lowepower.com	chmod +x ./dockcross-arm64
2012884Sjason@lowepower.com
2112884Sjason@lowepower.comdockcross-armv7:
2212884Sjason@lowepower.com	docker run --rm dockcross/linux-armv7 > ./dockcross-armv7
2312884Sjason@lowepower.com	chmod +x ./dockcross-armv7
2412884Sjason@lowepower.com
2512884Sjason@lowepower.comclean:
2612884Sjason@lowepower.com	rm -f dockcross* hello64-static hello32-static
27