home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / libg++-2.7.1-base.tgz / libg++-2.7.1-src.tar / fsf / libg++ / config / mpw-mh-mpw < prev    next >
Text File  |  1995-11-07  |  4KB  |  139 lines

  1. # This is an MPW makefile fragment.
  2.  
  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.
  7.  
  8. # Compiler to use for compiling.
  9.  
  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: -sym on
  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. # "-mpw_chars" is necessary because GNU sources often mix signed and
  23. # unsigned casually.
  24. # "-w off" is not a great idea, but CW7 is complaining about enum
  25. # assignments.
  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}.
  32.  
  33. CC_MWCPPC = MWCPPC -d MPW -enum int -mpw_chars -sym on -w off
  34.  
  35. CC_68K_GCC = gC -Dpascal= -DANSI_PROTOTYPES -DMPW
  36.  
  37. CC_PPC_GCC = gC -Dpowerc=1 -Dpascal= -DANSI_PROTOTYPES -DMPW
  38.  
  39. # Nothing for the default CFLAGS.
  40.  
  41. CFLAGS = 
  42.  
  43. # These two definitions must *not* have any trailing blanks.
  44.  
  45. SEGFLAG_68K = -s 
  46.  
  47. SEGFLAG_PPC = -d dumdum_ 
  48.  
  49. # Tool to use for making libraries/archives.
  50.  
  51. AR_LIB = Lib
  52.  
  53. AR_MWLINK68K = MWLink68K
  54.  
  55. AR_PPCLINK = PPCLink -xm library
  56.  
  57. AR_MWLINKPPC = MWLinkPPC -xm library
  58.  
  59. AR_FLAGS = -o
  60.  
  61. RANLIB_NULL = null-command
  62.  
  63. RANLIB_RANLIB = ranlib
  64.  
  65. # Compiler and/or linker to use for linking.
  66.  
  67. CC_LD_LINK = Link -w -d -model far {CC_LD_TOOL_FLAGS}
  68.  
  69. CC_LD_MWLINK68K = MWLink68K -w -d -model far {CC_LD_TOOL_FLAGS} -sym on
  70.  
  71. CC_LD_PPCLINK = PPCLink -main __start -outputformat xcoff
  72.  
  73. CC_LD_MWLINKPPC = MWLinkPPC -w {CC_LD_TOOL_FLAGS} -sym on
  74.  
  75. CC_LD_GLD = gC
  76.  
  77. # Extension for linker output.
  78.  
  79. PROG_EXT_68K =
  80.  
  81. PROG_EXT_XCOFF = .xcoff
  82.  
  83. # Nothing for the default LDFLAGS.
  84.  
  85. LDFLAGS = -w
  86.  
  87. CC_LD_TOOL_FLAGS = -c 'MPS ' -t MPST
  88.  
  89. # Libraries to link against.
  90.  
  91. # It would appear that the math libraries are not
  92. # needed except to provide a definition for scalb,
  93. # which is called from ldexp, which is referenced
  94. # in the m68k opcodes library.
  95.  
  96. EXTRALIBS_C = \Option-d
  97.     "{CLibraries}"StdClib.o \Option-d
  98.     "{CLibraries}"Math.o \Option-d
  99.     "{CLibraries}"CSANELib.o \Option-d
  100.     "{Libraries}"Stubs.o \Option-d
  101.     "{Libraries}"Runtime.o \Option-d
  102.     "{Libraries}"Interface.o \Option-d
  103.     "{Libraries}"ToolLibs.o
  104.  
  105. EXTRALIBS_PPC = \Option-d
  106.     "{PPCLibraries}"StdCRuntime.o \Option-d
  107.     "{PPCLibraries}"InterfaceLib.xcoff \Option-d
  108.     "{PPCLibraries}"MathLib.xcoff \Option-d
  109.     "{PPCLibraries}"StdCLib.xcoff \Option-d
  110.     "{PPCLibraries}"PPCToolLibs.o \Option-d
  111.     "{PPCLibraries}"PPCCRuntime.o
  112.  
  113. EXTRALIBS_MWCPPC = \Option-d
  114.     "{MWPPCLibraries}"MWStdCRuntime.Lib \Option-d
  115.     "{MWPPCLibraries}"InterfaceLib \Option-d
  116.     "{MWPPCLibraries}"StdCLib \Option-d
  117.     "{MWPPCLibraries}"MathLib \Option-d
  118.     "{MWPPCLibraries}"PPCToolLibs.o
  119.  
  120. # Tool to make PEF with, if needed.
  121.  
  122. MAKEPEF_NULL = null-command
  123.  
  124. MAKEPEF_PPC = MakePEF
  125.  
  126. MAKEPEF_FLAGS = \Option-d
  127.     -l InterfaceLib.xcoff=InterfaceLib \Option-d
  128.     -l MathLib.xcoff=MathLib \Option-d
  129.     -l StdCLib.xcoff=StdCLib
  130.  
  131. MAKEPEF_TOOL_FLAGS = -ft MPST -fc 'MPS '
  132.  
  133. # Resource compiler to use.
  134.  
  135. REZ_68K = Rez
  136.  
  137. REZ_PPC = Rez -d WANT_CFRG
  138.  
  139.