Setting eMake emulation

1 minute read

eMake can emulate different make variants: GNU Make (gmake), gmake in a Cygwin environment, and Microsoft NMAKE (nmake). It can also emulate Ninja. By default, --emake-emulation=<mode> is set to gmake, which supports a subset of GNU Make 3.81 (see Unsupported GNU Make Options and Features ).

The following modes are available:

Mode Linux support Windows support

gmake4.3

Yes

Yes

gmake4.2

Yes

Yes

gmake4.1

Yes

Yes

gmake4.0

Yes

Yes

gmake3.82

Yes

Yes

gmake

Yes

Yes

gmake3.81

Yes

Yes

gmake3.80

Yes

Yes

gmake3.79.1

Yes

Yes

nmake

No

Yes

nmake8

No

Yes

nmake7

No

Yes

cygwin

No

Yes

ninja

Yes

Yes

ninja1.9.0

Yes

Yes

ninja1.7.2

Yes

Yes

You can rename emake.exe to nmake.exe, gmake.exe, and so on to change the emulation type for all builds automatically. See the --emake-emulation-table option in the “ eMake Command-Line Options, Variables, and Configuration File ” section.

NMAKE emulation example

To use NMAKE, use the following option to set the emulation type:

--emake-emulation=nmake

Cygwin emulation example

To use Cygwin, use the following option to set the emulation type:

--emake-emulation=cygwin

Ninja emulation example

To use Ninja, use the following option to set the emulation type:

--emake-emulation=ninja