home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / ChipCD_1.03.iso / zkuste / macos / Files / hexedit.sit / HexEdit_Release / Project / Makefile < prev    next >
Makefile  |  2002-10-31  |  4KB  |  191 lines

  1. #   File:       Makefile
  2. #   Target:     HexEdit-MPW
  3. #   Created:    Thursday, May 10, 2001 04:49:38 PM
  4.  
  5.  
  6. MAKEFILE        = Makefile
  7. ÑMondoBuildÑ    = {MAKEFILE}  # Make blank to avoid rebuilds when makefile is modified
  8. TargetName        = HexEdit
  9.  
  10. ObjDir          = :Obj:
  11. Includes        = -i :
  12.  
  13. SymOpt            = -sym off
  14. Sym-PPC         = {SymOpt}
  15. Sym-68K         = {SymOpt}
  16.  
  17. CommonCOptions    = -proto strict -opt speed -d __MPW__ {Includes}
  18.  
  19. PPCCOptions     = {Sym-PPC} {CommonCOptions} -w 21 -d TARGET_API_MAC_CARBON=1
  20. COptions        = {Sym-68K} {CommonCOptions} -model far
  21.  
  22.  
  23. ### Source Files ###
  24.  
  25. SrcFiles        =  ╢
  26.                   :Source:AboutBox.c ╢
  27.                   :Source:EditRoutines.c ╢
  28.                   :Source:EditScrollbar.c ╢
  29.                   :Source:EditWindow.c ╢
  30.                   :Source:HexCompare.c ╢
  31.                   :Source:HexSearch.c ╢
  32.                   :Source:Main.c ╢
  33.                   :Source:Menus.c ╢
  34.                   :Source:ObjectWindow.c ╢
  35.                   :Source:Prefs.c ╢
  36.                   :Source:UtilFuncs.c
  37.  
  38.  
  39. ### Object Files ###
  40.  
  41. ObjFiles-PPC    =  ╢
  42.                   "{ObjDir}AboutBox.c.x" ╢
  43.                   "{ObjDir}EditRoutines.c.x" ╢
  44.                   "{ObjDir}EditScrollbar.c.x" ╢
  45.                   "{ObjDir}EditWindow.c.x" ╢
  46.                   "{ObjDir}HexCompare.c.x" ╢
  47.                   "{ObjDir}HexSearch.c.x" ╢
  48.                   "{ObjDir}Main.c.x" ╢
  49.                   "{ObjDir}Menus.c.x" ╢
  50.                   "{ObjDir}ObjectWindow.c.x" ╢
  51.                   "{ObjDir}Prefs.c.x" ╢
  52.                   "{ObjDir}UtilFuncs.c.x"
  53.  
  54. ObjFiles-68K    =  ╢
  55.                   "{ObjDir}AboutBox.c.o" ╢
  56.                   "{ObjDir}EditRoutines.c.o" ╢
  57.                   "{ObjDir}EditScrollbar.c.o" ╢
  58.                   "{ObjDir}EditWindow.c.o" ╢
  59.                   "{ObjDir}HexCompare.c.o" ╢
  60.                   "{ObjDir}HexSearch.c.o" ╢
  61.                   "{ObjDir}Main.c.o" ╢
  62.                   "{ObjDir}Menus.c.o" ╢
  63.                   "{ObjDir}ObjectWindow.c.o" ╢
  64.                   "{ObjDir}Prefs.c.o" ╢
  65.                   "{ObjDir}UtilFuncs.c.o"
  66.  
  67. RsrcFiles        = ╢
  68.                     :Resources:HexEdit.rsrc ╢
  69.                     :Resources:Version.rsrc ╢
  70.                     :Resources:VOODOO.rsrc ╢
  71.                      ╢
  72.                     :Resources:Icons:Cortes.rsrc ╢
  73.                     #
  74.  
  75. ### Libraries ###
  76.  
  77. LibFiles-PPC    =  ╢
  78.                   "{SharedLibraries}CarbonLib" ╢
  79.                   "{SharedLibraries}StdCLib" ╢
  80.                   "{PPCLibraries}StdCRuntime.o" ╢
  81.                   "{PPCLibraries}PPCCRuntime.o" ╢
  82.                   "{PPCLibraries}PPCToolLibs.o"
  83.  
  84. LibFiles-68K    =  ╢
  85.                   "{Libraries}MathLib.o" ╢
  86.                   "{CLibraries}StdCLib.o" ╢
  87.                   "{Libraries}MacRuntime.o" ╢
  88.                   "{Libraries}IntEnv.o" ╢
  89.                   "{Libraries}ToolLibs.o" ╢
  90.                   "{Libraries}Interface.o"
  91.  
  92.  
  93. ### Default Rules ###
  94.  
  95. :Obj:    ─    :Source:
  96.  
  97. .c.x  ─  .c  {ÑMondoBuildÑ}
  98.     {PPCC} {depDir}{default}.c -o {targDir}{default}.c.x {PPCCOptions}
  99.  
  100. .c.o  ─  .c  {ÑMondoBuildÑ}
  101.     {C} {depDir}{default}.c -o {targDir}{default}.c.o {COptions}
  102.  
  103.  
  104. ### Build Rules ###
  105.  
  106. {TargetName}  ──     {RsrcFiles}
  107.     for f in {NewerDeps}
  108.         echo "include ╢"{f}╢";"
  109.     end | rez -a -o {Targ}
  110.  
  111. {TargetName}  ──  {ObjFiles-PPC} {LibFiles-PPC} {ÑMondoBuildÑ}
  112.     PPCLink ╢
  113.         -o {Targ} ╢
  114.         {ObjFiles-PPC} ╢
  115.         {LibFiles-PPC} ╢
  116.         {Sym-PPC} ╢
  117.         -mf -d ╢
  118.         -m __appstart ╢
  119.         -t 'APPL' ╢
  120.         -c 'hDmp'
  121.  
  122.  
  123. {TargetName}  ──  {ObjFiles-68K} {LibFiles-68K} {ÑMondoBuildÑ}
  124.     ILink ╢
  125.         -o {Targ} ╢
  126.         {ObjFiles-68K} ╢
  127.         {LibFiles-68K} ╢
  128.         {Sym-68K} ╢
  129.         -mf -d ╢
  130.         -t 'APPL' ╢
  131.         -c 'hDmp' ╢
  132.         -model far ╢
  133.         -state rewrite ╢
  134.         -compact -pad 0
  135.     If "{Sym-68K}" =~ /-sym ┼[nNuU]┼/
  136.         ILinkToSYM {Targ}.NJ -mf -sym 3.2 -c 'sade'
  137.     End
  138.  
  139.  
  140. {TargetName}  ──  {ÑMondoBuildÑ}
  141.     Echo "Data 'carb' (0) ╢{$╢"00000000╢"╢};" | Rez -o {Targ} -append
  142.  
  143. {TargetName}  ──  {ÑMondoBuildÑ}
  144.     Echo ╢
  145.         "#include ╢"Processes.r╢"╢n ╢
  146.         Resource 'SIZE' (-1) ╢{ ╢
  147.         reserved, ╢
  148.         acceptSuspendResumeEvents, ╢
  149.         reserved, ╢
  150.         canBackground, ╢
  151.         doesActivateOnFGSwitch, ╢
  152.         backgroundAndForeground, ╢
  153.         dontGetFrontClicks, ╢
  154.         ignoreAppDiedEvents, ╢
  155.         is32BitCompatible, ╢
  156.         isHighLevelEventAware, ╢
  157.         onlyLocalHLEvents, ╢
  158.         notStationeryAware, ╢
  159.         dontUseTextEditServices, ╢
  160.         notDisplayManagerAware, ╢
  161.         reserved, ╢
  162.         reserved, ╢
  163.         1024 * 1024, ╢
  164.         1024 * 1024 ╢};" | Rez -o {Targ} -append
  165.  
  166. Clean    ──    $OutOfDate
  167.     Delete -i -y ╢
  168.         {ObjFiles-PPC} ╢
  169.         {ObjFiles-68k} ╢
  170.         {TargetName} ╢
  171.         {TargetName}.NJ ╢
  172.         {TargetName}.SYM ╢
  173.         {TargetName}.xcoff ╢
  174.         {TargetName}.makeout ╢
  175.         #
  176.  
  177. ### Optional Dependencies ###
  178. ### Build this target to generate "include file" dependencies. ###
  179.  
  180. Dependencies  ─  $OutOfDate
  181.     MakeDepend ╢
  182.         -append {MAKEFILE} ╢
  183.         -ignore "{CIncludes}" ╢
  184.         -objdir "{ObjDir}" ╢
  185.         -objext .x ╢
  186.         -objext .o ╢
  187.         {Includes} ╢
  188.         {SrcFiles}
  189.  
  190.  
  191.