Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

207 lines
4.0 KiB

  1. ############################
  2. # makefile for LinkInfo DLL
  3. ############################
  4. !ifdef NTMAKEENV
  5. #
  6. # Build using BUILD.EXE (Do not edit this section of this file, edit SOURCES)
  7. #
  8. !INCLUDE $(NTMAKEENV)\makefile.def
  9. !else # NTMAKEENV
  10. #
  11. # Build using NMAKE.EXE
  12. #
  13. #
  14. # Set default build.
  15. #
  16. # $(BUILD) may be:
  17. #
  18. # debug -> debug Win32
  19. # retail -> retail Win32
  20. #
  21. !ifndef BUILD
  22. BUILD = debug
  23. !endif
  24. #
  25. # Set directories.
  26. #
  27. ROOT = ..\..\..
  28. SHARED_DIR = $(ROOT)\rover\filesync\core
  29. #
  30. # Set output base name.
  31. #
  32. OUT_NAME = linkinfo
  33. #
  34. # Set tools' paths.
  35. #
  36. HC = hc31
  37. #
  38. # Set libraries.
  39. #
  40. LIBS = kernel32.lib user32.lib advapi32.lib mpr.lib
  41. #
  42. # Set file macros.
  43. #
  44. ASM_SRC =
  45. ASM_OBJ =
  46. C_SRC = dllinit.c\
  47. volumeid.c\
  48. server.c\
  49. cnrlink.c\
  50. canon.c\
  51. util.c\
  52. linkinfo.c
  53. C_OBJ = $(DEST_DIR)\dllinit.obj\
  54. $(DEST_DIR)\volumeid.obj\
  55. $(DEST_DIR)\server.obj\
  56. $(DEST_DIR)\cnrlink.obj\
  57. $(DEST_DIR)\canon.obj\
  58. $(DEST_DIR)\util.obj\
  59. $(DEST_DIR)\linkinfo.obj
  60. SHARED_C_SRC = init.c\
  61. serial.c\
  62. memmgr.c\
  63. valid.c\
  64. comc.c\
  65. inifile.c\
  66. resstr.c\
  67. debug.c
  68. SHARED_C_OBJ = $(DEST_DIR)\init.obj\
  69. $(DEST_DIR)\serial.obj\
  70. $(DEST_DIR)\memmgr.obj\
  71. $(DEST_DIR)\valid.obj\
  72. $(DEST_DIR)\comc.obj
  73. !if "$(BUILD)" == "debug"
  74. SHARED_C_OBJ = $(SHARED_C_OBJ)\
  75. $(DEST_DIR)\inifile.obj\
  76. $(DEST_DIR)\resstr.obj\
  77. $(DEST_DIR)\debug.obj
  78. !endif
  79. C_SRC = $(C_SRC) $(SHARED_C_SRC)
  80. C_OBJ = $(C_OBJ) $(SHARED_C_OBJ)
  81. #
  82. # Set documentation macros.
  83. #
  84. CANON_DOC_LIST = canon.c
  85. LINKINFO_DOC_LIST = linkinfo.c volumeid.c cnrlink.c
  86. DOC_LIST = $(CANON_DOC_LIST) $(LINKINFO_DOC_LIST)
  87. DOCS_DIR = docs
  88. #
  89. # Set manifest constants.
  90. #
  91. EXT_DEFINES = -DEXPV -DVSTF
  92. !include $(SHARED_DIR)\common.mk
  93. #######################
  94. # build pseudo-targets
  95. #######################
  96. #
  97. # Build LinkInfo documentation (API descriptions and WinHelp).
  98. #
  99. docs: checkdoc apidescs winhelp
  100. ##############
  101. # build rules
  102. ##############
  103. #
  104. # Copy shared source code.
  105. #
  106. init.c: $(SHARED_DIR)\init.c
  107. copy $(SHARED_DIR)\init.c
  108. serial.c: $(SHARED_DIR)\serial.c
  109. copy $(SHARED_DIR)\serial.c
  110. memmgr.c: $(SHARED_DIR)\memmgr.c
  111. copy $(SHARED_DIR)\memmgr.c
  112. valid.c: $(SHARED_DIR)\valid.c
  113. copy $(SHARED_DIR)\valid.c
  114. comc.c: $(SHARED_DIR)\comc.c
  115. copy $(SHARED_DIR)\comc.c
  116. inifile.c: $(SHARED_DIR)\inifile.c
  117. copy $(SHARED_DIR)\inifile.c
  118. resstr.c: $(SHARED_DIR)\resstr.c
  119. copy $(SHARED_DIR)\resstr.c
  120. debug.c: $(SHARED_DIR)\debug.c
  121. copy $(SHARED_DIR)\debug.c
  122. #
  123. # Create documentation directory.
  124. #
  125. checkdoc:
  126. @echo ***** docs build *****
  127. @echo �
  128. -@md $(DOCS_DIR)
  129. #
  130. # Generate LinkInfo API descriptions.
  131. #
  132. apidescs: $(DOCS_DIR)\canapis.rtf $(DOCS_DIR)\liapis.rtf
  133. $(DOCS_DIR)\canapis.rtf: $(CANON_DOC_LIST)
  134. $(AUTODOC) -v -xLINKINFOAPI -x INTERNAL -rd -o $@ $**
  135. $(DOCS_DIR)\liapis.rtf: $(LINKINFO_DOC_LIST)
  136. $(AUTODOC) -v -xLINKINFOAPI -x INTERNAL -rd -o $@ $**
  137. #
  138. # Generate LinkInfo WinHelp file.
  139. #
  140. winhelp: $(DOCS_DIR)\$(OUT_NAME).hlp
  141. $(DOCS_DIR)\$(OUT_NAME).hlp: $(OUT_NAME).hpj $(DOCS_DIR)\$(OUT_NAME).rtf
  142. $(HC) $(OUT_NAME).hpj
  143. copy $(OUT_NAME).hlp $(DOCS_DIR)
  144. del $(OUT_NAME).hlp
  145. $(DOCS_DIR)\$(OUT_NAME).rtf: $(DOC_LIST)
  146. $(AUTODOC) -v -xLINKINFOAPI -rh -o $@ $**
  147. !endif # NTMAKEENV