%
% $Id: NT386,v 1.58 2008-05-30 11:55:13 jkrell Exp $
%
% Copyright 1996-2000 Critical Mass, Inc. All rights reserved.
% See file COPYRIGHT-CMASS for details.
%
% Standard configuration file for an x86 machine running Windows NT or perhaps Windows 95,
% uses the integrated backend, Win32 threads, Win32 gui, Microsoft C library.
%
% Most of the variables in this file are independent of each other and
% arbitrary configurations can be produced by changing them.
%

%
% This could be NT386.common, but put it here
% for the sake m3cgcat.exe + M3CONFIG environment variable.
%
readonly TARGET = "NT386"   % code generation target

if M3_PROFILING
    readonly PROFILING_P = "p"
else
    readonly PROFILING_P = ""
end

readonly BUILD_DIR    = "NT386" & PROFILING_P
readonly OS_TYPE      = "WIN32"
readonly GNU_PLATFORM = "i686-pc-mingw32" % "cpu-vendor-os" string for GNU

readonly M3_BACKEND_MODE = "0"
% -- defines how the frontend, backend, and assembler interact
%  "0"  -- don't call m3_backend, M3CG produces object code
%  "1"  -- don't call m3_backend, M3CG produces assembly code
%  "2"  -- call m3_backend, it produces object code
%  "3"  -- call m3_backend, it produces assembly code

% for bootstrapping from older tools
readonly NAMING_CONVENTIONS = "2"

%
% "MS" cl
% "GNU" gcc
%
readonly C_COMPILER = "MS"

%
% "MS" link
% "GNU" gcc/ld
%
readonly LINKER = "MS"

%
% "MS" Win32 kernel threads
% "PTHREADS" Cygwin pthreads
%
% This is currently ignored, but a reasonable idea.
%
readonly THREAD_LIBRARY = "MS"

%
% "MS"
% "X"
%
readonly WINDOW_LIBRARY = "MS"

include("NT386.common")
