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

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