Commit 30514c8a authored by John van Groningen's avatar John van Groningen
Browse files

add script to build 64 bit windows object files on 64 bit linux using mingw and ml64 (and wine)

parent 28c89583
..\..\ml64_8.00.30806\ml64.exe /nologo /c /Fo _startup0.o _startup0.asm
..\..\ml64_8.00.30806\ml64.exe /nologo /c /Fo _startup1_.o astartup.asm
.\rename_Tn_sections_and_dINT _startup1_.o _startup1.o
..\..\ml64_8.00.30806\ml64.exe /nologo /c /DPROFILE /Fo _startup1Profile_.o astartup.asm
.\rename_Tn_sections_and_dINT _startup1Profile_.o _startup1Profile.o
..\..\ml64_8.00.30806\ml64.exe /nologo /c /DPROFILE /DPROFILE_GRAPH /Fo _startup1ProfileGraph_.o astartup.asm
.\rename_Tn_sections_and_dINT _startup1ProfileGraph_.o _startup1ProfileGraph.o
..\..\ml64_8.00.30806\ml64.exe /nologo /c /DPROFILE /DTRACE /Fo _startup1Trace_.o astartup.asm
.\rename_Tn_sections_and_dINT _startup1Trace_.o _startup1Trace.o
..\..\ml64_8.00.40904\ml64.exe /nologo /c /Fo _startup3.o afileIO3.asm
#!/bin/bash
x86_64-w64-mingw32-gcc -O rename_Tn_sections_and_dINT.c -o rename_Tn_sections_and_dINT.exe
x86_64-w64-mingw32-gcc -c -O -DWINDOWS -DTIME_PROFILE -DWRITE_HEAP wcon.c -o _startup2.o
x86_64-w64-mingw32-gcc -c -O -DWINDOWS profile_graph.c -o _startup1ProfileGraphB.o
# move include windows.h to the first line because otherwise __int64 is not defined in wcon.h
echo -e '#include <_mingw.h>\r' | cat - wfileIO3.c > wfileIO3.c_
mv wfileIO3.c_ wfileIO3.c
x86_64-w64-mingw32-gcc -c -O -DWINDOWS -DA64 -DTIME_PROFILE wfileIO3.c -o _startup4.o
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment