* binutils.texi: Change --with-targets to --enable-targets.
[deliverable/binutils-gdb.git] / config / mpw-mh-mpw
CommitLineData
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
10CC_MPW_C = C -d MPW_C -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -mc68020 -model far -b -w
11
12CC_SC = SC -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -mc68020 -model far -b -i '' -i :
13
14CC_MWC68K = MWC68K -d MPW -i "{topsrcdir}"include:mpw:sys:
15
16CC_PPCC = PPCC -d powerc=1 -d pascal= -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -w
17
18CC_MRC = MrC -d powerc=1 -d pascal= -d ALMOST_STDC -d ANSI_PROTOTYPES -d MPW -i '' -i : -jm
19
20CC_SMrC = SMrC -d MPW
21
22CC_MWCPPC = MWCPPC -d MPW -i "{topsrcdir}"include:mpw:sys: -enum int -opt global,peep,l4,speed
23
24CC_68K_GCC = gC -Dpascal= -DANSI_PROTOTYPES -DMPW
25
26CC_PPC_GCC = gC -Dpowerc=1 -Dpascal= -DANSI_PROTOTYPES -DMPW
27
28# Nothing for the default CFLAGS.
29
30CFLAGS =
31
32# These two definitions must *not* have any trailing blanks.
33
34SEGFLAG_68K = -s
35
36SEGFLAG_PPC = -d dumdum_
37
38# Tool to use for making libraries/archives.
39
40AR_LIB = Lib
41
42AR_MWLINK68K = MWLink68K
43
44AR_PPCLINK = PPCLink -xm library
45
46AR_MWLINKPPC = MWLinkPPC -xm library
47
48AR_FLAGS = -o
49
50RANLIB_NULL = null-command
51
52RANLIB_RANLIB = ranlib
53
54# Compiler and/or linker to use for linking.
55
56CC_LD_LINK = Link -w -d -model far {CC_LD_TOOL_FLAGS}
57
58CC_LD_MWLINK68K = MWLink68K -w -d -model far {CC_LD_TOOL_FLAGS}
59
60CC_LD_PPCLINK = PPCLink -main __start -outputformat xcoff
61
62CC_LD_MWLINKPPC = MWLinkPPC -w {CC_LD_TOOL_FLAGS}
63
64CC_LD_GLD = gC
65
66# Extension for linker output.
67
68PROG_EXT_68K =
69
70PROG_EXT_XCOFF = .xcoff
71
72# Nothing for the default LDFLAGS.
73
74LDFLAGS = -w
75
76CC_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 85EXTRALIBS_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
94EXTRALIBS_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
102EXTRALIBS_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
110MAKEPEF_NULL = null-command
111
112MAKEPEF_PPC = MakePEF
113
114MAKEPEF_FLAGS = \Option-d
115 -l InterfaceLib.xcoff=InterfaceLib \Option-d
116 -l MathLib.xcoff=MathLib \Option-d
117 -l StdCLib.xcoff=StdCLib
118
119MAKEPEF_TOOL_FLAGS = -ft MPST -fc 'MPS '
120
121# Resource compiler to use.
122
123REZ_68K = Rez
124
125REZ_PPC = Rez -d WANT_CFRG
126
This page took 0.084672 seconds and 4 git commands to generate.