home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / LordLucifer / win32asm / files / win32asm.exe / Win32ASM / Win32Proto / w32protoB.bat < prev    next >
Encoding:
DOS Batch File  |  1997-11-10  |  1.9 KB  |  46 lines

  1. @Echo.
  2. @Echo This assumes:
  3. @Echo - The Win32ASM tree has been expanded under the root of the
  4. @Echo   current drive,
  5. @Echo - ml and link are somewhere in the path,
  6. @Echo - The Win32sdk import lib files are on the current drive
  7. @Echo   at \Win32SDK\lib
  8. @Echo
  9. @Echo N.B.: No error code checking in the .BAT file, nothing.
  10. @Echo       This is just a brute force example, and I hope you'll use
  11. @Echo       better tools than batch files in the end!
  12. @Echo.
  13. @Echo.
  14. @Echo About to Assemble / Link the EXE, ...
  15. @Pause
  16. @Echo.
  17. ml  /I\Win32ASM\asminc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c w32pabout.asm
  18. ml  /I\Win32ASM\asminc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c w32pinit.asm
  19. ml  /I\Win32ASM\asminc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c w32pmain.asm
  20. ml  /I\Win32ASM\asminc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c w32pmouse.asm
  21. ml  /I\Win32ASM\asminc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c w32pmprocs.asm
  22. ml  /I\Win32ASM\asminc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c w32pprompt.asm
  23. ml  /I\Win32ASM\asminc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c w32pstatbar.asm
  24. ml  /I\Win32ASM\asminc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c w32ptimer.asm
  25. ml  /I\Win32ASM\asminc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c w32ptoolbar.asm
  26. ml  /I\Win32ASM\asminc /coff /Zi /W3 /Fl /Sn /Sc /Cp /c w32putil.asm
  27. @Echo.
  28.  
  29. @Echo: Note: If using MASM 6.12, we don't need the link parm /ENTRY:WinStart as long as we defined
  30. @Echo:       an END WinStart directive at the end of the module containing the .EXE entry point.
  31.  
  32.  
  33. link /DEBUG /DEBUGTYPE:CV /PDB:none /SUBSYSTEM:WINDOWS /MAP /LIBPATH:g:\win32sdk\lib /WARN:3 @w32proto.lk1 >Win32Proto.log
  34. @Echo.
  35. @Echo. ... now about to execute W32Proto.exe...
  36. @Echo
  37. W32Proto
  38. @Echo.
  39. @Echo ... Done.
  40. @Echo The .EXE might look big, but remember full debugging is ON.
  41. @Echo Remove /DEBUG and /DEBUGTYPE to get slim executables.
  42. @Echo The result will shrink to 3/4K files. This might still be more than
  43. @Echo you expected, but there is some fixed overhead in the .PE file format.
  44. @Pause
  45.  
  46.