summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: 5d0a901b0585279697cf5e4578b2c1aaa7b6f1b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
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 CW_REPLICATE_PPC_CODEGEN_BUG)

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
        )