1 # This is an MPW makefile fragment.
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.
8 # Compiler to use for compiling.
10 CC_MPW_C = C -d MPW_C -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -mc68020 -model far -b -w
12 CC_SC = SC -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -mc68020 -model far -b -i '' -i :
14 CC_MWC68K = MWC68K -d MPW -enum int -mpw_chars -sym on -w off -mc68020 -model far
16 CC_PPCC = PPCC -d powerc=1 -d pascal= -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -w
18 CC_MRC = MrC -d powerc=1 -d pascal= -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -i '' -i : -jm
22 # "-mpw_chars" is necessary because GNU sources often mix signed and
24 # "-w off" is not a great idea, but CW7 is complaining about enum
26 # "-opt global,peep,l4,speed" is sometimes good, and sometimes bad.
27 # We must use {CIncludes} so that MPW tools will work; {MWCIncludes}
28 # defines stdout, islower, etc, in ways that are incompatible with MPW's
29 # runtime. However, this cannot be done via -i "{CIncludes}", since
30 # that does not affect how <>-type includes happen; instead, the variable
31 # MWCIncludes must be set to point at {CIncludes}.
33 CC_MWCPPC = MWCPPC -d MPW -enum int -mpw_chars -sym on -w off
35 CC_68K_GCC = gC -Dpascal= -DANSI_PROTOTYPES -DMPW
37 CC_PPC_GCC = gC -Dpowerc=1 -Dpascal= -DANSI_PROTOTYPES -DMPW
39 # Nothing for the default CFLAGS.
43 # These two definitions must *not* have any trailing blanks.
47 SEGFLAG_PPC = -d dumdum_
49 # Tool to use for making libraries/archives.
53 AR_MWLINK68K = MWLink68K -xm library
55 AR_PPCLINK = PPCLink -xm library
57 AR_MWLINKPPC = MWLinkPPC -xm library
63 RANLIB_NULL = null-command
65 RANLIB_RANLIB = ranlib
67 # Compiler and/or linker to use for linking.
69 CC_LD_LINK = Link -w -d -model far {CC_LD_TOOL_FLAGS}
71 CC_LD_MWLINK68K = MWLink68K -w {CC_LD_TOOL_FLAGS} -sym on -model far
73 CC_LD_PPCLINK = PPCLink -main __start -outputformat xcoff
75 CC_LD_MWLINKPPC = MWLinkPPC -w {CC_LD_TOOL_FLAGS} -sym on
79 # Extension for linker output.
83 PROG_EXT_XCOFF = .xcoff
85 # Nothing for the default LDFLAGS.
89 CC_LD_TOOL_FLAGS = -c 'MPS ' -t MPST
91 # Libraries to link against.
93 # It would appear that the math libraries are not
94 # needed except to provide a definition for scalb,
95 # which is called from ldexp, which is referenced
96 # in the m68k opcodes library.
98 EXTRALIBS_C = \Option-d
99 "{CLibraries}"StdClib.o \Option-d
100 "{CLibraries}"Math.o \Option-d
101 "{CLibraries}"CSANELib.o \Option-d
102 "{Libraries}"Stubs.o \Option-d
103 "{Libraries}"Runtime.o \Option-d
104 "{Libraries}"Interface.o \Option-d
105 "{Libraries}"ToolLibs.o
107 EXTRALIBS_MWC68K = \Option-d
108 "{CLibraries}"StdClib.o \Option-d
109 "{CLibraries}"Math.o \Option-d
110 "{CLibraries}"CSANELib.o \Option-d
111 "{Libraries}"Stubs.o \Option-d
112 "{Libraries}"Runtime.o \Option-d
113 "{Libraries}"Interface.o \Option-d
114 "{Libraries}"ToolLibs.o \Option-d
115 "{MW68KLibraries}MPW ANSI (4i) C.68K.Lib"
117 EXTRALIBS_PPC = \Option-d
118 "{PPCLibraries}"StdCRuntime.o \Option-d
119 "{PPCLibraries}"InterfaceLib.xcoff \Option-d
120 "{PPCLibraries}"MathLib.xcoff \Option-d
121 "{PPCLibraries}"StdCLib.xcoff \Option-d
122 "{PPCLibraries}"PPCToolLibs.o \Option-d
123 "{PPCLibraries}"PPCCRuntime.o
125 EXTRALIBS_MWCPPC = \Option-d
126 "{MWPPCLibraries}"MWStdCRuntime.Lib \Option-d
127 "{MWPPCLibraries}"InterfaceLib \Option-d
128 "{MWPPCLibraries}"StdCLib \Option-d
129 "{MWPPCLibraries}"MathLib \Option-d
130 "{MWPPCLibraries}"PPCToolLibs.o
132 # Tool to make PEF with, if needed.
134 MAKEPEF_NULL = null-command
136 MAKEPEF_PPC = MakePEF
138 MAKEPEF_FLAGS = \Option-d
139 -l InterfaceLib.xcoff=InterfaceLib \Option-d
140 -l MathLib.xcoff=MathLib \Option-d
141 -l StdCLib.xcoff=StdCLib
143 MAKEPEF_TOOL_FLAGS = -ft MPST -fc 'MPS '
145 # Resource compiler to use.
149 REZ_PPC = Rez -d WANT_CFRG