-
Notifications
You must be signed in to change notification settings - Fork 171
Classic Building the libraries
Warning
Rebuilding the libraries can take a very long time, especially on Windows and older hardware. The nightly source tarballs and kits contains pre-built libraries which you can extract to save time.
The z88dk libraries are placed in the {z88dk}/libsrc
folder.
The compiler itself must be built (or installed) already and the system environment must be set with the correct file paths.
The Unix style 'make' command must be present too.
Type make
and let the build process proceed.
Once the libs are compiled copy them (*.lib) to {z88dk}/lib/clibs
.
Happy coding!
The following is a recipe for building the libraries from a vanilla machine, you will probably need adjust if you've already got a source tree.
- Open git-bash
git clone https://www.github.com/z88dk/z88dk
- Download the latest build from http://nightly.z88dk.org
- Copy the bin folder from the nightly kit into the cloned tree
- Download make-4.1-2-without-guile-w32-bin.zip (get the version without guile) from https://sourceforge.net/projects/ezwinports/files/
- Open git-bash in administrator mode
cd /
unzip make-4.1-2-without-guile-w32-bin.zip
- Open git-bash as a normal user
cd z88dk/
export PATH=$(pwd)/bin:$PATH
export ZCCCFG=$(pwd)/lib/config
cd libsrc
make
cp *.lib ../lib/clibs/
Despite providing this recipe, it should be noted that it will an order of magnitude quicker to use the libraries from an appropriate nightly build.
- Overview
- Platform List
- Unsupported Platforms
- i8080/5 Support
- Homebrew hardware quickstart
- Retargetting
- Building the libraries
- Clang support
- Pragmas
- Adding to Classic
- Introduction
- Library Configuration
- CRT
- Header Files
- Assembly Language
- Library in Depth
- Embedded Platform
- Adding to NewLib
- Benchmarks
- Datatypes
- Debugging
- Decompression
- More than 64k
- Deficiencies
- Compiling Larger Applications
- Importing routines written in 8080 assembly mnemonics
- Using CP/M libraries in REL format with z88dk
- Writing optimal code
- Speeding up Compilation
- CMake usage