home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mapsym40.zip / tools.mak < prev   
Text File  |  1998-05-28  |  6KB  |  203 lines

  1. #----------------------------------------------------------------------------
  2. # TOOLS.MAK for os2 hosted intel lx targeting tools
  3. #
  4. # SCCSID: tools/os2.386/lx.386/bin/tools.mak, *ibmc386, wp.os2.386, 940617.2 1.7 94/06/17
  5. #
  6. # FUNCTIONS:
  7. #
  8. # CALLED FROM: Header.mak
  9. #
  10. # ORIGINS:
  11. #
  12. # (C) COPYRIGHT International Business Machines Corp. 1994
  13. # All Rights Reserved
  14. # Licensed Materials - Property of IBM
  15. #
  16. # US Government Users Restricted Rights - Use, duplication or
  17. # disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  18. #----------------------------------------------------------------------------
  19. #
  20. # Change History:
  21. # ---------------
  22. # Defect # Date     By  Description
  23. # -----------------------------------------------------------------------------
  24. # 160027   07/13/96 TV  Added v304 level of VAC++ and ILINK macro
  25. # 183684   08/21/97 TV  Added JAVA_VER macro variable
  26. # 184829   09/05/97 TV  Removed default setting of JAVA_VER variable.
  27. # 193812   02/25/98 MAS Rename vacpp40 beta compiler to v36 variable.
  28. # 194584   03/31/98 TV  Add v308 as new macro variable.
  29. #
  30. # Initials:
  31. #   TV - Thorne Ventura
  32. #  MAS - Mark Sehorne
  33. #----------------------------------------------------------------------------
  34. !ifndef CSET_VER
  35. CSET_VER  = 9
  36. !endif
  37.  
  38. !ifndef SOM_VER
  39. SOM_VER   = 21
  40. !endif
  41.  
  42. !ifndef MASM_VER
  43. MASM_VER  = 51
  44. !endif
  45.  
  46. !ifndef TCP_VER
  47. TCP_VER  = V30
  48. !endif
  49.  
  50. !if "$(CSET_VER)" != "6"  && "$(CSET_VER)" != "9" && "$(CSET_VER)" != "11"
  51. !error  CSET_VER must be either 6, 9, or 11 !
  52. !endif
  53.  
  54. !if "$(JAVA_VER)" != "V102"  && "$(JAVA_VER)" != "V11X" && "$(JAVA_VER)" !=""
  55. !error  JAVA_VER must be either V102, V11X or null.
  56. !endif
  57.  
  58. # VACPP_VER is a macro variable to determine which VAC++ compiler to use,
  59. # if at all.  Since each component of VAC++ has its own CSD's, the version
  60. # indicated indicates which build version to use: 0 = current; 1 = latest.
  61. # If VACPP_VER is not specified, C Set paths are set up.  IF VACPP_VER is
  62. # specified, VAC++ paths are set up.
  63. #
  64. !if "$(VACPP_VER)" != "v3" && "$(VACPP_VER)" != "v304" && "$(VACPP_VER)" != "v36" && "$(VACPP_VER)" != "v308" && "$(VACPP_VER)" != ""
  65. !error  VACPP_VER must be either v3, v304, v308, v36 or null.
  66. !endif
  67.  
  68. !if "$(SOM_VER)" != "20" && "$(SOM_VER)" != "21"
  69. !error  SOM_VER  must be either 20 or 21 !
  70. !endif
  71.  
  72. !if "$(MASM_VER)" != "51" && "$(MASM_VER)" != "60"
  73. !error MASM_VER  must be either 51 or 60 !
  74. !endif
  75.  
  76. CSET_DIR = csd$(CSET_VER)
  77. SOM_DIR  = som$(SOM_VER)
  78. MASM_DIR  =masm$(MASM_VER)
  79.  
  80. #
  81. # List here any macro variables whose values are different depending on which
  82. # tool set is requested, C Set or VAC++.  Note that VAC++ comes with
  83. # its own SOM which is scattered across different directories.
  84. #
  85. # COMPILER_HDR2 was added for the WP Shell group so they can use the
  86. # COMPILER_HDR and COMPILER_XXX macro variables separately.
  87. #
  88. !if "$(VACPP_VER)" == ""
  89. ! ifndef USER_CSET
  90. USER_CSET    = $(TOOLS2)\ibmcpp\$(CSET_DIR)
  91. ! endif
  92. TOOLSX       = $(USER_CSET)\bin;$(TOOLS2)\$(SOM_DIR)\bin;
  93. TOOLSDPATHX  = $(USER_CSET)\help;$(TOOLS2)\$(SOM_DIR)\msg;$(TOOLS1)
  94. COMPILER_HDR1= $(USER_CSET)\include
  95. COMPILER_HDR2= $(USER_CSET)\ibmclass
  96. COMPILER_HDR = $(COMPILER_HDR1);$(COMPILER_HDR2)
  97. COMPILER_LIB_PATH = $(USER_CSET)\lib;
  98. COMPILER_LIB = $(COMPILER_LIB_PATH:;=)
  99. LINK         = link386
  100. LINK16       = link
  101. LIBUTIL      = lib
  102. !else
  103. ! ifndef USER_VACPP
  104. USER_VACPP   = $(TOOLS2)\vacpp\$(VACPP_VER)
  105. ! endif
  106. TOOLSX       = $(USER_VACPP)\bin;$(TOOLS2)\$(SOM_DIR)\bin;
  107. TOOLSDPATHX  = $(USER_VACPP)\help;$(TOOLS2)\$(SOM_DIR)\msg;$(TOOLS1)
  108. COMPILER_HDR1= $(USER_VACPP)\include
  109. COMPILER_HDR2= $(USER_VACPP)\ibmclass
  110. COMPILER_HDR = $(COMPILER_HDR1);$(COMPILER_HDR2)
  111. COMPILER_LIB_PATH = $(USER_VACPP)\lib;
  112. COMPILER_LIB = $(COMPILER_LIB_PATH:;=)
  113. LINK         = ilink /nofree
  114. ILINK        = ilink
  115. LIBUTIL      = ilib
  116. !endif
  117.  
  118. !if "$(JAVA_VER)" != ""
  119. ! ifndef USER_JAVAC
  120. USER_JAVAC   = $(TOOLS2)\javaos2\$(JAVA_VER)
  121. ! endif
  122. TOOLSX       = $(USER_JAVAC)\bin;
  123. COMPILER_HDR1= $(USER_JAVAC)\include
  124. COMPILER_HDR = $(COMPILER_HDR1);
  125. COMPILER_LIB_PATH = $(USER_JAVAC)\lib;
  126. COMPILER_LIB = $(COMPILER_LIB_PATH:;=)
  127. !endif
  128.  
  129. !ifndef USER_MASM
  130. USER_MASM    = $(TOOLS2)\$(MASM_DIR)
  131. !endif
  132. !ifndef USER_MSC
  133. USER_MSC     = $(TOOLS2)\Mcl
  134. USER_MSCBIN  = bin
  135. !else
  136. USER_MSCBIN  = binp
  137. !endif
  138. !ifndef USER_MSC32
  139. USER_MSC32   = $(TOOLS2)\mcl386
  140. !endif
  141. TOOLSY       = $(TOOLSX);$(USER_MASM)\binp;$(USER_MASM)\binb
  142. TOOLSC       = $(TOOLSY);$(USER_MSC)\$(USER_MSCBIN);$(USER_MSC32)\bin;
  143. TOOLSDPATH   = $(TOOLSDPATHX);$(USER_MASM)\help
  144. MSC16        = $(USER_MSC)
  145. MSC16INC     = $(MSC16)\include
  146. MSC16LIB     = $(MSC16)\lib
  147. MSC32        = $(USER_MSC32)
  148. MSC32INC     = $(MSC32)\include
  149. MSC32LIB     = $(MSC32)\lib
  150.  
  151. #
  152. # Set SOM-related paths for C Set and VAC++.  The SOM_DIR variables point to
  153. # the SOM levels provided by Austin.  The build .mak files do nothing with
  154. # SOM_COMP_HDR and SOM_COMP_LIB.  They are provided for developer usage.
  155. #
  156. SOM_COMP_HDR = $(TOOLS2)\$(SOM_DIR)\include
  157. SOM_COMP_LIB = $(TOOLS2)\$(SOM_DIR)\lib
  158.  
  159. !if "$(VACPP_VER)" != ""
  160. !  if [set LOCPATH=$(USER_VACPP)\LOCALE] ||\
  161.       [set VBPATH=$(USER_VACPP)\DDE4VB] ||\
  162.       [set LPATH=$(USER_VACPP)\MACROS] ||\
  163.       [set CODELPATH=$(USER_VACPP)\MACROS]
  164. !  endif
  165. !endif
  166.  
  167. TCP_DIR = $(TOOLS2)\tcp\$(TCP_VER)\bin
  168.  
  169. #----------------------------------------------------------------------------
  170. # Compiler and Tools Macros
  171. #----------------------------------------------------------------------------
  172.  
  173. CC        = icc
  174. CC16      = cl
  175. CC32      = cl386
  176. AS        = masm
  177. RC        = rc
  178. WRC       = wrc
  179. SC        = sc
  180. MAPSYM    = mapsym
  181. EAUTIL    = eautil
  182. IMPLIB    = implib
  183. INCLUDES  = includes
  184. IPF       = ipfc
  185. MAKEPATH  = makepath
  186. MAPSYM    = mapsym
  187. OS2STUB   = os2stub
  188. SED       = sed
  189. TOUCH     = touch
  190. TABIFY    = tabify
  191. THUNK     = thk2asm
  192. H2INC     = h2inc
  193. NSYNC     = nsync
  194. COPY      = copy
  195. AWK       = gawk
  196. BLDVER    = bldver
  197. RPCGEN    = rpcgen
  198. JAVAC     = javac
  199.  
  200. #
  201. #   Possibly define some common set of compiler/linker etc flags
  202. #
  203.