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 -i "{topsrcdir}"include:mpw:sys:
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 CC_MWCPPC = MWCPPC -d MPW -i "{topsrcdir}"include:mpw:sys: -enum int -opt global,peep,l4,speed
24 CC_68K_GCC = gC -Dpascal= -DANSI_PROTOTYPES -DMPW
26 CC_PPC_GCC = gC -Dpowerc=1 -Dpascal= -DANSI_PROTOTYPES -DMPW
28 # Nothing for the default CFLAGS.
32 # These two definitions must *not* have any trailing blanks.
36 SEGFLAG_PPC = -d dumdum_
38 # Tool to use for making libraries/archives.
42 AR_MWLINK68K = MWLink68K
44 AR_PPCLINK = PPCLink -xm library
46 AR_MWLINKPPC = MWLinkPPC -xm library
50 RANLIB_NULL = null-command
52 RANLIB_RANLIB = ranlib
54 # Compiler and/or linker to use for linking.
56 CC_LD_LINK = Link -w -d -model far {CC_LD_TOOL_FLAGS}
58 CC_LD_MWLINK68K = MWLink68K -w -d -model far {CC_LD_TOOL_FLAGS}
60 CC_LD_PPCLINK = PPCLink -main __start -outputformat xcoff
62 CC_LD_MWLINKPPC = MWLinkPPC -w {CC_LD_TOOL_FLAGS}
66 # Extension for linker output.
70 PROG_EXT_XCOFF = .xcoff
72 # Nothing for the default LDFLAGS.
76 CC_LD_TOOL_FLAGS = -c 'MPS ' -t MPST
78 # Libraries to link against.
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.
85 EXTRALIBS_C = \Option-d
86 "{CLibraries}"StdClib.o \Option-d
87 "{CLibraries}"Math.o \Option-d
88 "{CLibraries}"CSANELib.o \Option-d
89 "{Libraries}"Stubs.o \Option-d
90 "{Libraries}"Runtime.o \Option-d
91 "{Libraries}"Interface.o \Option-d
92 "{Libraries}"ToolLibs.o
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
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
108 # Tool to make PEF with, if needed.
110 MAKEPEF_NULL = null-command
112 MAKEPEF_PPC = MakePEF
114 MAKEPEF_FLAGS = \Option-d
115 -l InterfaceLib.xcoff=InterfaceLib \Option-d
116 -l MathLib.xcoff=MathLib \Option-d
117 -l StdCLib.xcoff=StdCLib
119 MAKEPEF_TOOL_FLAGS = -ft MPST -fc 'MPS '
121 # Resource compiler to use.
125 REZ_PPC = Rez -d WANT_CFRG