Makefile.MPW 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. # File: Makefile.MPW
  2. # Targets: All, Dynamic, Static (and Clean, Clean-All)
  3. # Created: Tuesday, July 02, 2002
  4. #
  5. # MPW Makefile for building expat under the "classic" (i.e. pre-X) Mac OS
  6. # Copyright © 2002 Daryle Walker
  7. # Portions Copyright © 2002 Thomas Wegner
  8. # See the COPYING file for distribution information
  9. #
  10. # Description:
  11. # This Makefile lets you build static, dynamic (i.e. shared) and stub
  12. # versions of the expat library as well as the elements.c and outline.c
  13. # examples (built as tools for MPW). This is for PPC only; it should be
  14. # no problem to build a 68K version of the expat library, though.
  15. #
  16. # Usage:
  17. # Buildprogram All
  18. # or Buildprogram Dynamic
  19. # or Buildprogram Static
  20. #
  21. # Note: You first have to rename this file to "Makefile", or the Buildprogram
  22. # commando will not recognize it.
  23. #
  24. MAKEFILE = Makefile
  25. ¥MondoBuild¥ = {MAKEFILE} # Make blank to avoid rebuilds when makefile is modified
  26. ObjDir = :
  27. SrcDir = :
  28. HdrDir = :
  29. ToolDir = ::examples:
  30. Includes = -i {HdrDir}
  31. Sym-PPC = -sym off
  32. Defines = -d MACOS_CLASSIC
  33. PPCCOptions = {Includes} {Sym-PPC} -w 35 {Defines}
  34. FragName = libexpat
  35. ### Source Files ###
  36. SrcFiles = ¶
  37. "{SrcDir}xmlparse.c" ¶
  38. "{SrcDir}xmlrole.c" ¶
  39. "{SrcDir}xmltok.c"
  40. ToolSrcFiles = ¶
  41. "{ToolDir}elements.c" ¶
  42. "{ToolDir}outline.c"
  43. ### Object Files ###
  44. ObjFiles-PPC = ¶
  45. "{ObjDir}xmlparse.c.o" ¶
  46. "{ObjDir}xmlrole.c.o" ¶
  47. "{ObjDir}xmltok.c.o"
  48. ElementToolObjFile = "{ObjDir}elements.c.o"
  49. OutlineToolObjFile = "{ObjDir}outline.c.o"
  50. ### Libraries ###
  51. StLibFiles-PPC = ¶
  52. "{PPCLibraries}StdCRuntime.o" ¶
  53. "{PPCLibraries}PPCCRuntime.o" ¶
  54. "{PPCLibraries}PPCToolLibs.o"
  55. ShLibFiles-PPC = ¶
  56. "{SharedLibraries}InterfaceLib" ¶
  57. "{SharedLibraries}StdCLib" ¶
  58. "{SharedLibraries}MathLib"
  59. LibFiles-PPC = ¶
  60. {StLibFiles-PPC} ¶
  61. {ShLibFiles-PPC}
  62. ### Special Files ###
  63. ExportFile = "{ObjDir}{FragName}.exp"
  64. StLibFile = "{ObjDir}{FragName}.MrC.o"
  65. ShLibFile = "{ObjDir}{FragName}"
  66. StubFile = "{ObjDir}{FragName}.stub"
  67. ElementsTool = "{ToolDir}elements"
  68. OutlineTool = "{ToolDir}outline"
  69. ### Default Rules ###
  70. .c.o Ä .c {¥MondoBuild¥}
  71. {PPCC} {depDir}{default}.c -o {targDir}{default}.c.o {PPCCOptions}
  72. ### Build Rules ###
  73. All Ä Dynamic {ElementsTool} {OutlineTool}
  74. Static Ä {StLibFile}
  75. Dynamic Ä Static {ShLibFile} {StubFile}
  76. {StLibFile} ÄÄ {ObjFiles-PPC} {StLibFiles-PPC} {¥MondoBuild¥}
  77. PPCLink ¶
  78. -o {Targ} ¶
  79. {ObjFiles-PPC} ¶
  80. {StLibFiles-PPC} ¶
  81. {Sym-PPC} ¶
  82. -mf -d ¶
  83. -t 'XCOF' ¶
  84. -c 'MPS ' ¶
  85. -xm l
  86. {ShLibFile} ÄÄ {StLibFile} {ShLibFiles-PPC} {ExportFile} {¥MondoBuild¥}
  87. PPCLink ¶
  88. -o {Targ} ¶
  89. {StLibFile} ¶
  90. {ShLibFiles-PPC} ¶
  91. {Sym-PPC} ¶
  92. -@export {ExportFile} ¶
  93. -fragname {FragName} ¶
  94. -mf -d ¶
  95. -t 'shlb' ¶
  96. -c '????' ¶
  97. -xm s
  98. {StubFile} ÄÄ {ShLibFile} {¥MondoBuild¥}
  99. shlb2stub -o {Targ} {ShLibFile}
  100. {ElementsTool} ÄÄ {ElementToolObjFile} {StubFile} {LibFiles-PPC} {¥MondoBuild¥}
  101. PPCLink ¶
  102. -o {Targ} ¶
  103. {ElementToolObjFile} ¶
  104. {StLibFile} ¶
  105. {LibFiles-PPC} ¶
  106. {Sym-PPC} ¶
  107. -mf -d ¶
  108. -t 'MPST' ¶
  109. -c 'MPS '
  110. {OutlineTool} ÄÄ {OutlineToolObjFile} {StubFile} {LibFiles-PPC} {¥MondoBuild¥}
  111. PPCLink ¶
  112. -o {Targ} ¶
  113. {OutlineToolObjFile} ¶
  114. {StLibFile} ¶
  115. {LibFiles-PPC} ¶
  116. {Sym-PPC} ¶
  117. -mf -d ¶
  118. -t 'MPST' ¶
  119. -c 'MPS '
  120. ### Special Rules ###
  121. {ExportFile} ÄÄ "{HdrDir}expat.h" {¥MondoBuild¥}
  122. StreamEdit -d ¶
  123. -e "/¥('XMLPARSEAPI('Å') ')Ç0,1È'XML_'([A-Za-z0-9_]+)¨1'('/ Print 'XML_' ¨1" ¶
  124. "{HdrDir}expat.h" > {Targ}
  125. ### Required Dependencies ###
  126. "{ObjDir}xmlparse.c.o" Ä "{SrcDir}xmlparse.c"
  127. "{ObjDir}xmlrole.c.o" Ä "{SrcDir}xmlrole.c"
  128. "{ObjDir}xmltok.c.o" Ä "{SrcDir}xmltok.c"
  129. "{ObjDir}elements.c.o" Ä "{ToolDir}elements.c"
  130. "{ObjDir}outline.c.o" Ä "{ToolDir}outline.c"
  131. ### Optional Dependencies ###
  132. ### Build this target to clean out generated intermediate files. ###
  133. Clean Ä
  134. Delete {ObjFiles-PPC} {ExportFile} {ElementToolObjFile} {OutlineToolObjFile}
  135. ### Build this target to clean out all generated files. ###
  136. Clean-All Ä Clean
  137. Delete {StLibFile} {ShLibFile} {StubFile} {ElementsTool} {OutlineTool}
  138. ### Build this target to generate "include file" dependencies. ###
  139. Dependencies Ä $OutOfDate
  140. MakeDepend ¶
  141. -append {MAKEFILE} ¶
  142. -ignore "{CIncludes}" ¶
  143. -objdir "{ObjDir}" ¶
  144. -objext .o ¶
  145. {Defines} ¶
  146. {Includes} ¶
  147. {SrcFiles}