export WINEPREFIX=/home/user/.wine_x86 TARGET=main MYWINE=box86 wine MASM32=/home/user/.wine_x86/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