nmake.w32
上传用户:tjescc
上传日期:2021-02-23
资源大小:419k
文件大小:3k
源码类别:

Telnet服务器

开发平台:

Unix_Linux

  1. #!nmake /f
  2. #
  3. # Makefile for the Microsoft compiler/linker
  4. # creates the peks.dll and peks.lib target
  5. #
  6. !include <ntwin32.mak>
  7. INSTALL_TARGET = C:Nessus
  8. PEKS    = libpeks
  9. GMP     = $(PEKS)gmp3
  10. ZLIB    = $(PEKS)zlib113
  11. LNES    = libnessus
  12. CC      = cl.exe
  13. DEFS    = -I$(PEKS) -I$(LNES) -Iinclude
  14. CFLAGS  = -nologo -Ox -I. $(DEFS)
  15. LD      = link.exe
  16. LDFLAGS = -map -out:nessus.dll -def:nessus.def
  17. OBJ     = arglists.obj ftp_funcs.obj      
  18.           network.obj  plugutils.obj      
  19.   resolve.obj  scanners_utils.obj 
  20.           system.obj   ptycall.obj        
  21.   getopt.obj   getopt1.obj   
  22.   harglists.obj hlst.obj    
  23.   www_funcs.obj diff.obj
  24.   
  25. # ------------------------------------------------------
  26. #      default rules
  27. # ------------------------------------------------------
  28. all: $(PEKS)version.h $(PEKS)peks.lib nessus.lib
  29. {$(LNES)}.c.obj::
  30. $(CC) $(cvarsdll) $(CFLAGS) -c $<
  31. $(PEKS)version.h:
  32. @echo .
  33. @echo -------------------------------------------
  34. @echo You probably forgot to prepare this package
  35. @echo on a Unix machine unsing "make win32"
  36. @echo -------------------------------------------
  37. @echo .
  38. aborting ...
  39. # ------------------------------------------------------
  40. #      install peks stuff
  41. # ------------------------------------------------------
  42. install: install-bin install-doc
  43. install-bin: nessus.lib
  44. cd $(PEKS)
  45. nmake.bat install
  46. cd ..
  47. #
  48. copy nessus.lib       $(INSTALL_TARGET)lib
  49. copy nessus.dll       $(INSTALL_TARGET)bin
  50. #
  51. -mkdir $(INSTALL_TARGET)includenessus
  52. copy includelibnessus.h $(INSTALL_TARGET)includenessus
  53. copy includeharglists.h $(INSTALL_TARGET)includenessus
  54. copy includelibvers.h   $(INSTALL_TARGET)includenessus
  55. copy includegetopt.h    $(INSTALL_TARGET)includenessus
  56. copy include*.w32       $(INSTALL_TARGET)includenessus
  57. install-doc:
  58. -mkdir $(INSTALL_TARGET)docnessus
  59. -mkdir $(INSTALL_TARGET)docnessuslib
  60. copy VERSION          $(INSTALL_TARGET)docnessuslib
  61. copy README.WINDOWS   $(INSTALL_TARGET)docnessuslib
  62. copy nessus.map       $(INSTALL_TARGET)docnessuslib
  63. copy $(LNES)Copying  $(INSTALL_TARGET)docnessuslib
  64. # ------------------------------------------------------
  65. #      built peks stuff
  66. # ------------------------------------------------------
  67. nessus.lib: includepekscommon-stuff.w32 nessus.dll
  68. nessus.dll: $(OBJ) nessus.def
  69. $(LD) @<<
  70. $(dlllflags)
  71. $(LDFLAGS)
  72. $(OBJ)
  73. $(PEKS)peks.lib
  74. $(ZLIB)zlib.lib
  75. $(GMP)mpz.lib
  76.         $(guilibsdll)
  77. <<
  78. # ------------------------------------------------------
  79. #      built libs in subdirectories
  80. # ------------------------------------------------------
  81. $(PEKS)peks.lib: $(PEKS)nmake.bat
  82. cd $(PEKS)
  83. nmake.bat
  84. cd ..
  85. includepekscommon-stuff.w32:
  86. -mkdir includepeks
  87. copy $(PEKS)common-stuff.w32 includepeks
  88. # ------------------------------------------------------
  89. #      clean up
  90. # ------------------------------------------------------
  91. distclean clean::
  92. -del nessus.map
  93. -del nessus.exp
  94. -del *.obj
  95. -del includepeks*.w32
  96. distclean::
  97. -del nessus.dll
  98. -del nessus.lib
  99. -rmdir includepeks
  100. distclean clean::
  101. cd $(PEKS)
  102. nmake.bat $@
  103. cd ..