home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / zfamily.zip / zfamily / ZNLFUNCS / DEVEL / ZNLCLONE.MAK next >
Text File  |  1994-06-04  |  2KB  |  67 lines

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