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.

234 lines
6.5 KiB

  1. # Makefile for NetMeeting Setup INF files
  2. #
  3. # Generates different INF files for different installations of NetMeeting
  4. # FULL - Standalone, web-based installation of NetMeeting.
  5. # ADD-ON - Web-based, IE add-on release of NetMeeting.
  6. # MEMPHIS - Release of NetMeeting to be released as part of Windows 98 (MEMPHIS)
  7. # NT5 - Release of NetMeeting to be released as part of NT5
  8. #
  9. # Separate targets are available to build the debug and retail versions
  10. # of these components.
  11. #
  12. # HISTORY:
  13. # 20Jun96 dannygl Created
  14. # 24Sep96 dannygl Renamed IE3 and IE4 to "FULL" and "ADD-ON",
  15. # respectively.
  16. # Condense install and remove into a single INF.
  17. # 2Oct96 dannygl Add NT add-on INF support
  18. # 13Dec96 dannygl Add temporary support for a Windows 95 version with
  19. # 32-bit application sharing components.
  20. # 06May97 laurabu Make 32-bit app sharing components the Win95 default.
  21. # 03Jun97 dannygl Condense Win95 and NT/x86 targets
  22. # 07Aug97 hammer Rename "osr2" to "memphis"
  23. # 05Feb98 hammer Added NT5
  24. #
  25. # Suffixes used by this makefile
  26. .SUFFIXES : .inx .inf
  27. !if "$(BUILD_PRODUCT)" == "NT"
  28. !include $(NTMAKEENV)\makefile.plt
  29. !include $(NTMAKEENV)\$(TARGET_DIRECTORY)mk.inc
  30. CPU=$(TARGET_DIRECTORY)
  31. !endif
  32. # Definitions
  33. # Target directories for INF files
  34. MEMPHISDIR=memphis
  35. NT5DIR=nt5
  36. FULLDIR=full
  37. ADDONDIR=addon
  38. # Base switches for C preprocessor
  39. #
  40. # /EP - Run through the preprocessor only
  41. # /W4 - Warning level 4
  42. # /nologo - Don't display compiler logo
  43. # /c - Don't build an EXE
  44. CFLAGS_BASE=/EP /W4 /nologo /c
  45. # add /DCHAT_MSCHAT to build w/ Microsoft Chat instead of CB32
  46. CFLAGS_FULL=/DIEX_INSTALL
  47. CFLAGS_ADDON=/DIEX_INSTALL /DIE_ADDON
  48. CFLAGS_MEMPHIS=/DWIN_OPTION
  49. CFLAGS_NT5=/DWINNT_INSTALL
  50. CFLAGS_FAREAST=/DFAREAST
  51. CFLAGS_DEBUG=/DDEBUG
  52. CFLAGS_RETAIL=
  53. !if $(FREEBUILD)
  54. CFLAGS_EXTRA=$(CFLAGS_RETAIL)
  55. !else
  56. CFLAGS_EXTRA=$(CFLAGS_DEBUG)
  57. !endif
  58. # All of the INF files that are built in this makefile
  59. ALLINFS= \
  60. !if "$(CPU)"=="I386"
  61. $(FULLDIR)\$(CPU)\retail\cc32.inf \
  62. $(FULLDIR)\$(CPU)\debug\cc32.inf \
  63. $(FULLDIR)\$(CPU)\fareast\cc32.inf \
  64. $(FULLDIR)\$(CPU)\fareast\msnetmtg.inf \
  65. $(MEMPHISDIR)\retail\msnetmtg.inf \
  66. $(MEMPHISDIR)\debug\msnetmtg.inf \
  67. !endif
  68. $(NT5DIR)\$(CPU)\retail\msnetmtg.inf \
  69. $(NT5DIR)\$(CPU)\debug\msnetmtg.inf \
  70. $(FULLDIR)\$(CPU)\retail\msnetmtg.inf \
  71. $(FULLDIR)\$(CPU)\debug\msnetmtg.inf \
  72. $(FULLDIR)\$(CPU)\retail\nmrk.inf \
  73. $(FULLDIR)\$(CPU)\debug\nmrk.inf \
  74. $(ADDONDIR)\$(CPU)\retail\msnetmtg.inf \
  75. $(ADDONDIR)\$(CPU)\debug\msnetmtg.inf
  76. # Inference rules
  77. $(O)\msnetmtg.inf: msnetmtg.inx
  78. $(C_PREPROCESSOR_NAME) $(CFLAGS_NT5) $(CFLAGS_EXTRA) $(C_PREPROCESSOR_FLAGS) $** > $(O)\$**.tmp
  79. cleaninf -w $(O)\$**.tmp $@
  80. del $(O)\$**.tmp
  81. {.}.inx{$(FULLDIR)\$(CPU)\retail}.inf:
  82. $(CC) $(CFLAGS_BASE) $(CFLAGS_FULL) $(CFLAGS_RETAIL) $< > $*.tmp
  83. uniq -u $*.tmp > $@
  84. del $*.tmp
  85. {.}.inx{$(FULLDIR)\$(CPU)\debug}.inf:
  86. $(CC) $(CFLAGS_BASE) $(CFLAGS_FULL) $(CFLAGS_DEBUG) $< > $*.tmp
  87. uniq -u $*.tmp > $@
  88. del $*.tmp
  89. {.}.inx{$(ADDONDIR)\$(CPU)\retail}.inf:
  90. $(CC) $(CFLAGS_BASE) $(CFLAGS_ADDON) $(CFLAGS_RETAIL) $< > $*.tmp
  91. uniq -u $*.tmp > $@
  92. del $*.tmp
  93. {.}.inx{$(ADDONDIR)\$(CPU)\debug}.inf:
  94. $(CC) $(CFLAGS_BASE) $(CFLAGS_ADDON) $(CFLAGS_DEBUG) $< > $*.tmp
  95. uniq -u $*.tmp > $@
  96. del $*.tmp
  97. {.}.inx{$(MEMPHISDIR)\retail}.inf:
  98. $(CC) $(CFLAGS_BASE) $(CFLAGS_MEMPHIS) $(CFLAGS_RETAIL) $< > $*.tmp
  99. uniq -u $*.tmp > $@
  100. del $*.tmp
  101. {.}.inx{$(MEMPHISDIR)\debug}.inf:
  102. $(CC) $(CFLAGS_BASE) $(CFLAGS_MEMPHIS) $(CFLAGS_DEBUG) $< > $*.tmp
  103. uniq -u $*.tmp > $@
  104. del $*.tmp
  105. {.}.inx{$(NT5DIR)\$(CPU)\retail}.inf:
  106. !if "$(BUILD_PRODUCT)" == "NT"
  107. $(C_PREPROCESSOR_NAME) $(CFLAGS_NT5) $(CFLAGS_RETAIL) $(C_PREPROCESSOR_FLAGS) $< > $*.tmp
  108. cleaninf -w $*.tmp $@
  109. !else
  110. $(CC) $(CFLAGS_BASE) $(CFLAGS_NT5) $(CFLAGS_RETAIL) $< > $*.tmp
  111. uniq -u $*.tmp > $@
  112. !endif
  113. del $*.tmp
  114. {.}.inx{$(NT5DIR)\$(CPU)\debug}.inf:
  115. !if "$(BUILD_PRODUCT)" == "NT"
  116. $(C_PREPROCESSOR_NAME) $(CFLAGS_NT5) $(CFLAGS_DEBUG) $(C_PREPROCESSOR_FLAGS) $< > $*.tmp
  117. cleaninf -w $*.tmp $@
  118. !else
  119. $(CC) $(CFLAGS_BASE) $(CFLAGS_NT5) $(CFLAGS_DEBUG) $< > $*.tmp
  120. uniq -u $*.tmp > $@
  121. !endif
  122. del $*.tmp
  123. !if "$(CPU)"=="I386"
  124. {.}.inx{$(FULLDIR)\$(CPU)\fareast}.inf:
  125. $(CC) $(CFLAGS_BASE) $(CFLAGS_FULL) $(CFLAGS_RETAIL) $(CFLAGS_FAREAST) $< >$*.tmp
  126. uniq -u $*.tmp > $@
  127. del $*.tmp
  128. !endif
  129. # BUILD TARGETS
  130. # Default build target -- MUST BE FIRST
  131. default: all
  132. $(ALLINFS): ..\..\..\h\version.h ..\common.inx
  133. all: \
  134. !if "$(BUILD_PRODUCT)" != "NT"
  135. full \
  136. addon \
  137. memphis \
  138. !endif
  139. full: fulldirs fullretail fulldebug
  140. addon: addondirs addonretail addondebug
  141. !if "$(CPU)"=="I386"
  142. memphis: memphisdirs memphisretail memphisdebug
  143. !else
  144. memphis:
  145. !endif
  146. alldirs: fulldirs addondirs memphisdirs nt5dirs
  147. retail: alldirs fullretail addonretail memphisretail
  148. debug: alldirs fulldebug addondebug memphisdebug
  149. nt5: nt5dirs nt5retail nt5debug
  150. fulldirs:
  151. -md $(FULLDIR)
  152. -md $(FULLDIR)\$(CPU)
  153. !if "$(CPU)"=="I386"
  154. -md $(FULLDIR)\$(CPU)\fareast
  155. !endif
  156. -md $(FULLDIR)\$(CPU)\retail
  157. -md $(FULLDIR)\$(CPU)\debug
  158. addondirs:
  159. -md $(ADDONDIR)
  160. -md $(ADDONDIR)\$(CPU)
  161. -md $(ADDONDIR)\$(CPU)\retail
  162. -md $(ADDONDIR)\$(CPU)\debug
  163. memphisdirs:
  164. -md $(MEMPHISDIR)
  165. -md $(MEMPHISDIR)\retail
  166. -md $(MEMPHISDIR)\debug
  167. nt5dirs:
  168. -md $(NT5DIR)
  169. -md $(NT5DIR)\$(CPU)
  170. -md $(NT5DIR)\$(CPU)\retail
  171. -md $(NT5DIR)\$(CPU)\debug
  172. fullretail: fulldirs \
  173. !if "$(CPU)"=="I386"
  174. $(FULLDIR)\$(CPU)\fareast\msnetmtg.inf \
  175. $(FULLDIR)\$(CPU)\fareast\cc32.inf \
  176. $(FULLDIR)\$(CPU)\retail\cc32.inf \
  177. !endif
  178. $(FULLDIR)\$(CPU)\retail\msnetmtg.inf \
  179. $(FULLDIR)\$(CPU)\retail\nmrk.inf
  180. fulldebug: fulldirs \
  181. !if "$(CPU)"=="I386"
  182. $(FULLDIR)\$(CPU)\debug\cc32.inf \
  183. !endif
  184. $(FULLDIR)\$(CPU)\debug\msnetmtg.inf \
  185. $(FULLDIR)\$(CPU)\debug\nmrk.inf
  186. addonretail: addondirs $(ADDONDIR)\$(CPU)\retail\msnetmtg.inf
  187. addondebug: addondirs $(ADDONDIR)\$(CPU)\debug\msnetmtg.inf
  188. memphisretail: memphisdirs $(MEMPHISDIR)\retail\msnetmtg.inf
  189. memphisdebug: memphisdirs $(MEMPHISDIR)\debug\msnetmtg.inf
  190. nt5retail: nt5dirs $(NT5DIR)\$(CPU)\retail\msnetmtg.inf
  191. nt5debug: nt5dirs $(NT5DIR)\$(CPU)\debug\msnetmtg.inf