INSTALL 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. 1. Installing NASM from source (Unix, MacOS X; Windows - Cygwin;
  2. Windows - MinGW; DOS - DJGPP)
  3. 2. Installing NASM from source (Windows - MS Visual C++)
  4. 3. Installing NASM from source (DOS, Windows, OS/2 - OpenWatcom)
  5. 1. Installing NASM from source (Unix, MacOS X; Windows - Cygwin;
  6. Windows - MinGW; DOS - DJGPP)
  7. ================================================================
  8. Installing NASM is pretty straightforward on Unix or Unix-like systems
  9. with a C compiler, Make, and standard shell tools installed, including
  10. MinGW for Windows (with MSYS installed) and DJGPP for DOS with the
  11. appropriate tools. Perl is not required for compiling unmodified
  12. sources from a tarball, but is required to build from git or for most
  13. source modifications.
  14. If you checked out source from git you will need to run autoconf to
  15. generate configure, otherwise you don't have to.
  16. $ sh autogen.sh
  17. Then run configure to detect your platform settings and generate makefiles.
  18. $ sh configure
  19. You can get information about available configuration options by
  20. running `sh configure --help`.
  21. If configure fails, please file a bug report with detailed platform
  22. information at:
  23. http://www.sf.net/projects/nasm/
  24. If everything went okay, type
  25. $ make
  26. to build NASM, ndisasm and rdoff tools, or
  27. $ make everything
  28. to build the former plus the docs.
  29. You can decrease the size of produces executables by stripping off
  30. unnecessary information, to achieve this run
  31. $ make strip
  32. If you install to a system-wide location you might need to become
  33. root:
  34. $ su <enter root password>
  35. then
  36. $ make install
  37. optionally followed by
  38. $ make install_rdf
  39. Or you can
  40. $ make install_everything
  41. to install everything =)
  42. Thats it, enjoy!
  43. 2. Installing NASM from source (Windows - MS Visual C++)
  44. ========================================================
  45. The recommended compiler for NASM on Windows is MinGW
  46. (http://www.mingw.org/), but it is also possible to compile with
  47. Microsoft Visual C++ (tested with Visual C++ 2005 Express Edition.)
  48. To do so, start the "Visual C++ Command Shell", go to the directory
  49. where the NASM source code was extracted, and run:
  50. > nmake /f Mkfiles/msvc.mak
  51. We recommend MinGW over Visual C++ 2005 as we have found it to be more
  52. up to date with regards to C99 compliance, and we are increasingly
  53. using C99 features in NASM.
  54. 3. Installing NASM from source (DOS, Windows, OS/2 - OpenWatcom)
  55. ================================================================
  56. NASM has been reported to build correctly with OpenWatcom 1.7 on the
  57. Windows and OS/2 platforms. In addition, it *should* work under DOS
  58. with the DOS4GW DOS extender, although the NASM developers recommend
  59. using DJGPP with the CWSDPMI DOS extender instead.
  60. A WMAKE make file is provided:
  61. > wmake -f Mkfiles\openwcom.mak <platform>
  62. ... where <platform> is "dos", "win32" or "os2".