Zmake#

Description#

This command will generate a real makefile and make an executable for the current architecture based on the Zsetup generated pre-makefile Makefile.dat. If the Makefile.dat was not yet generated, Zmake will run Zsetup automatically.

Syntax#

% Zmake [ options ] [ target ] \(\hookleftarrow\)

Options

DESCRIPTION

-g

make debug version

-j <N>

used to specify the number of jobs (commands) to run simultaneously during the build process. You can also set a default value using the ZMAKE_CONCURRENCY environment variable.

-md

specify filename to replace Makefile.dat

-h

print help

The following are some predefined targets. To check all available targets and customize them as needed, please refer to the makefile.

Targets

Description

object

build the specified object only (e.g. Zmake o_Linux_64/myplugin.o

lib

build libraries defined with !LIB statements in the library_files configuration file.

clean

clean out makefiles, etc.

objclean

similar to clean, but also clean objects for $Z7MACHINE

orphanclean

clean orphan objects for $Z7MACHINE

archclean

clean out binaries and object files for the current architecture only. Makefiles are not deleted.

distclean

remove all binaries, objects, and generated makefiles, etc. This should leave a minimum set of files to make a source distribution of your code.

Please be careful with the cleaning targets above, as they run without prompting for confirmation.