程式語言 - ObjAsm - Makefile



export WINEPREFIX=/home/user/.wine_x86

TARGET=main
MYWINE=box86 wine
OBJASM=/home/user/.wine_x86/drive_c/ObjAsm
MASM32=/home/user/.wine_x86/drive_c/masm32

all:
	${MYWINE} ${OBJASM}/Build/Tools/Assembler/uasm32.exe @c:/ObjAsm/Build/Options/OPT_ASM_RLS_32.txt ${TARGET}.asm
	${MYWINE} ${MASM32}/bin/link.exe @c:/ObjAsm/Build/Options/OPT_LNK_RLS_32.txt ${TARGET}.obj

run:
	${MYWINE} ${TARGET}.exe

clean:
	rm -rf ${TARGET}.exe ${TARGET}.obj