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.

222 lines
9.3 KiB

  1. CCSHELL_DIR = $(PROJECT_ROOT)
  2. BUILD_PRIVLIB = 1
  3. SELFREGNAME = $(O)\selfreg_shell32.inf
  4. MISCFILES = $(MISCFILES) $(SELFREGNAME)
  5. MSC_WARNING_LEVEL=/W4
  6. !include $(CCSHELL_DIR)\shell32\shell32.inc
  7. SOURCES_USED = $(SOURCES_USED) $(CCSHELL_DIR)\shell32\shell32.inc
  8. SYNCHRONIZE_DRAIN=1
  9. TARGETNAME = shell32
  10. TARGETPATH = obj
  11. TARGETTYPE = DYNLINK
  12. PASS1_PUBLISH= \
  13. {$(O)\shell32.lib=$(SDK_LIB_PATH)\shell32.lib} \
  14. {$(O)\shell32p.lib=$(SHELL_LIB_PATH)\shell32p.lib}
  15. TARGETLIBS = $(LIBRARY_PLATFORM_PATH)\*\gdi32.lib \
  16. $(LIBRARY_PLATFORM_PATH)\*\user32.lib \
  17. $(LIBRARY_PLATFORM_PATH)\*\kernel32.lib \
  18. ..\sdspatch\$(O)\sdspatch.lib \
  19. ..\menuband\$(O)\menuband.lib \
  20. $(SDK_LIB_PATH)\advapip.lib \
  21. $(SDK_LIB_PATH)\adsiid.lib \
  22. $(SHELL_LIB_PATH)\shlwapip.lib \
  23. $(SDK_LIB_PATH)\winmm.lib \
  24. $(SDK_LIB_PATH)\msi.lib \
  25. $(SDK_LIB_PATH)\devmgr.lib \
  26. $(SDK_LIB_PATH)\urlmon.lib \
  27. $(SDK_LIB_PATH)\wininet.lib \
  28. $(SDK_LIB_PATH)\secur32.lib \
  29. $(SDK_LIB_PATH)\winspool.lib \
  30. $(SDK_LIB_PATH)\userenv.lib \
  31. $(SDK_LIB_PATH)\ole32.lib \
  32. $(SDK_LIB_PATH)\oleaut32.lib \
  33. $(SDK_LIB_PATH)\oleacc.lib \
  34. $(SDK_LIB_PATH)\version.lib \
  35. $(NET_LIB_PATH)\mprp.lib \
  36. $(SDK_LIB_PATH)\mprapi.lib \
  37. $(SDK_LIB_PATH)\netapi32.lib \
  38. $(SDK_LIB_PATH)\cscdll.lib \
  39. $(SDK_LIB_PATH)\ntdsapi.lib \
  40. $(SDK_LIB_PATH)\activeds.lib \
  41. $(SDK_LIB_PATH)\msdasc.lib \
  42. $(SHELL_LIB_PATH)\uxthemep.lib \
  43. $(DS_LIB_PATH)\creduip.lib \
  44. $(SDK_LIB_PATH)\rasapi32.lib \
  45. $(DS_LIB_PATH)\msgina.lib \
  46. $(CCSHELL_DIR)\lib\$(O)\shguid.lib \
  47. $(CCSHELL_DIR)\lib\$(O)\shguidp.lib \
  48. $(CCSHELL_DIR)\lib\$(O)\ieguidp.lib \
  49. $(SDK_LIB_PATH)\uuid.lib \
  50. $(SDK_LIB_PATH)\wiaguid.lib \
  51. $(SDK_LIB_PATH)\powrprof.lib \
  52. $(SHELL_LIB_PATH)\shdocvwp.lib \
  53. $(PROJECT_ROOT)\lib\$(O)\browseui.lib \
  54. $(PROJECT_LIB_PATH)\shdocvw.lib \
  55. $(PROJECT_ROOT)\lib\$(O)\secutil.lib \
  56. $(SHELL_LIB_PATH)\efsadu.lib \
  57. $(SHELL_LIB_PATH)\linkinfo.lib \
  58. $(CCSHELL_DIR)\lib\$(O)\shfusion.lib \
  59. $(SDK_LIB_PATH)\msimg32.lib \
  60. $(WINDOWS_LIB_PATH)\obj\duser.lib \
  61. !if $(FREEBUILD)
  62. $(WINDOWS_LIB_PATH)\directui.lib \
  63. !else
  64. $(WINDOWS_LIB_PATH)\directuid.lib \
  65. !endif
  66. $(PRINTSCAN_LIB_PATH)\printui.lib \
  67. $(SDK_LIB_PATH)\htmlhelp.lib \
  68. $(CCSHELL_DIR)\ext\cdfview\dll\$(O)\cdfview.lib \
  69. $(SDK_LIB_PATH)\setupapi.lib \
  70. $(SDK_LIB_PATH)\dxguid.lib \
  71. $(WINDOWS_LIB_PATH)\apphelp.lib
  72. # Remember - only things that are listed in the DEF file go into LINKLIBS
  73. LINKLIBS = ..\ntcpp\$(O)\srccpp.lib \
  74. ..\unicpp\ntcpp\$(O)\unicpp.lib \
  75. $(PROJECT_ROOT)\lib\$(O)\stock.lib
  76. TARGETLIBS = $(TARGETLIBS) \
  77. $(SDK_LIB_PATH)\ntdll.lib \
  78. $(SDK_LIB_PATH)\rpcrt4.lib \
  79. $(SDK_LIB_PATH)\query.lib \
  80. $(WINDOWS_LIB_PATH)\user32p.lib \
  81. $(SDK_LIB_PATH)\gdiplus.lib \
  82. $(SDK_LIB_PATH)\imm32.lib
  83. # shlwapip.lib is weird.
  84. #
  85. # We want to put shlwapip.lib into the LINKLIBS because we have old
  86. # exports from shell32.lib that have moved to shlwapi (which we forward to)
  87. # and we can't remove them since people link to them by ordinal.
  88. #
  89. # However, LINKLIBS are linked before TARGETLIBS, which is a problem
  90. # because shlwapip contains overrides for standard Win32 functions
  91. # which we do not want to use. (The overrides come from the Trident
  92. # people, who apparently rely on them.)
  93. #
  94. # The secret is IMPLIB_OBJS. We list shlwapip.lib there to indicate
  95. # that we need it built in order to link, and also list it in TARGETLIBS
  96. # to indicate the link order.
  97. IMPLIB_OBJS = $(IMPLIB_OBJS) \
  98. $(SHELL_LIB_PATH)\shlwapip.lib
  99. DELAYLOAD = query.dll;winmm.dll;msi.dll;\
  100. urlmon.dll;wininet.dll;devmgr.dll;winspool.drv;userenv.dll;\
  101. ole32.dll;oleaut32.dll;secur32.dll;oleacc.dll;\
  102. version.dll;mpr.dll;netapi32.dll;cscdll.dll;linkinfo.dll;\
  103. shdocvw.dll;browseui.dll;uxtheme.dll;\
  104. credui.dll;msgina.dll;efsadu.dll;powrprof.dll;rasapi32.dll;\
  105. printui.dll;cdfview.dll;msimg32.dll;duser.dll;setupapi.dll;\
  106. imm32.dll;gdiplus.dll;apphelp.dll
  107. DLOAD_ERROR_HANDLER = kernel32
  108. DLLDEF = $(O)\shell32.def
  109. PRIVDEFSRC = ..\shell32.src
  110. PRIVDEF = $(O)\shell32p.def
  111. PRIVLIB = shell32p.lib
  112. INCLUDES = $(INCLUDES);$(PROJECT_ROOT)\lib\$(O);$(O);$(TERMSRV_INC_PATH)
  113. USE_MSVCRT = 1
  114. DLLENTRY = _DllMainCRTStartup
  115. NTTARGETFILES =
  116. # for historical reasons we include some GUIDs in the shell32 import library
  117. DLLLIBOBJECTS = $(CCSHELL_DIR)\lib\$(O)\shguid.lib
  118. SOURCES = \
  119. ..\shell32.rc \
  120. ..\about.c \
  121. ..\bitbuck.c \
  122. ..\bookmk.c \
  123. ..\cabstate.c \
  124. ..\clsobj.c \
  125. ..\control1.c \
  126. ..\copy.c \
  127. ..\copyhook.c \
  128. ..\cplobj.c \
  129. ..\cstrings.c \
  130. ..\debug.c \
  131. ..\defclsf.c \
  132. ..\drawpie.c \
  133. ..\exec.c \
  134. ..\extract.c \
  135. ..\expenv.c \
  136. ..\futil.c \
  137. ..\hash.c \
  138. ..\help.c \
  139. ..\init.c \
  140. ..\lvutil.c \
  141. ..\malloc.c \
  142. ..\msgbox.c \
  143. ..\ole2def.c \
  144. ..\ole2dup.c \
  145. ..\ole2dup2.c \
  146. ..\os.c \
  147. ..\path.c \
  148. ..\fldsets.c \
  149. ..\pickicon.c \
  150. ..\printer1.c \
  151. ..\prtprop.c \
  152. ..\psxa.c \
  153. ..\rdrag.c \
  154. ..\reglist.c \
  155. ..\restart.c \
  156. ..\rundll32.c \
  157. ..\shared.c \
  158. ..\shprsht.c \
  159. ..\shtdndlg.c \
  160. ..\stream.c \
  161. ..\undo.c \
  162. ..\version.c \
  163. ..\viewcomm.c \
  164. ..\ynlist.c \
  165. ..\exec2nt.c \
  166. ..\argvw.c \
  167. ..\lstrfns.c \
  168. ..\psdocurd.c \
  169. ..\regenv.c \
  170. ..\nothunk.c \
  171. ..\thunktxt.c \
  172. ..\pifdat.c \
  173. ..\piffnt.c \
  174. ..\pifhot.c \
  175. ..\pifinf.c \
  176. ..\piflib.c \
  177. ..\pifmem.c \
  178. ..\pifmgr.c \
  179. ..\pifmsc.c \
  180. ..\pifprg.c \
  181. ..\pifsub.c \
  182. ..\pifvid.c \
  183. ..\lnkcon.c \
  184. ..\lnkfnt.c \
  185. ..\lnkprev.c \
  186. ..\lnkmisc.c \
  187. ..\dbcs.c \
  188. ..\proxynt.c \
  189. ..\apithk.c \
  190. ..\utilnt.c
  191. PRECOMPILED_INCLUDE = ..\shellprv.h
  192. #
  193. #
  194. # Con-fusion
  195. #
  196. # we can't use 123 because rundll32 will activate it, rendering all CPLs manifested
  197. SXS_MANIFEST_RESOURCE_ID=124
  198. SXS_APPLICATION_MANIFEST=WindowsShell.Manifest