home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / zfamily.zip / zfamily / ZISFUNCS / DEVEL / ZISCLONE.MAK next >
Text File  |  1993-09-01  |  3KB  |  74 lines

  1. #
  2. # /----------------------------------------------------------------------\
  3. # |             IBM Z Family Reusable Libraries/2 (5641-504)             |
  4. # |----------------------------------------------------------------------|
  5. # | (C) Copyright International Business Machines Corporation 1993, 1994 |
  6. # |----------------------------------------------------------------------|
  7. # |                       DISCLAIMER OF WARRANTIES                       |
  8. # |                       ------------------------                       |
  9. # | The following code is sample code created by IBM Corporation.        |
  10. # | Such a code is provided to you solely for the purpose of assisting   |
  11. # | you in the development of your applications. The code is provided    |
  12. # | "AS IS", without warranty of any kind.  IBM shall not be liable for  |
  13. # | any damages arising out of your use of the following code, even if   |
  14. # | they have been advised of the possibility of such damages.           |                                                                         *
  15. # \----------------------------------------------------------------------/
  16. #
  17. #  Module    : ZISCLONE.MAK
  18. #  Authors   : Luca Miccoli (MICCOLI at ROMEPPC)
  19. #  Reviewer  : Dario de Judicibus (DEJUDICI at ROMEPPC)
  20. #  Created   : 06 Apr 1993
  21. #  Reviewed  : 31 Aug 1993
  22. #  Version   : 3.12
  23. #  Content   : Make File for Z Family/2 Clones
  24. #
  25. #  ------------------------------------------------------------------------------
  26. #
  27. #  NOTE : This is a SAMPLE makefile. You may need to modify it to satisfy your
  28. #         specific needs. You may also want to include it in a larger MAKE file
  29. #         which is used to generate your application. In any case, read carefully
  30. #         the comments below and the "User's Guide", to understand what you can
  31. #         change, and what should be used as is.
  32. #  ------------------------------------------------------------------------------
  33.  
  34. #
  35. #  User provided name of the .DLL (to be filled)
  36. #
  37. USRNAME = ________
  38.  
  39. STBNAME = zisstub
  40. INTNAME = zisfuncs
  41.  
  42. #
  43. #  Do not change OPTIONS unless really needed. They SHOULD match the original ones.
  44. #
  45. OPTIONS = /Ge- /Kb /Gd- /Gm+ /Ss /I.\ /Tx+
  46. LINKOPT = /NOI
  47.  
  48. #
  49. #  MAKE file generates a DLL and the corresponding IMPORT library having the
  50. #  name specified as USRNAME above.
  51. #
  52. all: $(USRNAME).dll $(USRNAME).lib
  53.  
  54. #
  55. #  STUB should be compiled by using the same options used for Z Family/2 DLL
  56. #
  57. $(STBNAME).obj: $(STBNAME).c
  58.    icc /C+ $(OPTIONS) $(STBNAME).c
  59.  
  60. #
  61. #  Use STUB and Z Family/2 OBJECT library to generate the User's Cloned DLL
  62. #  Use $(INTNAME).def to make your $(USRNAME).def, changing the name after
  63. #  LIBRARY (first instruction of the definition file).
  64. #
  65. $(USRNAME).dll: $(STBNAME).obj $(INTNAME).lib $(USRNAME).def
  66.   link386 $(LINKOPT) $(STBNAME).obj,$(USRNAME).dll,,$(INTNAME).lib,$(USRNAME).def ;
  67.  
  68. #
  69. #  Use the User's Cloned DLL to generate the corresponding IMPORT library
  70. #
  71. $(USRNAME).lib: $(USRNAME).dll $(USRNAME).def
  72.   implib $(USRNAME).lib $(USRNAME).def
  73.  
  74.