blob: 70d89b04631157af060c715a55af9570abfb839a [file] [log] [blame]
all: hello64-static hello64-dynamic hello32-static
hello64-static: hello.c dockcross-x64
./dockcross-x64 bash -c '$$CC hello.c -o hello64-static -static'
hello64-dynamic: hello.c dockcross-x64
./dockcross-x64 bash -c '$$CC hello.c -o hello64-dynamic'
hello32-static: hello.c dockcross-x86
./dockcross-x86 bash -c '$$CC hello.c -o hello32-static -static'
dockcross-x64:
docker run --rm dockcross/linux-x64 > ./dockcross-x64
chmod +x ./dockcross-x64
dockcross-x86:
docker run --rm dockcross/linux-x86 > ./dockcross-x86
chmod +x ./dockcross-x86
clean:
rm -f dockcross-* hello64-static hello64-dynamic hello32-static