home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / viscobv6.zip / vac22os2 / ibmcobol / samples / mtexe / mtdll / dyndlls.mak < prev   
Text File  |  1998-03-04  |  4KB  |  88 lines

  1. ########################################################################
  2. #                                                                      #
  3. #    Licensed Materials - Property of IBM                              #
  4. #                                                                      #
  5. #    5622-793  (C) Copyright IBM Corp., 1996                           #
  6. #    All rights reserved                                               #
  7. #                                                                      #
  8. #    US Government Users Restricted Rights - Use,                      #
  9. #    duplication, or disclosure restricted by GSA ADP                  #
  10. #    Schedule Contract with IBM Corp.                                  #
  11. #                                                                      #
  12. ########################################################################
  13. # DynDLLs.MAK
  14. ########################################################################
  15. # This is a special Make file to create multiple Dynamic Call DLLs
  16. # To use:
  17. #    Inherit from the COBOL master project
  18. #    Turn Projects Smarts off (If VisualAge C++ is installed)
  19. #    Change the project-settings-makefile to DYNDLLS.MAK
  20. #    Set the following build-normal options
  21. #       MAKE
  22. #          Do NOT generate a make file
  23. #          Make command: iwzvMake "%p" "%d" /INPUT *.CBL /nologo /r /f %m
  24. #       PROJECT
  25. #          Do NOT use setting from parent project
  26. #
  27. #    Set the following Rebuild-all options
  28. #       MAKE
  29. #          Do NOT generate a make file
  30. #          Make command: iwzvMake "%p" "%d" /INPUT *.CBL /nologo /r /a /f %m
  31. #       PROJECT
  32. #          Do NOT use setting from parent project
  33. #
  34. #    To Build selected files, set up a file-scoped action that calls iwzvMake.exe
  35. #    with the following options:  %p %d /INPUT %a %z /nologo /r /f %m
  36. #
  37. ########################################################################
  38. #
  39. #  This make file is updated by VisualAge COBOL do not make changes
  40. #
  41. ########################################################################
  42. # COBOL_WF_OPTIONS File #@# C++ Compiler
  43. CBLCompileOptions= \
  44. -q"EXIT(ADEXIT(IWZRMGUX)) NOADATA" -B"/NODEBUG"
  45. CBLSource=\
  46. DYNDLL1.CBL \
  47. DYNDLL2.CBL \
  48. DYNDLL3.CBL
  49. CBLMakeFileName= \
  50. DynDLLs.mak
  51. CBLMAKEDepend= \
  52. $(CBLMakeFileName)
  53. CBLProjectName= \
  54. %REPLACEDIR%\samples\mtexe\mtdll
  55. CBLWorkingDir=\
  56. %REPLACEDIR%\samples\mtexe\mtdll
  57. # COBOL_END_OPTIONS do not delete this line
  58. ########################################################################
  59.  
  60. .SUFFIXES:
  61.  
  62. TARGETDLL=$(CBLSource:.CBL=.DLL)
  63. TARGETDEF=$(CBLSource:.CBL=.DEF)
  64.  
  65. .all: PREP         \
  66.       $(TARGETDLL)
  67.  
  68. PREP:
  69.     @echo -----------------------------------------------------
  70.     @echo ----- Running MAKE file:  $(CBLMakeFileName)
  71.     @echo ----- Project File Name:  $(CBLProjectName)
  72.     @echo ----- Working Directory:  $(CBLWorkingDir)
  73.     @cd $(CBLWorkingDir)
  74.     @echo -----------------------------------------------------
  75.  
  76. $(TARGETDLL): $$(@B).cbl $$(@B).def $(CBLMAKEDepend)
  77.     @echo -----------------------------------------------------
  78.     @echo ----- Compile COBOL Dynamic DLLs
  79.     ! -4 iwzvcomp.cmd $(CBLCompileOptions) $*.CBL $*.def
  80.     @echo -----------------------------------------------------
  81.  
  82. $(TARGETDEF):
  83.     @echo -----------------------------------------------------
  84.     @echo ----- Create file: $@
  85.     !iwzvgdef.cmd $@
  86.     @echo -----------------------------------------------------
  87.  
  88.