2008-06-29 09:53:55 +08:00
|
|
|
1. Installing NASM from source (Unix, MacOS X; Windows - Cygwin;
|
|
|
|
Windows - MinGW; DOS - DJGPP)
|
|
|
|
2. Installing NASM from source (Windows - MS Visual C++)
|
|
|
|
3. Installing NASM from source (DOS, Windows, OS/2 - OpenWatcom)
|
2002-05-01 05:09:12 +08:00
|
|
|
|
|
|
|
|
2008-06-29 09:53:55 +08:00
|
|
|
1. Installing NASM from source (Unix, MacOS X; Windows - Cygwin;
|
|
|
|
Windows - MinGW; DOS - DJGPP)
|
|
|
|
================================================================
|
2007-09-17 13:27:07 +08:00
|
|
|
|
2007-11-29 02:41:55 +08:00
|
|
|
Installing NASM is pretty straightforward on Unix or Unix-like systems
|
2008-06-29 09:53:55 +08:00
|
|
|
with a C compiler, Make, and standard shell tools installed, including
|
|
|
|
MinGW for Windows (with MSYS installed) and DJGPP for DOS with the
|
|
|
|
appropriate tools. Perl is not required for compiling unmodified
|
|
|
|
sources from a tarball, but is required to build from git or for most
|
|
|
|
source modifications.
|
2007-09-17 13:27:07 +08:00
|
|
|
|
|
|
|
If you checked out source from git you will need to run autoconf to
|
2003-08-30 03:05:39 +08:00
|
|
|
generate configure, otherwise you don't have to.
|
2002-05-01 05:09:12 +08:00
|
|
|
|
2008-06-29 09:53:55 +08:00
|
|
|
$ sh autogen.sh
|
2002-05-01 05:09:12 +08:00
|
|
|
|
|
|
|
Then run configure to detect your platform settings and generate makefiles.
|
|
|
|
|
2008-06-29 09:53:55 +08:00
|
|
|
$ sh configure
|
2002-05-01 05:09:12 +08:00
|
|
|
|
2003-08-30 03:05:39 +08:00
|
|
|
You can get information about available configuration options by
|
2008-06-29 09:53:55 +08:00
|
|
|
running `sh configure --help`.
|
2002-05-01 05:09:12 +08:00
|
|
|
|
2007-11-29 02:41:55 +08:00
|
|
|
If configure fails, please file a bug report with detailed platform
|
|
|
|
information at:
|
|
|
|
|
|
|
|
http://www.sf.net/projects/nasm/
|
2002-05-01 05:09:12 +08:00
|
|
|
|
|
|
|
If everything went okay, type
|
|
|
|
|
|
|
|
$ make
|
|
|
|
|
2007-11-29 02:41:55 +08:00
|
|
|
to build NASM, ndisasm and rdoff tools, or
|
2002-05-01 05:09:12 +08:00
|
|
|
|
|
|
|
$ make everything
|
|
|
|
|
|
|
|
to build the former plus the docs.
|
|
|
|
|
2003-08-30 03:05:39 +08:00
|
|
|
You can decrease the size of produces executables by stripping off
|
|
|
|
unnecessary information, to achieve this run
|
2002-05-01 05:09:12 +08:00
|
|
|
|
|
|
|
$ make strip
|
|
|
|
|
2003-08-30 03:05:39 +08:00
|
|
|
If you install to a system-wide location you might need to become
|
|
|
|
root:
|
|
|
|
|
|
|
|
$ su <enter root password>
|
2002-05-01 05:09:12 +08:00
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
$ make install
|
|
|
|
|
|
|
|
optionally followed by
|
|
|
|
|
|
|
|
$ make install_rdf
|
|
|
|
|
|
|
|
Or you can
|
|
|
|
|
|
|
|
$ make install_everything
|
|
|
|
|
|
|
|
to install everything =)
|
|
|
|
|
|
|
|
|
2022-01-10 00:34:35 +08:00
|
|
|
That's it, enjoy!
|
2002-05-01 05:09:12 +08:00
|
|
|
|
|
|
|
|
2008-06-29 09:53:55 +08:00
|
|
|
2. Installing NASM from source (Windows - MS Visual C++)
|
|
|
|
========================================================
|
2007-09-17 13:27:07 +08:00
|
|
|
|
|
|
|
The recommended compiler for NASM on Windows is MinGW
|
2008-06-29 09:53:55 +08:00
|
|
|
(http://www.mingw.org/), but it is also possible to compile with
|
2007-09-17 13:27:07 +08:00
|
|
|
Microsoft Visual C++ (tested with Visual C++ 2005 Express Edition.)
|
|
|
|
|
|
|
|
To do so, start the "Visual C++ Command Shell", go to the directory
|
|
|
|
where the NASM source code was extracted, and run:
|
|
|
|
|
|
|
|
> nmake /f Mkfiles/msvc.mak
|
|
|
|
|
|
|
|
We recommend MinGW over Visual C++ 2005 as we have found it to be more
|
|
|
|
up to date with regards to C99 compliance, and we are increasingly
|
|
|
|
using C99 features in NASM.
|
2007-11-29 02:41:55 +08:00
|
|
|
|
|
|
|
|
2008-06-29 09:53:55 +08:00
|
|
|
3. Installing NASM from source (DOS, Windows, OS/2 - OpenWatcom)
|
|
|
|
================================================================
|
2007-11-29 02:41:55 +08:00
|
|
|
|
2008-06-29 09:53:55 +08:00
|
|
|
NASM has been reported to build correctly with OpenWatcom 1.7 on the
|
|
|
|
Windows and OS/2 platforms. In addition, it *should* work under DOS
|
|
|
|
with the DOS4GW DOS extender, although the NASM developers recommend
|
|
|
|
using DJGPP with the CWSDPMI DOS extender instead.
|
2007-11-29 02:41:55 +08:00
|
|
|
|
|
|
|
A WMAKE make file is provided:
|
|
|
|
|
|
|
|
> wmake -f Mkfiles\openwcom.mak <platform>
|
|
|
|
|
|
|
|
... where <platform> is "dos", "win32" or "os2".
|