CREATING_FILE="L\"\\??\\C:\\Temp\\10\"" WRITING_FILE="L\"\\??\\C:\\Temp\\12\"" WRITING_WORD="L\"HELLO\"" all:create2.exe create.exe writefile2.exe writefile.exe sysenter.obj: sysenter.asm ml -c sysenter.asm create2.exe: sysenter.obj create2.obj link /subsystem:console /NODEFAULTLIB create2.obj sysenter.obj create2.obj: create2.c cl /c /Gz /Od /DWINVER=0x502 /DCREATE_FILE="L\"$(CREATE_FILE)\"" create2.c create.exe: create.obj link /subsystem:windows /NODEFAULTLIB create.obj 2003/ntdll.lib create.obj:create.c cl /Gz /Od /DCREATE_FILE="L\"$(CREATE_FILE)\"" create.c -c writefile2.exe: sysenter.obj writefile2.obj link /subsystem:console /NODEFAULTLIB writefile2.obj sysenter.obj writefile2.obj: writefile2.c cl /c /Gz /Od /DWRITE_FILE="L\"$(WRITE_FILE)\"" /DWRITE_WORD="L\"$(WRITE_WORD)\"" /D WINVER=0x502 writefile2.c writefile.exe: writefile.obj link /subsystem:console /NODEFAULTLIB writefile.obj 2003/ntdll.lib writefile.obj:writefile.c cl /Gz /Od /DWRITE_FILE="L\"$(WRITE_FILE)\"" /DWRITE_WORD="L\"$(WRITE_WORD)\"" writefile.c -c clean: rm *.obj *.exe