Commit | Line | Data |
---|---|---|
b6597455 SS |
1 | # This is an MPW makefile fragment. |
2 | ||
340b14dc SS |
3 | # Since there are a multiplicity of Mac compilers and two different |
4 | # processors, this file is primarily a library of options for each | |
5 | # compiler. Somebody else (such as a configure or build script) will | |
6 | # make the actual choice. | |
b6597455 | 7 | |
340b14dc | 8 | # Compiler to use for compiling. |
266f6652 | 9 | |
340b14dc SS |
10 | CC_MPW_C = C -d MPW_C -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -mc68020 -model far -b -w |
11 | ||
12 | CC_SC = SC -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -mc68020 -model far -b -i '' -i : | |
13 | ||
14 | CC_MWC68K = MWC68K -d MPW -i "{topsrcdir}"include:mpw:sys: | |
15 | ||
16 | CC_PPCC = PPCC -d powerc=1 -d pascal= -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -w | |
17 | ||
18 | CC_MRC = MrC -d powerc=1 -d pascal= -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -i '' -i : -jm | |
19 | ||
20 | CC_SMrC = SMrC -d MPW | |
21 | ||
22 | CC_MWCPPC = MWCPPC -d MPW -i "{topsrcdir}"include:mpw:sys: -enum int -opt global,peep,l4,speed | |
23 | ||
24 | CC_68K_GCC = gC -Dpascal= -DANSI_PROTOTYPES -DMPW | |
25 | ||
26 | CC_PPC_GCC = gC -Dpowerc=1 -Dpascal= -DANSI_PROTOTYPES -DMPW | |
27 | ||
28 | # Nothing for the default CFLAGS. | |
29 | ||
30 | CFLAGS = | |
31 | ||
32 | # These two definitions must *not* have any trailing blanks. | |
33 | ||
34 | SEGFLAG_68K = -s | |
35 | ||
36 | SEGFLAG_PPC = -d dumdum_ | |
37 | ||
38 | # Tool to use for making libraries/archives. | |
39 | ||
40 | AR_LIB = Lib | |
41 | ||
42 | AR_MWLINK68K = MWLink68K | |
43 | ||
44 | AR_PPCLINK = PPCLink -xm library | |
45 | ||
46 | AR_MWLINKPPC = MWLinkPPC -xm library | |
47 | ||
48 | AR_FLAGS = -o | |
49 | ||
50 | RANLIB_NULL = null-command | |
51 | ||
52 | RANLIB_RANLIB = ranlib | |
53 | ||
54 | # Compiler and/or linker to use for linking. | |
55 | ||
56 | CC_LD_LINK = Link -w -d -model far {CC_LD_TOOL_FLAGS} | |
57 | ||
58 | CC_LD_MWLINK68K = MWLink68K -w -d -model far {CC_LD_TOOL_FLAGS} | |
59 | ||
60 | CC_LD_PPCLINK = PPCLink -main __start -outputformat xcoff | |
61 | ||
62 | CC_LD_MWLINKPPC = MWLinkPPC -w {CC_LD_TOOL_FLAGS} | |
63 | ||
64 | CC_LD_GLD = gC | |
65 | ||
66 | # Extension for linker output. | |
67 | ||
68 | PROG_EXT_68K = | |
69 | ||
70 | PROG_EXT_XCOFF = .xcoff | |
71 | ||
72 | # Nothing for the default LDFLAGS. | |
73 | ||
74 | LDFLAGS = -w | |
75 | ||
76 | CC_LD_TOOL_FLAGS = -c 'MPS ' -t MPST | |
77 | ||
78 | # Libraries to link against. | |
b6597455 | 79 | |
e025097f SS |
80 | # It would appear that the math libraries are not |
81 | # needed except to provide a definition for scalb, | |
82 | # which is called from ldexp, which is referenced | |
83 | # in the m68k opcodes library. | |
84 | ||
340b14dc | 85 | EXTRALIBS_C = \Option-d |
b6597455 | 86 | "{CLibraries}"StdClib.o \Option-d |
e025097f SS |
87 | "{CLibraries}"Math.o \Option-d |
88 | "{CLibraries}"CSANELib.o \Option-d | |
b6597455 SS |
89 | "{Libraries}"Stubs.o \Option-d |
90 | "{Libraries}"Runtime.o \Option-d | |
91 | "{Libraries}"Interface.o \Option-d | |
e025097f | 92 | "{Libraries}"ToolLibs.o |
340b14dc SS |
93 | |
94 | EXTRALIBS_PPC = \Option-d | |
95 | "{PPCLibraries}"InterfaceLib.xcoff \Option-d | |
96 | "{PPCLibraries}"MathLib.xcoff \Option-d | |
97 | "{PPCLibraries}"StdCLib.xcoff \Option-d | |
98 | "{PPCLibraries}"PPCToolLibs.o \Option-d | |
99 | "{PPCLibraries}"StdCRuntime.o \Option-d | |
100 | "{PPCLibraries}"PPCCRuntime.o | |
101 | ||
102 | EXTRALIBS_MWCPPC = \Option-d | |
103 | "{MWPPCLibraries}"InterfaceLib \Option-d | |
104 | "{MWPPCLibraries}"MWStdCRuntime.Lib \Option-d | |
105 | "{MWPPCLibraries}"StdCLib \Option-d | |
106 | "{MWPPCLibraries}"PPCToolLibs.o | |
107 | ||
108 | # Tool to make PEF with, if needed. | |
109 | ||
110 | MAKEPEF_NULL = null-command | |
111 | ||
112 | MAKEPEF_PPC = MakePEF | |
113 | ||
114 | MAKEPEF_FLAGS = \Option-d | |
115 | -l InterfaceLib.xcoff=InterfaceLib \Option-d | |
116 | -l MathLib.xcoff=MathLib \Option-d | |
117 | -l StdCLib.xcoff=StdCLib | |
118 | ||
119 | MAKEPEF_TOOL_FLAGS = -ft MPST -fc 'MPS ' | |
120 | ||
121 | # Resource compiler to use. | |
122 | ||
123 | REZ_68K = Rez | |
124 | ||
125 | REZ_PPC = Rez -d WANT_CFRG | |
126 |