home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / sdu / ehnxnmp.mak < prev    next >
Text File  |  1995-06-07  |  12KB  |  234 lines

  1. #*******************************************************************************
  2. #* SAMPLE PROGRAM: EHNXNMP - Sample Name Mapping Exit for DFM/2                *
  3. #*                                                                             *
  4. #* MODULE NAME:    EHNXNMP.DEF                                                 *
  5. #* DESCRIPTION:    Make File for the Name Mapping Exit EHNXNMP.DLL             *
  6. #*                                                                             *
  7. #*******************************************************************************
  8. #*                                                                             *
  9. #* DFM/2 (program no. 5648-020)                                                *
  10. #* Version: 1.0                                                                *
  11. #* Release: 1.0                                                                *
  12. #*                                                                             *
  13. #* Copyright (C) International Business Machines Corp., 1993.                  *
  14. #*                                                                             *
  15. #* DISCLAIMER OF WARRANTIES:                                                   *
  16. #* The following [enclosed] code is sample code created by IBM                 *
  17. #* Corporation.  This sample code is not part of any standard IBM product      *
  18. #* and is provided to you solely for the purpose of assisting you in the       *
  19. #* development of your applications.  The code is provided "AS IS",            *
  20. #* without warranty of any kind.  IBM shall not be liable for any damages      *
  21. #* arising out of your use of the sample code, even if they have been          *
  22. #* advised of the possibility of such damages.                                 *
  23. #*                                                                             *
  24. #*******************************************************************************
  25. #* CHANGE ACTIVITY                                                             *
  26. #* Flag Reason      Level    Date   Origin    Comments                         *
  27. #* --------------------------------------------------------------------------- *
  28. #*                           930402 Mueller  : Initial Release                 *
  29. #* IBM Deutschland Entwicklung GmbH, Boeblingen, Germany         GMU at SDFVM1 *
  30. #*******************************************************************************
  31.  
  32. #*******************************************************************************
  33. #* This file is part of the Name Mapping Exit sample program for DFM/2.        *
  34. #* Make File.                                                                  *
  35. #* For further description refer to the header of the file EHNXNMP.C           *
  36. #*******************************************************************************
  37. #*                                                                             *
  38. #* Before using this file do the following                                     *
  39. #* 1. In the section 'file definitions' replace the specification for          *
  40. #*    %EHNDIR% by the name of your RLIO/DFM product directory.                 *
  41. #*       Note: The %..% notation has been used there as in OS/2 .cmd files.    *
  42. #*       However, there is NO automatic replacement of these variables,        *
  43. #*       you have to do it manually.                                           *
  44. #* 2. In the section 'libraries' replace the specification for                 *
  45. #*    COMPDIR by the correct specification for your compiler directory.        *
  46. #*       Note: The %..% notation has been used there as in OS/2 .cmd files.    *
  47. #*       However, there is NO automatic replacement of these variables,        *
  48. #*       you have to do it manually.                                           *
  49. #* 3. In the section 'libraries' replace the specification for                 *
  50. #*    TOOLDIR by the correct specification for your toolkit directory.         *
  51. #*       Note: The %..% notation has been used there as in OS/2 .cmd files.    *
  52. #*       However, there is NO automatic replacement of these variables,        *
  53. #*       you have to do it manually.                                           *
  54. #* 4. Check the occurrences of COMPDIR and TOOLDIR in the rest of the file     *
  55. #*    for correct specifications relating to your directory structures         *
  56. #*    (necessary only when you have renamed subdirectories after installation).*
  57. #* 5. You need                                                                 *
  58. #*    a. The IBM C Set/2 compiler version 1.0 or later                         *
  59. #*    b. The Developer's Toolkit for OS/2 2.0 or later                         *
  60. #*       including the linker LINK386                                          *
  61. #*       and the make file utility NMAKE                                       *
  62. #*                                                                             *
  63. #* To use the make file, do the following:                                     *
  64. #* 1. Set the current directory to the \SAMPLE subdirectory of the DFM/2       *
  65. #*    product directory (%EHNDIR%\SAMPLE).                                     *
  66. #*       If you have the files EHNXNMP.xxx in a different directory,           *
  67. #*       make that directory the current one.                                  *
  68. #*       If you want the resulting files created in different directories,     *
  69. #*       prefix the file names in the File Definitions section (following      *
  70. #*       this header) with the proper path names.                              *
  71. #* 2. In an OS/2 window or full-screen, type                                   *
  72. #*    NMAKE -F EHNXNMP.MAK                                                     *
  73. #*       Then the file EHNXNMP.DLL and some other files will be created        *
  74. #*       in the current directory, or the ones specified in the path           *
  75. #*       prefixed to the file names in the File Definitions section resp.      *
  76. #*                                                                             *
  77. #* To use (activate) the Name Mapping Exit routines, do the following:         *
  78. #*    Copy the resulting file EHNXNMP.DLL into a directory in your LIBPATH.    *
  79. #*******************************************************************************
  80.  
  81. ################################################################################
  82. #       File Definitions                                                       #
  83. ################################################################################
  84. # If wanted, prefix the following file names with a complete path specification:
  85. # Source files
  86. CFILE     = EHNXNMP.C
  87. HEADERDIR = %EHNDIR%\H
  88. HEADERS   = $(HEADERDIR)\EHNXNMP.H
  89. MAKEFILE  = EHNXNMP.MAK
  90. DEFFILE   = EHNXNMP.DEF
  91. # Files created
  92. DLLNAME   = EHNXNMP.DLL
  93. OBJNAME   = EHNXNMP.OBJ
  94. MAPNAME   = EHNXNMP.MAP
  95.  
  96. ################################################################################
  97. #       Libraries                                                              #
  98. ################################################################################
  99. # Modify the following statements according to your environment:
  100. # Directory containing the C Set/2 Compiler:
  101. COMPDIR  = %tooldisk%\IBMC
  102. # Directory containing the OS/2 2.0 Toolkit:
  103. TOOLDIR  = %tooldisk%\TOOLKT20
  104.  
  105. ################################################################################
  106. #       Suffixes to make use of the inference rules                            #
  107. ################################################################################
  108. .SUFFIXES:
  109. .SUFFIXES: .C  .OBJ  .DLL
  110.  
  111.  
  112. ################################################################################
  113. #       Definitions for C compiler                                             #
  114. ################################################################################
  115. # Options for the IBM C Set/2 compiler:
  116. #------------------------------------------------------------------
  117. #Option       Description
  118. #------------------------------------------------------------------
  119. #/C+          Suppress linking
  120. #/Ge-         Build a DLL file
  121. #/Gd+         Dynamically link of the run-time libraries
  122. #/Gs-         Remove stack probes
  123. #/G3          Instruction set 386
  124. #/G4          Instruction set 486
  125. #/Kb+         Produce basic diagnostic messages
  126. #/Kb-         Suppress basic diagnostic messages
  127. #/I dirlist   Specify a search path,
  128. #                dirlist = list of directories separated by ";"
  129. #/O+          Optimize code
  130. #/O-          Do not optimize code
  131. #/Rn          Generate subsystem code with no run-time environm.
  132. #/Se          Allow all C Set/2 language extensions w/o migration
  133. #/Sm          Language level for migration
  134. #/Sp1         Alignment in structures is on byte boundary
  135. #/Ss+         Allow use of // for comments
  136. #/Ti+         Generate debugger information
  137. #/Ti-         Do not generate debugger information
  138. #/V"string"   Version string
  139. #/W3          Warning level 3
  140. #/Xc-         Search paths specified using /I
  141. #Xi+          Do not search the paths specified by the INCLUDE environment variable
  142. #/DINCL_32    Compile for 32-bit OS/2 only
  143. #------------------------------------------------------------------
  144. CC     = $(COMPDIR)\BIN\ICC
  145.  
  146. #  Compiler options used:
  147. CFLAGS=/C+  \
  148.        /Gd+ \
  149.        /Gs- \
  150.        /G3  \
  151.        /Kb- \
  152.        /O-  \
  153.        /Se  \
  154.        /Sp1 \
  155.        /Ss+ \
  156.        /W3  \
  157.        /Xi+ \
  158.        /DINCL_32  \
  159.        /Ti- \
  160.        /V"V1.00"
  161.  
  162. # CFLAGS1: Special compiler options for .EXE or .DLL
  163. CFLAGS1 = /Ge-
  164.  
  165. # Include libraries for the compiler:
  166. # - For OS/2 includes
  167. OS2INCL    = $(TOOLDIR)\c\os2h;
  168. # - For C includes
  169. C386INCL   = $(COMPDIR)\INCLUDE;$(COMPDIR)\INCLUDE\SYS;
  170.  
  171. # Search path for include files used by the compiler
  172. CINC=/I$(OS2INCL)       \
  173.      /I$(C386INCL)      \
  174.      /I$(HEADERDIR)
  175.  
  176. # Path to store object modules
  177. OBJDIR=/Fo$(OBJNAME)
  178.  
  179. ################################################################################
  180. #       Definitions for the linker                                             #
  181. ################################################################################
  182. LINK   = $(TOOLDIR)\OS2BIN\LINK386
  183.  
  184. # Options for the linker LINK386:
  185. #------------------------------------------------------------------
  186. #Option       Description
  187. #------------------------------------------------------------------
  188. #/BATCH       Run in batch mode - disable prompting
  189. #/CO          Prepare for debugger
  190. #/MAP         List public symbols
  191. #/NOE         Ignore extended dictionary
  192. #/NOI         Preserve case sensitivity
  193. #/NOD         Ignore default libraries
  194. #/PACKC       Pack contiguous code
  195. #/PACKD       Pack contiguous data
  196. #/STACK:n     Specify program stack size
  197. #----------------------------------------------------------------
  198.  
  199. # Linker options used:
  200. LFLAGS= /NOI /MAP /NOD /PACKC /NOE
  201.  
  202. # Link libraries:
  203. LIBS   = $(COMPDIR)\LIB\DDE4MBS.LIB \
  204.          $(TOOLDIR)\OS2LIB\OS2386.LIB
  205.  
  206. ################################################################################
  207. #       Targets of the NMAKE process.                                          #
  208. ################################################################################
  209. all: $(DLLNAME)
  210.  
  211. ################################################################################
  212. #       Dependencies                                                           #
  213. ################################################################################
  214. $(OBJNAME): $(CFILE)    \
  215.             $(HEADERS)  \
  216.             $(MAKEFILE)
  217.           $(CC) $(CFLAGS) $(CFLAGS1)     \
  218.                 $(CINC) $(OBJDIR)        \
  219.                 $(CFILE)
  220.  
  221. $(DLLNAME): $(OBJNAME)   \
  222.             $(LIBS)      \
  223.             $(MAKEFILE)  \
  224.             $(DEFFILE)
  225.           $(LINK) $(LFLAGS)        \
  226.                   $(OBJNAME),      \
  227.                   $(DLLNAME),      \
  228.                   $(MAPNAME),      \
  229.                   $(LIBS),         \
  230.                   $(DEFFILE)       \
  231.                   ;
  232.  
  233. #### end of file ###############################################################
  234.