home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / xcpp1.exe / WATCOM / TESTSTAT.MKF < prev    next >
Text File  |  1995-11-13  |  4KB  |  140 lines

  1. #
  2. # This makefile was generated by QMK386 v2.11
  3. #
  4. # Program:  TestStat.NLM
  5. #           This makefile rebuilds the TestStat NetWare Loadable Module
  6. #
  7. # Created:  Mon Nov 13 09:26:55 1995
  8. #
  9. # MAKEINIT defines many of the macros used herein
  10. # The following macros can be set via your environment:
  11. #   CCF386 : Set compile options
  12. #   QMKVER : Set to 'd' or 'p' to define VERSION
  13. #   SILENT : If defined, .SILENT will be set
  14. #
  15. # The following macros are defined for your program:
  16. #   vMAJ : Major version number
  17. #   vMIN : Minor version number
  18. #   vREV : Revision number
  19.  
  20. src_dir = ..\src
  21.  
  22. !ifdef %SILENT
  23. .silent
  24. !endif
  25.  
  26. program = TestStat
  27.  
  28. pvmaj = 1           # major version number
  29. pvmin = 00          # minor version number
  30. pvrev = 0           # revision number e.g. 0,1,2, ...
  31.  
  32. !ifndef %qmkver
  33. !   define version d                # use 'd' or 'p' here
  34. !else
  35. !   define version $(%qmkver)
  36. !endif
  37. !ifeq version d
  38. !   define lversion DEBUG
  39. !   define debug /dDEBUG
  40. !else
  41. !   define lversion PRODUCTION
  42. !   define debug
  43. !endif
  44.  
  45. nlm_TYPE = Form Novell NLM '$(program)'
  46. nlm_NAME = Name $^&
  47. nlm_SCREEN = Op ScreenName '$(program)'
  48. nlm_THREAD = Op ThreadName '$^&__P '
  49. nlm_STACK = Op Stack = 8k
  50. nlm_NLMVER = Op Version = $(pvmaj).$(pvmin).$(pvrev)
  51. nlm_COPYRIGHT = Op Copyright '$(copyright)'
  52. linkop = $+$(linkop)$- Caseexact
  53. !ifeq version d
  54. !   define linkop $+$(linkop)$- Map
  55. !   define linkop $+$(linkop)$- Verbose
  56. !   define ldebug debug all debug novell
  57. !endif
  58.  
  59. objlst = teststat.obj
  60. objlst = $+$(objlst)$- stats.obj
  61. objlst = $+$(objlst)$- $(startup)
  62.  
  63. import = $(clibimp)
  64.  
  65. module = CLib
  66.  
  67. build_msg = Building a $(lversion) version of $(program)
  68.  
  69. pgm_ver = /dvMAJ="$(pvmaj)" /dvMIN="$(pvmin)" /dvREV="$(pvrev)"
  70.  
  71. !ifndef %ccf386
  72. !   define  d_wcc386opt /ms /w4 /e99 /zp1 /3s /ot /d2 $(debug)
  73. !   define  p_wcc386opt /ms /w4 /s /zp1 /3s /oaxt
  74. !   define  x_wcc386opt $($(version)_wcc386opt) $(pgm_ver)
  75. !else
  76. !   define  x_wcc386opt $(%ccf386)
  77. !endif
  78.  
  79. !   define  d_wpp386opt /bt=netware /ie:\nlm\novh /ms /w4 /e99 /zp1 /3s /ot /d2 $(debug)
  80. !   define  p_wpp386opt /bt=netware /ie:\nlm\novh /ms /w4 /s /zp1 /3s /oaxt
  81. !   define  x_wpp386opt $($(version)_wpp386opt) $(pgm_ver)
  82.  
  83. compiler_cmd = $(wcc386) $(x_wcc386opt) $[*.c
  84. cpp_compiler_cmd = wpp386 $(x_wpp386opt) $[*.cpp
  85.  
  86. .BEFORE
  87.     echo $(build_msg)
  88.     set inc386=$(inc_386)
  89.     set lib386=$(lib_386)
  90.     set wcg386=$(code_386)
  91.  
  92. .c.obj:
  93.         $(compiler_cmd)
  94.  
  95. .cpp:   $(src_dir)
  96. .cpp.obj:
  97.         $(cpp_compiler_cmd)
  98.  
  99. TestStat.nlm : $(objlst) TestStat.LNK
  100.         $(linker) @TestStat
  101.  
  102. TestStat.LNK : teststat.mkf
  103.   if exist $^&.LNK del $^&.LNK
  104.   %append $^&.LNK $(nlm_TYPE)
  105.   %append $^&.LNK $(nlm_NAME)
  106.   %append $^&.LNK $(nlm_SCREEN)
  107.   %append $^&.LNK $(nlm_THREAD)
  108.   %append $^&.LNK $(nlm_STACK)
  109.   %append $^&.LNK $(nlm_NLMVER)
  110. !ifdef copyright
  111.   %append $^&.LNK $(nlm_COPYRIGHT)
  112. !endif
  113. !ifdef ldebug
  114.   %append $^&.LNK $(ldebug)
  115. !endif
  116.   for %i in ($(linkop)) do %append $^&.LNK Op %i
  117.   for %i in ($(objlst)) do %append $^&.LNK File %i
  118.   for %i in ($(import)) do %append $^&.LNK Import @%i
  119.   for %i in ($(export)) do %append $^&.LNK Export @%i
  120.   for %i in ($(module)) do %append $^&.LNK Module %i
  121.   for %i in ($(library)) do %append $^&.LNK Library %i
  122.  
  123. clean : .symbolic
  124.     del *.MAP
  125.     del *.OBJ
  126.     del *.ERR
  127.     del *.LNK
  128.     del *.NLM
  129.  
  130. zip : .symbolic
  131.     -pkzip -u TestStat teststat.mkf *.c *.h
  132.  
  133. unzip : .symbolic
  134.     -pkunzip -n -d TestStat
  135.  
  136. save : .symbolic
  137.     %make zip
  138.     %make clean
  139.  
  140.