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