# $Id: m3makefile,v 1.4 1995/05/03 21:39:28 sgp13 Exp sgp13 $

# Make file for the whole emulator

# $Log: m3makefile,v $
# Revision 1.4  1995/05/03  21:39:28  sgp13
# Added the -DProfiling option to allow specification of the compiler -Z
# switch. Note: there appears to be a bug in the Solaris 2 version of
# Modula3 in which a process crashes just before writing profiling information
# at the end of execution.
#
# Revision 1.3  1995/04/27  08:40:30  sgp13
# Sensible names given to the programs generated.
#
# Revision 1.2  1995/03/22  13:23:04  sgp13
# Graphical user interface added
#
# Revision 1.1  1995/02/24  22:20:05  sgp13
# Initial revision
#


import("libm3")
import("formsvbt")

if defined ("Profiling")
  m3_option("-Z")
end

# to get coverage information for the libraries they must be pulled into
# the executable rather than using them as separate libraries
# to do this there must be soft links to them from the Emulator/src
# directory
if not defined ("Includelibs")
  override("pdp8lib", "../..")
  import("pdp8lib")

  override("buslib", "../..")
  import("buslib")
end

if defined ("Includelibs")
  module("Bits")
  module("CPU")
  module("Diag")
  module("Flags")
  module("Init")
  module("IntBus")
  module("Memory")
  module("Registers")
  module("WhiteSpaceFilter")
  module("Bus")
  module("CharDevice")
  module("CharReader")
  module("CharWriter")
  module("Device")
  module("ExtdMem")
  module("Interrupts")
  module("Tape")
  module("Teletype")
end

resource("GraphicalUI.fv")
bundle("GraphicalUIBundle")

module("Processor")
module("KeyboardUI")
module("GeneralUI")
module("GraphicalUI")
module("GUISwitchRegister")
module("SimpleInstruction")
interface("OPR")
implementation("InterpretedOPR")
implementation("Control")
program("pdp8e")





