export WINEPREFIX=/home/user/.wine_amd64 TARGET=main MYWINE=box86 wine MASM32=/home/user/.wine_amd64/drive_c/masm32 all: ${MYWINE} ${MASM32}/bin/ml.exe /c /coff /nologo ${TARGET}.asm ${MYWINE} ${MASM32}/bin/link.exe /SUBSYSTEM:WINDOWS /MERGE:.rdata=.text ${TARGET}.obj run: ${MYWINE} ${TARGET}.exe clean: rm -rf ${TARGET}.exe ${TARGET}.obj