home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / stlpt453.zip / STLport-4.5.3 / src / bc502.mak < prev    next >
Makefile  |  2001-07-30  |  10KB  |  235 lines

  1. # ---------------------------------------------------------------------------
  2.  
  3. CPP=cpp32
  4. CC=bcc32 -P
  5. CXX=bcc32
  6.  
  7. RC=brc32
  8. COMP=BCC502
  9.  
  10. LIB_BASENAME=stlport_bcb
  11.  
  12. # ---------------------------------------------------------------------------
  13.  
  14. LINK_OUT=
  15. DYNLINK_OUT=
  16. LINK = tlib /P128
  17. DYN_LINK = ilink32
  18. OBJEXT=obj
  19. DYNEXT=dll
  20. STEXT=lib
  21. RM=@erase /F /Q
  22. PATH_SEP=\\
  23. MKDIR=mkdir
  24. STATIC_SUFFIX=_static
  25. INSTALL_STEP=install_bc
  26.  
  27. # static builds, but cannot be used - some weird compile errors..
  28. all : all_dynamic
  29.  
  30. !include common_macros_windows.mak
  31.  
  32. DYNAMIC_DEFS=_RTLDLL
  33. STATIC_DEFS=_LIB;_STLP_NO_FORCE_INSTANTIATE
  34.  
  35. LINKSTARTUP= c0d32.obj
  36.  
  37. FLAGS_COMMON= -I.;..\stlport\BC50;..\stlport;$(BCB)\include -j1 -w -c -w-par -w-inl -tWM
  38. FLAGS_COMMON_static = $(FLAGS_COMMON) -D$(SYSDEFINES);$(USERDEFINES);$(STATIC_DEFS)
  39. FLAGS_COMMON_dynamic = $(FLAGS_COMMON) -D$(SYSDEFINES);$(USERDEFINES);$(DYNAMIC_DEFS) -tWD
  40.  
  41. LDFLAGS_COMMON=-Gn -Gi -Tpd -aa -L$(MAKEDIR)\..\lib -x 
  42. LDFLAGS_COMMON_static=  $(LDFLAGS_COMMON)
  43. LDFLAGS_COMMON_dynamic= $(LDFLAGS_COMMON)
  44.  
  45.  
  46. LDFLAGS_RELEASE_static=   $(LDFLAGS_COMMON_static)  $(LINKSTARTUP)
  47. LDFLAGS_DEBUG_static=     $(LDFLAGS_COMMON_static)  $(LINKSTARTUP)
  48. LDFLAGS_STLDEBUG_static=  $(LDFLAGS_COMMON_static)  $(LINKSTARTUP)
  49.  
  50. LDFLAGS_RELEASE_dynamic=   $(LDFLAGS_COMMON_dynamic) $(LINKSTARTUP)
  51. LDFLAGS_DEBUG_dynamic=     $(LDFLAGS_COMMON_dynamic) $(LINKSTARTUP)
  52. LDFLAGS_STLDEBUG_dynamic=  $(LDFLAGS_COMMON_dynamic) $(LINKSTARTUP)
  53.  
  54. LDLIBS_RELEASE_dynamic=   import32.lib cw32mti.lib
  55. LDLIBS_DEBUG_dynamic=     import32.lib cw32mti.lib
  56. LDLIBS_STLDEBUG_dynamic=  import32.lib cw32mti.lib
  57.  
  58.  
  59. CXXFLAGS_RELEASE_static= $(FLAGS_COMMON_static) -O2 -n$(RELEASE_OBJDIR_static)
  60. CXXFLAGS_DEBUG_static= $(FLAGS_COMMON_static) -v -N -x -xp -n$(DEBUG_OBJDIR_static)
  61. CXXFLAGS_STLDEBUG_static= $(FLAGS_COMMON_static) -v -N -x -xp -n$(STLDEBUG_OBJDIR_static) -D_STLP_DEBUG
  62.  
  63. CXXFLAGS_RELEASE_dynamic= $(FLAGS_COMMON_dynamic) -O2 -n$(RELEASE_OBJDIR_dynamic)
  64. CXXFLAGS_DEBUG_dynamic= $(FLAGS_COMMON_dynamic)  -v -N -x -xp -n$(DEBUG_OBJDIR_dynamic)
  65. CXXFLAGS_STLDEBUG_dynamic= $(FLAGS_COMMON_dynamic)  -v -N -x -xp -n$(STLDEBUG_OBJDIR_dynamic) -D_STLP_DEBUG
  66.  
  67. RELEASE_LINK_COMMANDS_static=\
  68. +$(RELEASE_OBJDIR_static)$(PATH_SEP)complex.$(OBJEXT) \
  69. +$(RELEASE_OBJDIR_static)$(PATH_SEP)complex_exp.$(OBJEXT) \
  70. +$(RELEASE_OBJDIR_static)$(PATH_SEP)complex_io.$(OBJEXT) \
  71. +$(RELEASE_OBJDIR_static)$(PATH_SEP)complex_trig.$(OBJEXT) \
  72. +$(RELEASE_OBJDIR_static)$(PATH_SEP)dll_main.$(OBJEXT) \
  73. +$(RELEASE_OBJDIR_static)$(PATH_SEP)ios.$(OBJEXT) \
  74. +$(RELEASE_OBJDIR_static)$(PATH_SEP)streambuf.$(OBJEXT) \
  75. +$(RELEASE_OBJDIR_static)$(PATH_SEP)stdio_streambuf.$(OBJEXT) \
  76. +$(RELEASE_OBJDIR_static)$(PATH_SEP)iostream.$(OBJEXT) \
  77. +$(RELEASE_OBJDIR_static)$(PATH_SEP)istream.$(OBJEXT) \
  78. +$(RELEASE_OBJDIR_static)$(PATH_SEP)ostream.$(OBJEXT) \
  79. +$(RELEASE_OBJDIR_static)$(PATH_SEP)fstream.$(OBJEXT) \
  80. +$(RELEASE_OBJDIR_static)$(PATH_SEP)strstream.$(OBJEXT) \
  81. +$(RELEASE_OBJDIR_static)$(PATH_SEP)sstream.$(OBJEXT) \
  82. +$(RELEASE_OBJDIR_static)$(PATH_SEP)codecvt.$(OBJEXT) \
  83. +$(RELEASE_OBJDIR_static)$(PATH_SEP)collate.$(OBJEXT) \
  84. +$(RELEASE_OBJDIR_static)$(PATH_SEP)ctype.$(OBJEXT) \
  85. +$(RELEASE_OBJDIR_static)$(PATH_SEP)messages.$(OBJEXT) \
  86. +$(RELEASE_OBJDIR_static)$(PATH_SEP)monetary.$(OBJEXT) \
  87. +$(RELEASE_OBJDIR_static)$(PATH_SEP)num_get.$(OBJEXT) \
  88. +$(RELEASE_OBJDIR_static)$(PATH_SEP)num_get_float.$(OBJEXT) \
  89. +$(RELEASE_OBJDIR_static)$(PATH_SEP)num_put.$(OBJEXT) \
  90. +$(RELEASE_OBJDIR_static)$(PATH_SEP)num_put_float.$(OBJEXT) \
  91. +$(RELEASE_OBJDIR_static)$(PATH_SEP)numpunct.$(OBJEXT) \
  92. +$(RELEASE_OBJDIR_static)$(PATH_SEP)time_facets.$(OBJEXT) \
  93. +$(RELEASE_OBJDIR_static)$(PATH_SEP)locale.$(OBJEXT) \
  94. +$(RELEASE_OBJDIR_static)$(PATH_SEP)locale_catalog.$(OBJEXT) \
  95. +$(RELEASE_OBJDIR_static)$(PATH_SEP)facets_byname.$(OBJEXT) \
  96. +$(RELEASE_OBJDIR_static)$(PATH_SEP)locale_impl.$(OBJEXT) \
  97. +$(RELEASE_OBJDIR_static)$(PATH_SEP)complex_io_w.$(OBJEXT) \
  98. +$(RELEASE_OBJDIR_static)$(PATH_SEP)string_w.$(OBJEXT)
  99.  
  100.  
  101. DEBUG_LINK_COMMANDS_static= \
  102. +$(DEBUG_OBJDIR_static)$(PATH_SEP)complex.$(OBJEXT) \
  103. +$(DEBUG_OBJDIR_static)$(PATH_SEP)complex_exp.$(OBJEXT) \
  104. +$(DEBUG_OBJDIR_static)$(PATH_SEP)complex_io.$(OBJEXT) \
  105. +$(DEBUG_OBJDIR_static)$(PATH_SEP)complex_trig.$(OBJEXT) \
  106. +$(DEBUG_OBJDIR_static)$(PATH_SEP)dll_main.$(OBJEXT) \
  107. +$(DEBUG_OBJDIR_static)$(PATH_SEP)ios.$(OBJEXT) \
  108. +$(DEBUG_OBJDIR_static)$(PATH_SEP)streambuf.$(OBJEXT) \
  109. +$(DEBUG_OBJDIR_static)$(PATH_SEP)stdio_streambuf.$(OBJEXT) \
  110. +$(DEBUG_OBJDIR_static)$(PATH_SEP)iostream.$(OBJEXT) \
  111. +$(DEBUG_OBJDIR_static)$(PATH_SEP)istream.$(OBJEXT) \
  112. +$(DEBUG_OBJDIR_static)$(PATH_SEP)ostream.$(OBJEXT) \
  113. +$(DEBUG_OBJDIR_static)$(PATH_SEP)fstream.$(OBJEXT) \
  114. +$(DEBUG_OBJDIR_static)$(PATH_SEP)strstream.$(OBJEXT) \
  115. +$(DEBUG_OBJDIR_static)$(PATH_SEP)sstream.$(OBJEXT) \
  116. +$(DEBUG_OBJDIR_static)$(PATH_SEP)codecvt.$(OBJEXT) \
  117. +$(DEBUG_OBJDIR_static)$(PATH_SEP)collate.$(OBJEXT) \
  118. +$(DEBUG_OBJDIR_static)$(PATH_SEP)ctype.$(OBJEXT) \
  119. +$(DEBUG_OBJDIR_static)$(PATH_SEP)messages.$(OBJEXT) \
  120. +$(DEBUG_OBJDIR_static)$(PATH_SEP)monetary.$(OBJEXT) \
  121. +$(DEBUG_OBJDIR_static)$(PATH_SEP)num_get.$(OBJEXT) \
  122. +$(DEBUG_OBJDIR_static)$(PATH_SEP)num_get_float.$(OBJEXT) \
  123. +$(DEBUG_OBJDIR_static)$(PATH_SEP)num_put.$(OBJEXT) \
  124. +$(DEBUG_OBJDIR_static)$(PATH_SEP)num_put_float.$(OBJEXT) \
  125. +$(DEBUG_OBJDIR_static)$(PATH_SEP)numpunct.$(OBJEXT) \
  126. +$(DEBUG_OBJDIR_static)$(PATH_SEP)time_facets.$(OBJEXT) \
  127. +$(DEBUG_OBJDIR_static)$(PATH_SEP)locale.$(OBJEXT) \
  128. +$(DEBUG_OBJDIR_static)$(PATH_SEP)locale_catalog.$(OBJEXT) \
  129. +$(DEBUG_OBJDIR_static)$(PATH_SEP)facets_byname.$(OBJEXT) \
  130. +$(DEBUG_OBJDIR_static)$(PATH_SEP)locale_impl.$(OBJEXT) \
  131. +$(DEBUG_OBJDIR_static)$(PATH_SEP)complex_io_w.$(OBJEXT) \
  132. +$(DEBUG_OBJDIR_static)$(PATH_SEP)string_w.$(OBJEXT)
  133.  
  134. STLDEBUG_LINK_COMMANDS_static= \
  135. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)complex.$(OBJEXT) \
  136. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)complex_exp.$(OBJEXT) \
  137. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)complex_io.$(OBJEXT) \
  138. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)complex_trig.$(OBJEXT) \
  139. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)dll_main.$(OBJEXT) \
  140. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)ios.$(OBJEXT) \
  141. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)streambuf.$(OBJEXT) \
  142. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)stdio_streambuf.$(OBJEXT) \
  143. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)iostream.$(OBJEXT) \
  144. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)istream.$(OBJEXT) \
  145. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)ostream.$(OBJEXT) \
  146. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)fstream.$(OBJEXT) \
  147. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)strstream.$(OBJEXT) \
  148. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)sstream.$(OBJEXT) \
  149. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)codecvt.$(OBJEXT) \
  150. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)collate.$(OBJEXT) \
  151. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)ctype.$(OBJEXT) \
  152. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)messages.$(OBJEXT) \
  153. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)monetary.$(OBJEXT) \
  154. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)num_get.$(OBJEXT) \
  155. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)num_get_float.$(OBJEXT) \
  156. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)num_put.$(OBJEXT) \
  157. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)num_put_float.$(OBJEXT) \
  158. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)numpunct.$(OBJEXT) \
  159. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)time_facets.$(OBJEXT) \
  160. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)locale.$(OBJEXT) \
  161. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)locale_catalog.$(OBJEXT) \
  162. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)facets_byname.$(OBJEXT) \
  163. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)locale_impl.$(OBJEXT) \
  164. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)complex_io_w.$(OBJEXT) \
  165. +$(STLDEBUG_OBJDIR_static)$(PATH_SEP)string_w.$(OBJEXT)
  166.  
  167. #
  168. #  Target directories
  169. #
  170. #
  171.  
  172. $(OUTDIR) :
  173.     $(MKDIR) $(OUTDIR)
  174. $(RELEASE_OBJDIR_dynamic) :
  175.     $(MKDIR) $(RELEASE_OBJDIR_dynamic)
  176. $(DEBUG_OBJDIR_dynamic) :
  177.     $(MKDIR) $(DEBUG_OBJDIR_dynamic)
  178. $(STLDEBUG_OBJDIR_dynamic) :
  179.     $(MKDIR) $(STLDEBUG_OBJDIR_dynamic)
  180. $(RELEASE_OBJDIR_static) :
  181.     $(MKDIR) $(RELEASE_OBJDIR_static)
  182. $(DEBUG_OBJDIR_static) :
  183.     $(MKDIR) $(DEBUG_OBJDIR_static)
  184. $(STLDEBUG_OBJDIR_static) :
  185.     $(MKDIR) $(STLDEBUG_OBJDIR_static)
  186.  
  187. ######   Targets ##################
  188.  
  189. all_static :   $(ALL_STATIC_LIBS)
  190.  
  191. all_dynamic :  $(ALL_DYNAMIC_LIBS)
  192.  
  193. install :  $(INSTALL_STEP)
  194.  
  195. clean : $(CLEAN_SPECIFIC)
  196.     -$(RM) $(RELEASE_OBJDIR_static) $(DEBUG_OBJDIR_static) \
  197.         $(STLDEBUG_OBJDIR_static) $(RELEASE_OBJDIR_dynamic) \
  198.         $(DEBUG_OBJDIR_dynamic) $(STLDEBUG_OBJDIR_dynamic)
  199.  
  200. clobber : clean
  201.     -$(RM) $(OUTDIR)$(PATH_SEP)$(DEBUG_NAME).* \
  202.                $(OUTDIR)$(PATH_SEP)$(RELEASE_NAME).* $(OUTDIR)$(PATH_SEP)$(STLDEBUG_NAME).*
  203.  
  204.  
  205. $(OUTDIR)$(PATH_SEP)$(RELEASE_DYNLIB) : $(OUTDIR) $(RELEASE_OBJDIR_dynamic) $(DEF_FILE) $(RELEASE_OBJECTS_dynamic)
  206.     $(DYN_LINK) $(LDFLAGS_RELEASE_dynamic) $(RELEASE_OBJECTS_dynamic) , $(OUTDIR)$(PATH_SEP)$(RELEASE_DYNLIB),,$(LDLIBS_RELEASE_dynamic)
  207.  
  208. $(OUTDIR)$(PATH_SEP)$(DEBUG_DYNLIB) : $(OUTDIR) $(DEBUG_OBJDIR_dynamic) $(DEF_FILE) $(DEBUG_OBJECTS_dynamic)
  209.     $(DYN_LINK) $(LDFLAGS_DEBUG_dynamic) $(DEBUG_OBJECTS_dynamic), $(DYNLINK_OUT)$(OUTDIR)$(PATH_SEP)$(DEBUG_DYNLIB) ,, $(LDLIBS_DEBUG_dynamic) 
  210.  
  211. $(OUTDIR)$(PATH_SEP)$(STLDEBUG_DYNLIB) : $(OUTDIR) $(STLDEBUG_OBJDIR_dynamic) $(DEF_FILE) $(STLDEBUG_OBJECTS_dynamic)
  212.     $(DYN_LINK)  $(LDFLAGS_STLDEBUG_dynamic) $(STLDEBUG_OBJECTS_dynamic) , $(DYNLINK_OUT)$(OUTDIR)$(PATH_SEP)$(STLDEBUG_DYNLIB) ,, $(LDLIBS_STLDEBUG_dynamic)
  213.  
  214. $(OUTDIR)$(PATH_SEP)$(RELEASE_LIB) : $(OUTDIR) $(RELEASE_OBJDIR_static) $(DEF_FILE) $(RELEASE_OBJECTS_static)
  215.     $(LINK) $(OUTDIR)$(PATH_SEP)$(RELEASE_LIB) $(RELEASE_LINK_COMMANDS_static)
  216.  
  217. $(OUTDIR)$(PATH_SEP)$(DEBUG_LIB) : $(OUTDIR) $(DEBUG_OBJDIR_static) $(DEF_FILE) $(DEBUG_OBJECTS_static)
  218.     $(LINK) $(OUTDIR)$(PATH_SEP)$(DEBUG_LIB) $(DEBUG_LINK_COMMANDS_static)  
  219.  
  220. $(OUTDIR)$(PATH_SEP)$(STLDEBUG_LIB) : $(OUTDIR) $(STLDEBUG_OBJDIR_static) $(DEF_FILE) $(STLDEBUG_OBJECTS_static)
  221.     $(LINK) $(OUTDIR)$(PATH_SEP)$(STLDEBUG_LIB) $(STLDEBUG_LINK_COMMANDS_static)
  222.  
  223. #########################################
  224.  
  225. # ---------------------------------------------------------------------------
  226.  
  227. !include nmake_common.mak
  228.  
  229. .cpp.i:
  230.     $(CPP) $(CXXFLAGS_RELEASE_dynamic) -n. -Sr -Ss -Sd {$< }
  231.  
  232. # ---------------------------------------------------------------------------
  233.  
  234. # ---------------------------------------------------------------------------
  235.