1SERVER_USER= 2SERVER_PATH=/z/www/htdocs/dist/current/test-progs/m5-exit/bin/x86/linux 3FETCH_PATH=http://gem5.org/dist/current/test-progs/m5-exit/bin/x86/linux 4 5UPLOAD_LOCATION=$(SERVER_USER)daystrom.gem5.org:$(SERVER_PATH) 6 7M5_UTIL:=${CURDIR}/../../../../util/m5 8M5_INCLUDE:=${CURDIR}/../../../../include/ 9 10all: m5_exit 11 12upload: m5_exit 13 scp m5_exit $(UPLOAD_LOCATION) 14 15# NOTE: For docker to work, all of the files must be in this directory 16m5_exit: m5-exit.c 17 cp -r $(M5_INCLUDE)/gem5 . 18 cp $(M5_UTIL)/m5op_x86.S . 19 ./dockcross-x64 -c '$$CC -I. m5op_x86.S m5-exit.c -o m5_exit -static -DM5' 20 rm m5op_x86.S 21 rm -r gem5 22 23dockcross-x64: 24 docker run --rm dockcross/linux-x64 > ./dockcross-x64 25 chmod +x ./dockcross-x64 26 27clean: 28 rm -f dockcross-* m5_exit 29