CREATING_FILE="\\??\\C:\\Temp\\10" WRITING_FILE="\\??\\C:\\Temp\\12" WRITING_WORD="HELLO" all:create2.exe create.exe writefile2.exe writefile.exe sysenter.obj: sysenter.asm ml -c sysenter.asm /nologo create2.exe: sysenter.obj create2.obj link /subsystem:console /NODEFAULTLIB create2.obj sysenter.obj /entry:start create2.obj: create2.c cl /c /Gz /Od /DWINVER=0x501 /DCREATING_FILE="L\"$(CREATING_FILE)\"" create2.c create.exe: create.obj link /subsystem:windows /NODEFAULTLIB create.obj xp/ntdll.lib /entry:start create.obj:create.c cl /Gz /Od /DCREATING_FILE="L\"$(CREATING_FILE)\"" create.c -c writefile2.exe: sysenter.obj writefile2.obj link /subsystem:console /NODEFAULTLIB writefile2.obj sysenter.obj /entry:start writefile2.obj: writefile2.c cl /c /Gz /Od /DWRITING_FILE="L\"$(WRITING_FILE)\"" /DWRITING_WORD="L\"$(WRITING_WORD)\"" /D WINVER=0x501 writefile2.c writefile.exe: writefile.obj link /subsystem:console /NODEFAULTLIB writefile.obj xp/ntdll.lib /entry:start writefile.obj:writefile.c cl /Gz /Od /DWRITING_FILE="L\"$(WRITING_FILE)\"" /DWRITING_WORD="L\"$(WRITING_WORD)\"" writefile.c -c clean: rm *.obj *.exe