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