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.

189 lines
5.2 KiB

  1. #=------------------------------------------------------------------------=
  2. # vb5ctls.inc
  3. #=------------------------------------------------------------------------=
  4. # builds a control for the vb5 product. adds a few pieces of functionality
  5. # to the generic makectl.inc
  6. #=------------------------------------------------------------------------=
  7. # NOTE:
  8. #
  9. # variable definitions before the !include line, and new targets, etc,
  10. # afterwards.
  11. #
  12. #=------------------------------------------------------------------------=
  13. #=------------------------------------------------------------------------=
  14. # variable definitions
  15. #
  16. !if "$(_SERVERFILENAME)"==""
  17. _SERVERFILENAME=$(SERVERNAME).Dll
  18. !endif
  19. # Relative path to the INTL, satellite DLL build, directory
  20. #
  21. INTLPATH=.\.
  22. VBLICPATH=..\..\VBLIC
  23. IDHEADER=..\..\tools\idheader.bat
  24. DEPFILE=..\..\tools\depfile.bat
  25. !if "$(DEPFILEBLD)"!=""
  26. ALLTARGETS=$(_SERVERBASENAME).DEP
  27. !else
  28. MORETARGETS=\
  29. ! if "$(_NOID)" == ""
  30. Helpstrs.H \
  31. ! endif
  32. $(MORETARGETS)
  33. !if "$(ASDEBUG)"=="" && "$(ASICECAP)"==""
  34. POSTTARGETS=Lego
  35. !else
  36. POSTTARGETS=
  37. !endif
  38. !endif
  39. TLBTARGETS=\
  40. !if "$(_NOID)" == ""
  41. HelpStrs.H \
  42. !endif
  43. !if "$(_NOODLFILE)"==""
  44. ..\$(SERVERNAME).ODL
  45. !endif
  46. # licensing support
  47. #
  48. !if "$(ASDEBUG)"!=""
  49. _LIBS=$(_LIBS) $(VBLICPATH)\debug\vblic.lib
  50. !elseif "$(ASICECAP)"!=""
  51. _LIBS=$(_LIBS) $(VBLICPATH)\icecap\vblic.lib
  52. !else
  53. _LIBS=$(_LIBS) $(VBLICPATH)\release\vblic.lib
  54. !endif
  55. #=------------------------------------------------------------------------=
  56. # extra compiler flags, etc.
  57. #
  58. !if "$(ASDEBUG)"!=""
  59. #
  60. # debug
  61. #
  62. _LFLAGS=$(_LFLAGS) -map:$(SERVERNAME).map
  63. !if "$(PROCESSOR_ARCHITECTURE)"=="ALPHA"
  64. _CFLAGS = $(_CFLAGS) /QAieee
  65. !endif
  66. !else if "$(ASICECAP)"!=""
  67. #
  68. # icecap
  69. #
  70. _LFLAGS=$(_LFLAGS) -map:$(SERVERNAME).map
  71. !else
  72. #
  73. # release
  74. #
  75. _LFLAGS=$(_LFLAGS) -debugtype:fixup,cv -debug:notmapped,full -debugtype:coff -map:$(SERVERNAME).map
  76. !if "$(PROCESSOR_ARCHITECTURE)"=="ALPHA"
  77. _CFLAGS = $(_CFLAGS) /QAl /QAieee
  78. !endif
  79. !endif
  80. !if "$(_NOBASE)"==""
  81. !if "$(ASDEBUG)"!=""
  82. _LFLAGS=$(_LFLAGS) -base:@$(DEVBINC)\vstudio\v6\dllbase.txt,$(SERVERNAME)_d
  83. !else
  84. _LFLAGS=$(_LFLAGS) -base:@$(DEVBINC)\vstudio\v6\dllbase.txt,$(SERVERNAME)_r
  85. !endif
  86. !endif
  87. #=------------------------------------------------------------------------=
  88. # put all variable definitions before this, and new targets afterwards
  89. #
  90. !include "..\..\Include\MakeAuto.Inc"
  91. #=------------------------------------------------------------------------=
  92. # new targets
  93. #
  94. VBDep:\
  95. !if "$(_NOID)" == ""
  96. HelpStrs.H \
  97. !endif
  98. dep
  99. # helpstr/id support
  100. #
  101. !if "$(_NOID)" == ""
  102. HelpStrs.H : ..\$(SERVERNAME).ID
  103. echo Generating HelpIDs.H, HelpStrs.H and HelpStrs.RC
  104. $(IDHEADER) ..\$(SERVERNAME).id helpids.h helpstrs.h helpstrs.rc > nul
  105. !endif
  106. !if "$(SERVERNAME)"==""
  107. !message _SERVERBASENAME not set
  108. !endif
  109. !if "$(_SERVEREXTENSION)"==""
  110. !message _SERVEREXTENSION not set
  111. !endif
  112. !if "$(_LOCALEBASENAME)"==""
  113. !message _LOCALEBASENAME not set
  114. !endif
  115. # Localized DLL build
  116. #
  117. !if "$(_NOID)" == ""
  118. $(INTLPATH)\HelpStrs.RC : ..\$(SERVERNAME).ID
  119. echo Generating HelpStrs.RC
  120. $(IDHEADER) ..\$(SERVERNAME).id $(INTLPATH)\helpids.h $(INTLPATH)\helpstrs.h $(INTLPATH)\helpstrs.rc > nul
  121. !endif
  122. $(INTLPATH)\intl.res : $(INTLPATH)\intl.rc
  123. echo Compiling satellite DLL resources ...
  124. # Special for msrdo20 build - this is a non-mfc server NOT built in the framework
  125. !if "$(NONFRAMEWRKMAKE)"==""
  126. rc -dINTLBUILD $(INCPATH) -I$(FRAMEWRKDIR)\framewrk\. $(_RCFLAGS) -fo $(INTLPATH)\intl.res $(INTLPATH)\intl.rc
  127. !else
  128. rc -dINTLBUILD $(INCPATH) $(_RCFLAGS) -fo $(INTLPATH)\intl.res $(INTLPATH)\intl.rc
  129. !endif
  130. $(INTLPATH)\intl.rbj : $(INTLPATH)\intl.res
  131. !ifdef RISC_BLD
  132. cvtres -machine:$(PROCESSOR_ARCHITECTURE) -nologo -out:$(INTLPATH)\intl.rbj $(INTLPATH)\intl.res
  133. !else
  134. cvtres -machine:ix86 -nologo -out:$(INTLPATH)\intl.rbj $(INTLPATH)\intl.res
  135. !endif
  136. !if "$(INTLBLD)"!=""
  137. #
  138. # Check for the .ID file. Not all objects require an .ID file.
  139. #
  140. ! if exist(..\$(SERVERNAME).ID)
  141. $(INTLPATH)\$(_LOCALEBASENAME)xxx.DLL : $(FRAMEWRKDIR)\dwinvers.h \
  142. !if "$(_NOID)"==""
  143. $(INTLPATH)\helpstrs.rc \
  144. !endif
  145. $(INTLPATH)\intl.rbj
  146. echo Linking satellite DLL ...
  147. link -nologo -out:$(INTLPATH)\$(_LOCALEBASENAME)xxx.DLL -DLL -subsystem:windows,4.00 -base:@$(DEVBINC)\vstudio\v6\dllbase.txt,$(SERVERNAME)_intl -nodefaultlib -machine:$(PROCESSOR_ARCHITECTURE) -noentry $(INTLPATH)\intl.rbj
  148. ! else
  149. $(INTLPATH)\$(_LOCALEBASENAME)xxx.DLL : $(INTLPATH)\intl.rbj
  150. echo Linking satellite DLL ...
  151. link -nologo -out:$(INTLPATH)\$(_LOCALEBASENAME)xxx.DLL -DLL -subsystem:windows,4.00 -base:@$(DEVBINC)\vstudio\v6\dllbase.txt,$(SERVERNAME)_intl -nodefaultlib -machine:$(PROCESSOR_ARCHITECTURE) -noentry $(INTLPATH)\intl.rbj
  152. ! endif
  153. !endif
  154. Lego:
  155. !if "$(CTLS_LEGO)"=="YES"
  156. nmake -f $(THUNDER55)\common\instr.mak FILE_BASE=$(_SERVERBASENAME) FILE_EXTENSION=$(_SERVEREXTENSION) CMD_SCRIPT= BOOT_SYM=
  157. !endif
  158. # Dependency File Build
  159. #
  160. $(_SERVERBASENAME).DEP : $(_SERVERBASENAME).TPL $(VB55CTLS)\dwinvers.txt $(VB55CTLS)\dwinvers.h
  161. echo Generating Setup Wizard dependency file
  162. $(DEPFILE) $(_SERVERBASENAME).tpl $(_SERVERBASENAME).dep
  163. del $(_SERVERBASENAME).dep.suc