cmake_minimum_required(VERSION 3.23) project(mwcc) set(CMAKE_CXX_STANDARD 14) include_directories(.) include_directories(includes) include_directories(sdk_hdrs) # add_compile_definitions(CW_ENABLE_IRO_DEBUG) add_compile_definitions(CW_ENABLE_PCODE_DEBUG CW_TARGET_MACH CW_CLT) add_executable(mwcc command_line/CmdLine/Src/Clients/CLStaticMain.c command_line/CmdLine/Src/Clients/ClientGlue.c command_line/CmdLine/Src/CLMain.c command_line/CmdLine/Src/MacEmul/Resources.c command_line/CmdLine/Src/Envir/CLErrors.c command_line/CmdLine/Src/MacEmul/ResourceStrings.c command_line/CmdLine/Src/Plugins/CLPlugins.c command_line/CmdLine/Src/Callbacks/CLParserCallbacks_v1.cpp command_line/CmdLine/Src/Envir/CLIO.c command_line/CmdLine/Src/CLToolExec.c command_line/CmdLine/Src/OSLib/Posix.c command_line/CmdLine/Src/OSLib/StringExtras.c command_line/CmdLine/Src/OSLib/Generic.c command_line/CmdLine/Src/Project/CLProj.c command_line/CmdLine/Src/CLLicenses.c command_line/CmdLine/Src/OSLib/MemUtils.c command_line/CmdLine/Src/CLPluginRequests.cpp command_line/CmdLine/Src/MacEmul/LowMem.c command_line/CmdLine/Src/CLFileOps.c command_line/CmdLine/Src/CLPrefs.c command_line/CmdLine/Src/CLTarg.c command_line/CmdLine/Src/Project/CLAccessPaths.c command_line/CmdLine/Src/OSLib/MacSpecs.c command_line/CmdLine/Src/OSLib/StringUtils.c command_line/CmdLine/Src/MacEmul/Memory.c command_line/CmdLine/Src/MacEmul/Files.c command_line/CmdLine/Src/MacEmul/TextUtils.c command_line/CmdLine/Src/CLFileTypes.c command_line/CmdLine/Src/Project/CLFiles.c command_line/CmdLine/Src/Project/CLOverlays.c command_line/CmdLine/Src/Project/CLSegs.c command_line/CmdLine/Src/Callbacks/CLDropinCallbacks_V10.cpp command_line/CmdLine/Src/OSLib/MacFileTypes.c command_line/CmdLine/Src/OSLib/FileHandles.c command_line/CmdLine/Src/Callbacks/CLCompilerLinkerDropin_V10.cpp command_line/CmdLine/Src/CLDependencies.c command_line/CmdLine/Src/CLWriteObjectFile.c command_line/CmdLine/Src/CLBrowser.c command_line/CmdLine/Src/CLIncludeFileCache.c command_line/CmdLine/Src/CLLoadAndCache.c command_line/CmdLine/Src/MacEmul/ErrMgr.c compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Static/cc-mach-ppc-mw.c compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/ParserGlue-mach-ppc-cc.c compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/cc-mach-ppc.c compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Plugin/libimp-mach-ppc.c compiler_and_linker/CmdLine_Tools/MacOS_PPC/Tools_PPC/Src/Options/Glue/TargetOptimizer-ppc-mach.c command_line/C++_Parser/Src/Library/OptimizerHelpers.c command_line/C++_Parser/Src/Library/StdTargetWarningHelpers-cc.c command_line/C++_Parser/Src/Library/WarningHelpers.c compiler_and_linker/unsorted/CCompiler.c compiler_and_linker/unsorted/CParser.c compiler_and_linker/FrontEnd/Common/CompilerTools.c compiler_and_linker/unsorted/CodeGenOptPPC.c compiler_and_linker/unsorted/IrOptimizer.c compiler_and_linker/unsorted/CodeGen.c compiler_and_linker/FrontEnd/C/CPrep.c compiler_and_linker/FrontEnd/C/CScope.c compiler_and_linker/unsorted/CMachine.c compiler_and_linker/unsorted/CExpr.c compiler_and_linker/unsorted/CFunc.c compiler_and_linker/unsorted/CTemplateNew.c compiler_and_linker/unsorted/CError.c compiler_and_linker/unsorted/ObjGenMachO.c compiler_and_linker/unsorted/CDecl.c compiler_and_linker/unsorted/CMangler.c compiler_and_linker/unsorted/CSOM.c compiler_and_linker/unsorted/CABI.c compiler_and_linker/unsorted/CInit.c compiler_and_linker/unsorted/CClass.c compiler_and_linker/unsorted/CIRTransform.c compiler_and_linker/unsorted/CObjC.c compiler_and_linker/unsorted/CInline.c compiler_and_linker/FrontEnd/C/CPrepTokenizer.c compiler_and_linker/unsorted/CTemplateTools.c compiler_and_linker/unsorted/IroPointerAnalysis.c compiler_and_linker/unsorted/InstrSelection.c compiler_and_linker/unsorted/IroFlowgraph.c compiler_and_linker/unsorted/IroLinearForm.c compiler_and_linker/unsorted/IroUtil.c compiler_and_linker/unsorted/IroCSE.c compiler_and_linker/unsorted/IroPropagate.c compiler_and_linker/unsorted/IROUseDef.c compiler_and_linker/unsorted/InlineAsmPPC.c compiler_and_linker/unsorted/IroDump.c compiler_and_linker/unsorted/IroTransform.c compiler_and_linker/unsorted/IroVars.c compiler_and_linker/unsorted/IroEval.c compiler_and_linker/unsorted/IroJump.c compiler_and_linker/unsorted/IroRangePropagation.c compiler_and_linker/unsorted/IroEmptyLoop.c compiler_and_linker/unsorted/IroUnrollLoop.c compiler_and_linker/unsorted/IroLoop.c compiler_and_linker/unsorted/IroExprRegeneration.c compiler_and_linker/unsorted/IroSubable.c compiler_and_linker/unsorted/RegisterInfo.c compiler_and_linker/unsorted/TOC.c compiler_and_linker/unsorted/StackFrame.c compiler_and_linker/unsorted/Registers.c compiler_and_linker/unsorted/PCode.c compiler_and_linker/unsorted/Switch.c compiler_and_linker/unsorted/ValueNumbering.c compiler_and_linker/unsorted/PCodeUtilities.c compiler_and_linker/unsorted/Operands.c compiler_and_linker/unsorted/Exceptions.c compiler_and_linker/unsorted/uDump.c compiler_and_linker/unsorted/COptimizer.c compiler_and_linker/unsorted/GlobalOptimizer.c compiler_and_linker/unsorted/PCodeListing.c compiler_and_linker/unsorted/Peephole.c compiler_and_linker/unsorted/Scheduler.c compiler_and_linker/unsorted/Coloring.c compiler_and_linker/unsorted/PCodeAssembly.c compiler_and_linker/unsorted/Intrinsics.c compiler_and_linker/unsorted/PPCError.c compiler_and_linker/unsorted/CExpr2.c compiler_and_linker/unsorted/CInt64.c compiler_and_linker/unsorted/CPrec.c compiler_and_linker/unsorted/CBrowse.c compiler_and_linker/unsorted/CPreprocess.c compiler_and_linker/unsorted/FuncLevelAsmPPC.c compiler_and_linker/unsorted/CException.c compiler_and_linker/unsorted/CTemplateClass.c compiler_and_linker/unsorted/ScanFloat.c compiler_and_linker/unsorted/CExprConvMatch.c compiler_and_linker/unsorted/CRTTI.c compiler_and_linker/unsorted/CObjCModern.c compiler_and_linker/unsorted/InlineAsm.c compiler_and_linker/unsorted/Unmangle.c compiler_and_linker/unsorted/MachO.c compiler_and_linker/unsorted/GenStabs.c compiler_and_linker/unsorted/CTemplateFunc.c compiler_and_linker/unsorted/IroMalloc.c compiler_and_linker/unsorted/PCodeInfo.c compiler_and_linker/unsorted/StructMoves.c compiler_and_linker/unsorted/FunctionCalls.c compiler_and_linker/unsorted/IroBitVect.c compiler_and_linker/unsorted/OpcodeInfo.c compiler_and_linker/unsorted/InlineAsmRegistersPPC.c compiler_and_linker/unsorted/InlineAsmMnemonicsPPC.c compiler_and_linker/unsorted/InlineAsmRegisters.c compiler_and_linker/unsorted/Alias.c compiler_and_linker/unsorted/LoopDetection.c compiler_and_linker/unsorted/CopyPropagation.c compiler_and_linker/unsorted/CodeMotion.c compiler_and_linker/unsorted/StrengthReduction.c compiler_and_linker/unsorted/LoopOptimization.c compiler_and_linker/unsorted/ConstantPropagation.c compiler_and_linker/unsorted/AddPropagation.c compiler_and_linker/unsorted/UseDefChains.c compiler_and_linker/unsorted/LoadDeletion.c compiler_and_linker/unsorted/VectorArraysToRegs.c compiler_and_linker/unsorted/LiveVariables.c compiler_and_linker/unsorted/MachineSimulation604.c compiler_and_linker/unsorted/MachineSimulation603.c compiler_and_linker/unsorted/MachineSimulationAltiVec.c compiler_and_linker/unsorted/MachineSimulation7400.c compiler_and_linker/unsorted/MachineSimulation603e.c compiler_and_linker/unsorted/MachineSimulation750.c compiler_and_linker/unsorted/MachineSimulation601.c compiler_and_linker/unsorted/MachineSimulation821.c compiler_and_linker/unsorted/InterferenceGraph.c compiler_and_linker/unsorted/SpillCode.c compiler_and_linker/unsorted/GCCInlineAsm.c compiler_and_linker/unsorted/BitVectors.c command_line/C++_Parser/Src/Library/StaticParserGlue.c command_line/C++_Parser/Src/Library/ParserFace.c command_line/C++_Parser/Src/Library/ParserHelpers.c command_line/C++_Parser/Src/Library/ToolHelpers.c command_line/C++_Parser/Src/Library/ParserHelpers-cc.c command_line/C++_Parser/Src/Library/Arguments.c command_line/C++_Parser/Src/Library/ToolHelpers-cc.c command_line/C++_Parser/Src/Library/IO.c command_line/C++_Parser/Src/Library/Projects.c command_line/C++_Parser/Src/Library/Targets.c command_line/C++_Parser/Src/Library/Option.c command_line/C++_Parser/Src/Library/ParserErrors.c command_line/C++_Parser/Src/Library/Utils.c command_line/C++_Parser/Src/Library/Parameter.c command_line/C++_Parser/Src/Library/Help.c command_line/PluginLib/Src/Library/CWPluginsPrivate.cpp command_line/PluginLib/Src/Library/DropInCompilerLinkerPrivate.cpp command_line/PluginLib/Src/Internal/CWSecretPluginCallbacks.cpp command_line/PluginLib/Src/Internal/COSToolsCLT.c command_line/PluginLib/Src/Library/CWParserPluginsPrivate.cpp unsorted/uLibImporter.c unsorted/CmdLineBuildDate.c includes/compiler/RegisterInfo.h includes/compiler/Registers.h includes/compiler/InstrSelection.h includes/compiler/CCompiler.h includes/compiler/CABI.h includes/compiler/CMachine.h includes/compiler/CMangler.h includes/compiler/CScope.h includes/compiler/CPrep.h includes/compiler/CPrepTokenizer.h includes/compiler/CodeGen.h includes/compiler/CClass.h includes/compiler/CFunc.h includes/compiler/CInline.h includes/compiler/Operands.h includes/compiler/PCodeUtilities.h includes/compiler/StackFrame.h includes/compiler/TOC.h includes/compiler/CInit.h includes/compiler/CExpr.h includes/compiler/CParser.h includes/compiler/CDecl.h )