% Copyright (C) 1994, Digital Equipment Corporation
% All rights reserved.
% See the file COPYRIGHT for a full description. 
%
% by Stephen Harrison (harrison@src.dec.com)
%
% Last modified on Fri Feb 17 15:05:48 PST 1995 by kalsow  
%      modified on Sun Mar 27 10:38:19 PST 1994 by harrison

% m3_option ("-times")

import("libm3")
import("m3middle")
import("sysutils")

Module   ("Quake")
Module   ("QToken")
Module   ("QIdent")
Module   ("QScanner")
Module   ("QCode")
Module   ("QCompiler")
Module   ("QValue")
Table    ("QV", "Integer", "QValue")
Sequence ("QV", "QValue")
Module   ("QMachine")
Module   ("QVal")
Module   ("MxConfig")
Module   ("M3Path")


%
% from the former M3Config, now a building block of MxConfig
%

readonly M3xConfig_body = [
  "(* Copyright (C) 1994, Digital Equipment Corporation *)",
  "(* All rights reserved.                              *)",
  "(* See the file COPYRIGHT for a full description.    *)",
  "",
  "(* This interface exports a little bit of the configuration",
  "   information used by cm3. See MxConfig for more. *)",
  "",
  "INTERFACE M3xConfig;",
  "",
  "CONST  (* misc. configuration *)",
  "  HOST           = \"" & TARGET & "\";",
  "  HOST_OS_TYPE   = \"" & OS_TYPE & "\";",
  "  HOST_WORD_SIZE = \"" & WORD_SIZE & "\";",
  "  HOST_PATH_SEP  = \"/\";",
  "",
  "END M3xConfig."
]

if defined("_all")
  > "M3xConfig.tmp" in
    foreach line in M3xConfig_body
      write (line, CR)
    end
  end
  cp_if ("M3xConfig.tmp", "M3xConfig.i3")
end

derived_interface ("M3xConfig", HIDDEN)


build_standalone ()
Library("m3quake")

ManPage ("quake","7")
