-
Notifications
You must be signed in to change notification settings - Fork 23
Building
On Windows, you will need the following to build SPASM-ng:
-
Visual Studio with C++ support
Visual Studio 2012 or newer is recommended, but it may be possible to downgrade. See http://stackoverflow.com/a/16196505 for more info.
On Linux, Mac OS X, and other *nix, you will need the following to build SPASM-ng:
- C/C++ Compiler (GCC, Clang, etc.)
- GMP Library (found at https://gmplib.org/)
- OpenSSL Library (found at https://www.openssl.org/)
Note that if you are using Linux, your distribution will likely have pre-built packages (and development packages) available to install. You should use these first before attempting to install the above libraries yourself.
Suggested packages for Ubuntu/Debian:
- build-essential
- libssl-dev
- zlib1g-dev
- libgmp-dev
- checkinstall (optional, only if you want to build Debian packages - .deb files)
On Windows, simply build with the included Visual Studio project file.
On Linux, Mac OS X, and other *nix, simply build by running:
make
# Optional: install SPASM-ng (you may need sudo/su/root):
make install
For Debian systems, you can run the following to create a Debian package:
# You should "make clean" before running this!
make clean
# Create a Debian package (builds opt target):
make debian
Other Makefile commands:
# You should "make clean" before running any of this!
make clean
# Build with -static (static linking, bigger binary due to
# including libraries):
make static
# Build with -O3 optimization:
make opt
# Build with both -static and -O3 optimization:
make opt-static
# Create tarball of spasm-ng binary (builds opt-static target):
make tar