.key CompFlags,LinkFlags
failat 50

m2c <CompFlags> FileReq.def
if exists FileReq.defE
  m2error FileReq
  echo "*nERROR in FileReq.def"
  skip Error
endif

m2c <CompFlags> FileReq.mod
if exists FileReq.modE
  m2error FileReq
  echo "*nERROR in FileReq.mod"
  skip Error
endif

m2c <CompFlags> CrossFont.def
if exists CrossFont.defE
  m2error CrossFont
  echo "*nERROR in CrossFont.def"
  skip Error
endif

m2c <CompFlags> CrossFont.mod
if exists CrossFont.modE
  m2error CrossFont
  echo "*nERROR in CrossFont.mod"
  skip Error
endif

m2c <CompFlags> CPCGlobal.def
if exists CPCGlobal.defE
  m2error CPCGlobal.def
  echo "*nERROR in CPCGlobal.def"
  skip Error
endif

m2c <CompFlags> CPCGlobal.mod
if exists CPCGlobal.modE
  m2error CPCGlobal
  echo "*nERROR in CPCGlobal.mod"
  skip Error
endif

m2c <CompFlags> CPCSleep.def
if exists CPCSleep.defE
  m2error CPCSleep
  echo "*nERROR in CPCSleep.def"
  skip Error
endif

m2c <CompFlags> CPCSleep.mod
if exists CPCSleep.modE
  m2error CPCSleep
  echo "*nERROR in CPCSleep.mod"
  skip Error
endif

m2c <CompFlags> CPCMenu.def
if exists CPCMenu.defE
  m2error CPCMenu
  echo "*nERROR in CPCMenu.def"
  skip Error
endif

m2c <CompFlags> CPCMenu.mod
if exists CPCMenu.modE
  m2error CPCMenu
  echo "*nERROR in CPCMenu.mod"
  skip Error
endif

m2c <CompFlags> CPCRequesters.def
if exists CPCRequesters.defE
  m2error CPCRequesters
  echo "*nERROR in CPCRequesters.def"
  skip Error
endif

m2c <CompFlags> CPCRequesters.mod
if exists CPCRequesters.modE
  m2error CPCRequesters
  echo "*nERROR in CPCRequesters.mod"
  skip Error
endif

m2c <CompFlags> CPCPrint.def
if exists CPCPrint.defE
  m2error CPCPrint
  echo "*nERROR in CPCPrint.def"
  skip Error
endif

m2c <CompFlags> CPCPrint.mod
if exists CPCPrint.modE
  m2error CPCPrint
  echo "*nERROR in CPCPrint.mod"
  skip Error
endif

m2c <CompFlags> CPCDosIO.def
if exists CPCDosIO.defE
  m2error CPCDosIO
  echo "*nERROR in CPCDosIO.def"
  skip Error
endif

m2c <CompFlags> CPCDosIO.mod
if exists CPCDosIO.modE
  m2error CPCDosIO
  echo "*nERROR in CPCDosIO.mod"
  skip Error
endif

m2c <CompFlags> Cross
if exists cross.modE
  m2error Cross
  echo "*nERROR in Cross.mod"
  skip Error
endif

m2l <LinkFlags> Cross
echo "*n*nSuccessful compilation...*n"
skip TheEnd

lab Error
  echo "*n*nUnsuccessful compilation... no new executable created!*n"

lab TheEnd
  failat 10
