NASM 2.00rc2
[nasm.git] / INSTALL
blobcff1791d82583e89116bae6cdf5e0b9ae8ccfad9
1 1. Installing nasm from source (Unix, MacOS X, Windows/Cygwin,
2    Windows/MinGW)
3 2. Installing nasm from source (Windows/MS Visual C++)
6 1. Installing nasm from source (Unix, MacOS X, Windows/Cygwin, Windows/MinGW)
7 =============================================================================
9 Installing nasm is pretty straightforward on Unix or Unix-like systems
10 with Perl and GNU tools installed, including MinGW for Windows with
11 MSYS installed.  Perl is optional for compiling unmodified sources
12 from a tarball, but is required to build from git or for most source
13 modifications.
15 If you checked out source from git you will need to run autoconf to
16 generate configure, otherwise you don't have to.
18 $ autoheader
19 $ autoconf
21 Then run configure to detect your platform settings and generate makefiles.
23 $ ./configure
25 You can get information about available configuration options by
26 running `./configure --help`.
28 If configure fails, please send bug report with detailed platform
29 information to <nasm-bugs@lists.sourceforge.net> and we will try to
30 help you asap!
32 If everything went okay, type
34 $ make
36 to build nasm, ndisasm and rdoff tools, or
38 $ make everything
40 to build the former plus the docs.
42 You can decrease the size of produces executables by stripping off
43 unnecessary information, to achieve this run
45 $ make strip
47 If you install to a system-wide location you might need to become
48 root:
50 $ su <enter root password>
52 then
54 $ make install
56 optionally followed by 
58 $ make install_rdf
60 Or you can 
62 $ make install_everything
64 to install everything =)
67 Thats it, enjoy!
70 2. Installing nasm from source (Windows/MS Visual C++)
71 ======================================================
73 The recommended compiler for NASM on Windows is MinGW
74 (http://www.mingw.org), but it is also possible to compile with
75 Microsoft Visual C++ (tested with Visual C++ 2005 Express Edition.)
77 To do so, start the "Visual C++ Command Shell", go to the directory
78 where the NASM source code was extracted, and run:
80 > nmake /f Mkfiles/msvc.mak
82 We recommend MinGW over Visual C++ 2005 as we have found it to be more
83 up to date with regards to C99 compliance, and we are increasingly
84 using C99 features in NASM.