home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / src / runtime / makefile < prev   
Makefile  |  1997-04-02  |  4KB  |  139 lines

  1. # @(#) 1.4 os2/src/samples/runtime/makefile.mak, odruntimepart, od96os2, odos29712d 3/3/97 12:19:14 [ 3/21/97 17:47:48 ]
  2. #
  3. #====START_GENERATED_PROLOG======================================
  4. #
  5. #
  6. #   COMPONENT_NAME: odsamples
  7. #
  8. #   CLASSES: none
  9. #
  10. #   ORIGINS: 27
  11. #
  12. #
  13. #   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  14. #   All Rights Reserved
  15. #   Licensed Materials - Property of IBM
  16. #   US Government Users Restricted Rights - Use, duplication or
  17. #   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  18. #
  19. #   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  20. #   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  21. #   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  22. #   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  23. #   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  24. #   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  25. #   OR PERFORMANCE OF THIS SOFTWARE.
  26. #
  27. #====END_GENERATED_PROLOG========================================
  28. #
  29.  
  30. # This is an example of creating your own runtime library with
  31. # the VisualAge compiler.  Creating and using your own runtime library
  32. # means your part doesn't require the VisualAge compiler to be installed
  33. # on any machine using your part.
  34. #
  35. # The alternatives, along with the writeup describing this process,
  36. # is in the section titled "Creating Your Own Runtime Library Dlls" in
  37. # the VisualAge C++ Programming Guide.
  38.  
  39.  
  40. # If you wish to add to the existing compile and link flags, you can
  41. # do it with these macros
  42.  
  43. ExtraSOMCompileOptions =
  44.  
  45. ExtraCompileOptions =
  46.  
  47. ExtraLinkOptions =
  48.  
  49.  
  50. # ===================================================================
  51. # Subdirectories you want nmake to visit
  52. Subdirs = 
  53.  
  54.  
  55. # ===================================================================
  56. # Targets
  57.  
  58. # IdlTargets = List all the idls
  59. # HdrTargets = List all the C++ headers
  60. # MsgTargets = List all the message catalogs
  61. # LibTargets = List all export libraries to be built
  62. # DllTargets = List all shared libraries to be built
  63. #
  64. # The Reg* and File*  macros are used to generate a table of contents
  65. # and an install package
  66.  
  67.  
  68. IdlTargets = 
  69.  
  70. HdrTargets =
  71.  
  72. MsgTargets =
  73.  
  74. !IFDEF CPPMAIN
  75. LibTargets = $(ODSRC)/lib/iodrt.$(LibSuffix)
  76.  
  77. DllTargets = $(ODSRC)/dll/iodrt.dll
  78. !ENDIF
  79.  
  80.  
  81. # ===================================================================
  82. # Common Inference Rules
  83.  
  84. # Platform.mak contains all the platform specific code to build the
  85. # sample. Check it to verify which compiler the sample is using.
  86.  
  87. !include $(ODSRC)/src/Platform.mak
  88.  
  89.  
  90. # ===================================================================
  91. # Rules
  92.  
  93.  
  94. !IF "$(Platform)"=="win32"
  95. rtLibList =  $(CPPMAIN)\lib\cppwm35.lib \
  96.              $(CPPMAIN)\sdk\lib\kernel32.lib
  97. rtLinkFlags = /NOD /NOLogo
  98. !ENDIF
  99.  
  100. !IF "$(Platform)"=="os2"
  101. rtLibList =  $(CPPMAIN)\lib\cppom30.lib \
  102.              $(CPPMAIN)\lib\os2386.lib \
  103.              $(CPPMAIN)\lib\somtk.lib
  104. rtLinkFlags = /NOD /NOLogo /EXEPACK:2
  105. !ENDIF
  106.  
  107.  
  108.  
  109. $(ODSRC)/dll/iodrt.dll : iodrt.c \
  110.     $(ODSRC)/lib/iodrt.$(Exp) \
  111.     $(rtLibList)
  112.     $(COMPILE) -B"$(rtLinkFlags)" -Fe$@ -Q+ -Ge- -Gm+ $**
  113.  
  114.  
  115. # On Windows, iodrt.def is based off $(CPPMAIN)\lib\cppwm35.def for the
  116. #             VisualAge compiler, version 3.5.  If you have a later version
  117. #             of the compiler, you may need to replace iodrt.def.
  118. # On OS/2,    iodrt.def is based off $(CPPMAIN)\lib\cppom30.def for the
  119. #             VisualAge compiler, version 3.0.  If you have a later version
  120. #             of the compiler, you may need to replace iodrt.def.
  121. $(ODSRC)/lib/iodrt.$(Def) :  iodrt.$(Def)
  122.     @$(BuildCopy)
  123.  
  124.  
  125. $(ODSRC)/lib/iodrt.$(LibSuffix) : \
  126.     $(ODSRC)/lib/iodrt.$(Def)
  127. !IF "$(Platform)"=="win32"
  128.     ilib /nologo /nobackup /GENI:$@ /DEF:$**
  129. !ENDIF
  130. !IF "$(Platform)"=="os2"
  131.     implib /nologo /NOI $(@:/=\) $**
  132.     ilib /q /convformat /NOBROWSE /noext /nobackup \
  133.         $(@:/=\) + $(CPPMAIN)\lib\CPPOM30O.lib;
  134. !ENDIF
  135.  
  136.  
  137.  
  138. # end of file
  139.