Skip to content
Albert Huang edited this page Mar 28, 2015 · 3 revisions

Requirements

On Windows, you will need the following to build SPASM-ng:

On Linux, Mac OS X, and other *nix, you will need the following to build SPASM-ng:

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)

Building

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
Clone this wiki locally