home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stlpt453.zip / STLport-4.5.3 / src / MrCpp.mak < prev    next >
Text File  |  2001-05-03  |  4KB  |  180 lines

  1. MAKEFILE        = MrCpp.mak
  2. ÑMondoBuildÑ    = {MAKEFILE}  # Make blank to avoid rebuilds when makefile is modified
  3.  
  4. Sym-PPC             = -sym on
  5. !ifdef DEBUG
  6. config_                = .PPC.DBG
  7. MrCpp_DebugOptions     = -inline none,global -opt none {Sym-PPC}
  8. STL_DebugOptions     = -d _STLP_DEBUG -d _STLP_DEBUG_ALLOC -d _STLP_DEBUG_UNINITIALIZED
  9. !else
  10. config_                = .PPC
  11. MrCpp_DebugOptions     = 
  12. STL_DebugOptions     = 
  13. !endif
  14. ObjDir              = :{config_}:
  15. SrcDir                = :
  16.  
  17. Includes         = -i : -i "{STL}" -i "{CIncludes}"
  18.  
  19. MrCpp_Options     = -ansi on -ansifor -bool on -exceptions on -rtti on -align power -j0 -traceback -opt size -inline 3,global -includes unix_mac
  20.                 
  21. STL_Options      =     #-d _STLP_USE_NEWALLOC ╢
  22.                     #-d _STLP_NO_SGI_IOSTREAMS ╢
  23.                     # end
  24.  
  25. Link_options = ╢
  26.         -c 'MPS ' ╢
  27.         -mf ╢
  28.         -d ╢
  29.         -Linkfaster off ╢
  30.         #{Sym-PPC} ╢
  31.         # end
  32.  
  33. ### Default Rules ###
  34.  
  35. "{ObjDir}" ─ "{SrcDir}"
  36.  
  37. .cpp.x  ─  .cpp  # {ÑMondoBuildÑ}
  38.     ###
  39.     echo "╢nCompiling:      '"{depDir}{default}.cpp"'"
  40.     "{MrCpp}" {depDir}{default}.cpp ╢
  41.         -o {targDir}{default}.cpp.x ╢
  42.         {Includes} ╢
  43.         {MrCpp_Options} {MrCpp_DebugOptions} {other_MrCpp_Options} ╢
  44.         {STL_Options} {STL_DebugOptions} {other_STL_Options}
  45.         if "{status}"
  46.             set compile_status 1
  47.         end
  48.  
  49.  
  50. ### Optional Dependencies ###
  51.  
  52. setup ─ $OutOfDate
  53.     ###
  54.     echo "╢n# Target:       '"{ObjDir}"'"
  55.     unset compile_status
  56.     if !`exists "{ObjDir}"`
  57.         newfolder "{ObjDir}"
  58.     end
  59.  
  60.  
  61. ### Build this target to generate "include file" dependencies. ###
  62.  
  63. Dependencies  ─  $OutOfDate #*TY 02/26/2000 - MakeDepend does not work unless all mentioned include directory exists
  64.     ###
  65.     echo "╢nUpdating:       {MAKEFILE} Dependencies"
  66.     MakeDepend ╢
  67.         -append {MAKEFILE} ╢
  68.         -ignore "{CIncludes}" ╢
  69.         -objdir "{ObjDir}" ╢
  70.         -objext .x ╢
  71.         {Includes} ╢
  72.         {SrcFiles}
  73.  
  74.  
  75. ##################################################################################
  76. #    {stl}:src: build rule
  77. ##################################################################################
  78.  
  79. ### Source Files ###
  80.  
  81. STLportLibSrcFiles        =  ╢
  82.                 c_locale_stub.cpp    ╢
  83.                 codecvt.cpp    ╢
  84.                 collate.cpp    ╢
  85.                 complex.cpp    ╢
  86.                 complex_exp.cpp    ╢
  87.                 complex_io.cpp    ╢
  88.                 complex_io_w.cpp    ╢
  89.                 complex_trig.cpp    ╢
  90.                 ctype.cpp    ╢
  91.                 dll_main.cpp    ╢
  92.                 fstream.cpp    ╢
  93.                 ios.cpp    ╢
  94.                 iostream.cpp    ╢
  95.                 istream.cpp    ╢
  96.                 locale.cpp    ╢
  97.                 locale_catalog.cpp    ╢
  98.                 facets_byname.cpp    ╢
  99.                 locale_impl.cpp    ╢
  100.                 messages.cpp    ╢
  101.                 monetary.cpp    ╢
  102.                 num_get.cpp    ╢
  103.                 num_get_float.cpp    ╢
  104.                 num_put.cpp    ╢
  105.                 num_put_float.cpp    ╢
  106.                 numpunct.cpp    ╢
  107.                 ostream.cpp    ╢
  108.                 sstream.cpp    ╢
  109.                 stdio_streambuf.cpp    ╢
  110.                 streambuf.cpp    ╢
  111.                 string_w.cpp    ╢
  112.                 strstream.cpp    ╢
  113.                 time_facets.cpp    ╢
  114.                 # end        #*TY 11/25/2000 - updated for STLport.4.1
  115.  
  116.  
  117. ### Object Files ###
  118.  
  119. STLportLibObjFiles-PPC    =  ╢
  120.                 {ObjDir}c_locale_stub.cpp.x    ╢
  121.                 {ObjDir}codecvt.cpp.x    ╢
  122.                 {ObjDir}collate.cpp.x    ╢
  123.                 {ObjDir}complex.cpp.x    ╢
  124.                 {ObjDir}complex_exp.cpp.x    ╢
  125.                 {ObjDir}complex_io.cpp.x    ╢
  126.                 {ObjDir}complex_io_w.cpp.x    ╢
  127.                 {ObjDir}complex_trig.cpp.x    ╢
  128.                 {ObjDir}ctype.cpp.x    ╢
  129.                 {ObjDir}dll_main.cpp.x    ╢
  130.                 {ObjDir}fstream.cpp.x    ╢
  131.                 {ObjDir}ios.cpp.x    ╢
  132.                 {ObjDir}iostream.cpp.x    ╢
  133.                 {ObjDir}istream.cpp.x    ╢
  134.                 {ObjDir}locale.cpp.x    ╢
  135.                 {ObjDir}locale_catalog.cpp.x    ╢
  136.                 {ObjDir}facets_byname.cpp.x    ╢
  137.                 {ObjDir}locale_impl.cpp.x    ╢
  138.                 {ObjDir}messages.cpp.x    ╢
  139.                 {ObjDir}monetary.cpp.x    ╢
  140.                 {ObjDir}num_get.cpp.x    ╢
  141.                 {ObjDir}num_get_float.cpp.x    ╢
  142.                 {ObjDir}num_put.cpp.x    ╢
  143.                 {ObjDir}num_put_float.cpp.x    ╢
  144.                 {ObjDir}numpunct.cpp.x    ╢
  145.                 {ObjDir}ostream.cpp.x    ╢
  146.                 {ObjDir}sstream.cpp.x    ╢
  147.                 {ObjDir}stdio_streambuf.cpp.x    ╢
  148.                 {ObjDir}streambuf.cpp.x    ╢
  149.                 {ObjDir}string_w.cpp.x    ╢
  150.                 {ObjDir}strstream.cpp.x    ╢
  151.                 {ObjDir}time_facets.cpp.x    ╢
  152.                 # end        #*TY 11/25/2000 - updated for STLport.4.1
  153.  
  154.  
  155. ### Build Rules ###
  156.  
  157. build    ──    setup
  158. build    ──    "{ObjDir}"STLportLib{config_}.o
  159.  
  160. install  ──  build
  161.     ###
  162.     echo "╢nInstalling:     ╢{stl╢}:lib:STLportLib{config_}.o"
  163.     if !`exists "{stl}":lib:`
  164.         newfolder "{stl}":lib:
  165.     end
  166.     duplicate -y "{ObjDir}"STLportLib{config_}.o "{stl}":lib:STLportLib{config_}.o
  167.  
  168. "{ObjDir}"STLportLib{config_}.o  ──  {STLportLibObjFiles-PPC} {ÑMondoBuildÑ}
  169.     ###
  170.     echo "╢nLibbing:        {Targ}"
  171.     PPCLink ╢
  172.         -xm l ╢
  173.         -t 'XCOF' ╢
  174.         -o {Targ} ╢
  175.         {STLportLibObjFiles-PPC} ╢
  176.         {Link_options} ╢
  177.         {Sym-PPC} ╢
  178.         # end
  179.  
  180.