Add cpu, make_as_lib, nothreads options to NT_MAKEFILE
authorIvan Maidanski <ivmai@mail.ru>
Tue, 19 Jun 2018 09:15:30 +0000 (12:15 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 19 Jun 2018 09:27:52 +0000 (12:27 +0300)
commit2e2cf93f6e54d7e8b52a6774deb4a78381a0a803
tree59097a567194e122e3c523c31ebee9acb0590ffa
parent71dee52a3aebf90bc1efa37ccd1db954873ae71b
Add cpu, make_as_lib, nothreads options to NT_MAKEFILE

The optional cpu=i386 and cpu=AMD64 arguments are now handled properly.

Issue #223 (bdwgc).

* NT_MAKEFILE: Update header comment (document "make_as_lib=1" and
"nothreads=1" options).
* NT_MAKEFILE (CVTRES_CPU): Defined depending on CPU variable value.
* NT_MAKEFILE [!NOTHREADS] (CFLAGS_MT): Define variable.
* NT_MAKEFILE (CFLAGS_GCDLL, GC_LIB, LINK_GC, GC_DLL, LINK_DLL_FLAGS):
Define depending on the value of MAKE_AS_LIB and CPU variables.
* NT_MAKEFILE (CFLAGS_SPECIFIC): Use CFLAGS_GCDLL, CFLAGS_MT.
NT_MAKEFILE