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.

172 lines
5.0 KiB

  1. #=------------------------------------------------------------------------=
  2. # VB55CTLS.inc
  3. #=------------------------------------------------------------------------=
  4. # builds a control for the vb5 product. adds a few pieces of functionality
  5. # to the generic MakeCBC.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=$(DESIGNERNAME).Dll
  18. !endif
  19. !ifndef _BASEKEYNAME
  20. _BASEKEYNAME=$(_LOCALEBASENAME)
  21. !endif
  22. # Relative path to the INTL, satellite DLL build, directory
  23. #
  24. INTLPATH=.\.
  25. VBLICPATH=..\..\VBLIC
  26. !if "$(TOOLS)"==""
  27. TOOLS=TOOLS
  28. !endif
  29. !if "$(C32)"==""
  30. C32=C32
  31. !endif
  32. IDHEADER=..\..\tools\idheader.bat
  33. DEPFILE=..\..\tools\depfile.bat
  34. !if "$(INTLBLD)"!=""
  35. ALLTARGETS=$(INTLPATH)\$(_LOCALEBASENAME)xxx.DLL \
  36. !elseif "$(DEPFILEBLD)"!=""
  37. !if "$(RUNMODEDLL)"=="YES"
  38. DEPFILEBASENAME=$(_RUNMODEBASENAME)
  39. !else
  40. DEPFILEBASENAME=$(_SERVERBASENAME)
  41. !endif
  42. ALLTARGETS=$(DEPFILEBASENAME).DEP
  43. !else
  44. ALLTARGETS=$(SPECIALTARGETS) $(VB55CTLS)\dwinvers.h Helpstrs.H \
  45. !if "$(RUNMODEDLL)"=="YES"
  46. $(_RUNMODESERVERNAME) \
  47. !endif
  48. $(_SERVERFILENAME) \
  49. !if "$(ASDEBUG)"=="" && "$(ASICECAP)"==""
  50. Lego
  51. !endif
  52. !endif
  53. TLBTARGETS=HelpStrs.H ..\$(DESIGNERNAME).ODL
  54. TLBRUNTARGETS=HelpStrs.H ..\$(RUNMODE).ODL
  55. # licensing support
  56. #
  57. !if "$(ASDEBUG)"!=""
  58. _LIBS=$(_LIBS) $(VBLICPATH)\debug\vblic.lib
  59. !elseif "$(ASICECAP)"!=""
  60. _LIBS=$(_LIBS) $(VBLICPATH)\icecap\vblic.lib
  61. !else
  62. _LIBS=$(_LIBS) $(VBLICPATH)\release\vblic.lib
  63. !endif
  64. #=------------------------------------------------------------------------=
  65. # extra compiler flags, etc.
  66. #
  67. !if "$(ASDEBUG)"!=""
  68. #
  69. # debug
  70. #
  71. _LFLAGS=$(_LFLAGS) -map:$(_SERVERBASENAME).map
  72. !if "$(PROCESSOR_ARCHITECTURE)"=="ALPHA"
  73. _CFLAGS = $(_CFLAGS) /QAieee
  74. !endif
  75. !else if "$(ASICECAP)"!=""
  76. #
  77. # icecap
  78. #
  79. _LFLAGS=$(_LFLAGS) -map:$(_SERVERBASENAME).map
  80. !else
  81. #
  82. # release
  83. #
  84. _LFLAGS=$(_LFLAGS) -debugtype:fixup,cv -debug:notmapped,full -debugtype:coff -map:$(_SERVERBASENAME).map
  85. !if "$(PROCESSOR_ARCHITECTURE)"=="ALPHA"
  86. _CFLAGS = $(_CFLAGS) /QAl /QAieee
  87. !endif
  88. !endif
  89. #=------------------------------------------------------------------------=
  90. # put all variable definitions before this, and new targets afterwards
  91. #
  92. !include "..\..\Include\MakeCBC.Inc"
  93. #=------------------------------------------------------------------------=
  94. # new targets
  95. #
  96. VBDep: HelpStrs.H dep
  97. #-----------------------------------------------------------------------
  98. # Build dwinvers.h
  99. #-----------------------------------------------------------------------
  100. $(VB55CTLS)\dwinvers.h : $(VB55CTLS)\dwinvers.txt
  101. echo Building dwinvers.h
  102. $(MAKEVERS) > $(VB55CTLS)\dwinvers.h < $(VB55CTLS)\dwinvers.txt
  103. $(THUNDER55)\$(TOOLS)\bin\getver $(THUNDER55)\$(C32)\dll\vba6\vba6.dll VBA >> $(VB55CTLS)\dwinvers.h
  104. copy $(VB55CTLS)\dwinvers.h $(VB55CTLS)\framewrk
  105. # helpstr/id support
  106. #
  107. HelpStrs.H : ..\$(DESIGNERNAME).ID
  108. echo Generating HelpIDs.H, HelpStrs.H and HelpStrs.RC
  109. $(IDHEADER) ..\$(DESIGNERNAME).id helpids.h helpstrs.h helpstrs.rc > nul
  110. !if "$(_SERVERBASENAME)"==""
  111. !message _SERVERBASENAME not set
  112. !endif
  113. !if "$(_SERVEREXTENSION)"==""
  114. !message _SERVEREXTENSION not set
  115. !endif
  116. !if "$(_LOCALEBASENAME)"==""
  117. !message _LOCALEBASENAME not set
  118. !endif
  119. # Localized DLL build
  120. #
  121. $(INTLPATH)\HelpStrs.RC : ..\$(DESIGNERNAME).ID
  122. echo Generating HelpStrs.RC
  123. $(IDHEADER) ..\$(DESIGNERNAME).id $(INTLPATH)\helpids.h $(INTLPATH)\helpstrs.h $(INTLPATH)\helpstrs.rc > nul
  124. $(INTLPATH)\intl.res : $(INTLPATH)\intl.rc
  125. echo Compiling satellite DLL resources ...
  126. rc -dINTLBUILD -i..\. -i\. -i..\..\framewrk\. -i..\..\include\. $(_RCFLAGS) -fo $(INTLPATH)\intl.res $(INTLPATH)\intl.rc
  127. $(INTLPATH)\intl.rbj : $(INTLPATH)\intl.res
  128. !ifdef RISC_BLD
  129. cvtres -machine:$(PROCESSOR_ARCHITECTURE) -nologo -out:$(INTLPATH)\intl.rbj $(INTLPATH)\intl.res
  130. !else
  131. cvtres -machine:ix86 -nologo -out:$(INTLPATH)\intl.rbj $(INTLPATH)\intl.res
  132. !endif
  133. $(INTLPATH)\$(_LOCALEBASENAME)xxx.DLL : $(INTLPATH)\helpstrs.rc $(INTLPATH)\intl.rbj
  134. echo Linking satellite DLL ...
  135. link -nologo -out:$(INTLPATH)\$(_LOCALEBASENAME)xxx.DLL -DLL -subsystem:windows,4.00 -base:@$(DEVBINC)\vstudio\v6\dllbase.txt,$(_BASEKEYNAME)_intl -nodefaultlib -machine:$(PROCESSOR_ARCHITECTURE) -noentry $(INTLPATH)\intl.rbj
  136. Lego:
  137. !if "$(CTLS_LEGO)"=="YES"
  138. nmake -f $(THUNDER55)\common\instr.mak FILE_BASE=$(_SERVERBASENAME) FILE_EXTENSION=$(_SERVEREXTENSION) CMD_SCRIPT= BOOT_SYM=
  139. !endif
  140. # Dependency File Build
  141. #
  142. $(DEPFILEBASENAME).DEP : $(DEPFILEBASENAME).TPL $(VB55CTLS)\dwinvers.txt $(VB55CTLS)\dwinvers.h
  143. echo Generating Setup Wizard dependency file
  144. $(DEPFILE) $(DEPFILEBASENAME).tpl $(DEPFILEBASENAME).dep
  145. del $(DEPFILEBASENAME).dep.suc