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.

205 lines
6.0 KiB

  1. TARGETNAME=syssetup
  2. TARGETPATH=obj
  3. PASS1_PUBLISH={$(O)\$(TARGETNAME).lib=$(SDK_LIB_PATH)\$(TARGETNAME).lib}
  4. TARGETTYPE=DYNLINK
  5. DLLENTRY=_DllMainCRTStartup
  6. #USE_MSVCRT=1
  7. USE_LIBCMT=1
  8. PASS0_HEADERDIR=$(O)
  9. PASS0_SOURCEDIR=$(O)
  10. !include $(PROJECT_ROOT)\headless\lib\sources.inc
  11. INCLUDES=\
  12. ..\inc;\
  13. ..\ocmanage\inc;\
  14. ..\..\pchealth\sr\inc;\
  15. $(NET_INC_PATH);\
  16. $(WINDOWS_INC_PATH);\
  17. $(SHELL_INC_PATH);\
  18. $(BASE_INC_PATH);\
  19. $(DS_INC_PATH);\
  20. $(DDK_INC_PATH); \
  21. $(DRIVERS_INC_PATH); \
  22. $(PROJECT_ROOT)\ntos\inc; \
  23. $(BASE_SAC_UMODE_C_API_INC);
  24. C_DEFINES=-DUNICODE -D_OCM
  25. USE_SETUP_PERF=1
  26. !if "$(USE_SETUP_PERF)" == "1"
  27. C_DEFINES=$(C_DEFINES) -D_SETUP_PERF_ -D_ENABLE_SAC_CHANNEL_LOGGING_
  28. !endif
  29. !include $(PROJECT_ROOT)\ntsetup\sources.inc
  30. SOURCES=applyacl.c \
  31. afpnp.c \
  32. arc.c \
  33. asrbkup.c \
  34. asrclus.c \
  35. asrrest.c \
  36. billbrd.c \
  37. clasinst.c \
  38. clasprop.c \
  39. cmdline.c \
  40. copy.c \
  41. crypto.c \
  42. ctls.c \
  43. debug.c \
  44. dll.c \
  45. dynupdt.c \
  46. external.c \
  47. extprog.c \
  48. fileops.c \
  49. inifile.c \
  50. infcache.c \
  51. intl.c \
  52. log.c \
  53. mainwind.c \
  54. misc.c \
  55. msg.mc \
  56. names.c \
  57. netdde.c \
  58. ocm.c \
  59. oobe.c \
  60. optdirs.c \
  61. pid.c \
  62. preinst.c \
  63. printer.c \
  64. printupg.c \
  65. ps2ppg.c \
  66. registry.c \
  67. repair.c \
  68. resource.c \
  69. sacchan.c \
  70. security.c \
  71. services.c \
  72. setupasr.c \
  73. sif.c \
  74. storinst.c \
  75. strtmenu.c \
  76. syspnp.c \
  77. syssec.c \
  78. syssetup.c \
  79. unattend.c \
  80. userdiff.c \
  81. vdm.c \
  82. virtmem.c \
  83. watch.c \
  84. welcome.c \
  85. wizard.c \
  86. syssetup.rc \
  87. utils.cpp \
  88. _setup_browser.cxx
  89. MIGSHARED_ROOT=$(PROJECT_ROOT)\ntsetup\migshared
  90. MIGSHARED_BIN=$(MIGSHARED_ROOT)\$(O)
  91. PCH_LIB_PATHA=$(MIGSHARED_ROOT)\pcha\$(O)\pcha.lib
  92. PCH_LIB_PATHW=$(MIGSHARED_ROOT)\pchw\$(O)\pchw.lib
  93. MIGSHARED_PRECOMPILED_LIBS=$(PCH_LIB_PATHA) $(PCH_LIB_PATHW)
  94. HWDB_BIN=$(PROJECT_ROOT)\ntsetup\hwdb\lib\$(O)
  95. LINKLIBS=$(PROJECT_LIB_PATH)\pnpsif.lib \
  96. $(PROJECT_LIB_PATH)\pencrypt.lib\
  97. ..\excppkg\$(O)\excppkg.lib \
  98. ..\hwlog\$(O)\hwlog.lib \
  99. $(HWDB_BIN)\hwdblib.lib \
  100. $(MIGSHARED_PRECOMPILED_LIBS) \
  101. $(MIGSHARED_BIN)\migutil.lib \
  102. $(BASE_LIB_PATH)\spapip.lib \
  103. # IMPORANT: spapip.lib is a superset of setupapi.lib and sputils?.lib. However,
  104. # the initialization is in the DllMain function, so we include stub
  105. # implementations of pSetupInitializeUtils and pSetupUninitializeUtils
  106. # in syssetup.c.
  107. TARGETLIBS=\
  108. $(SDK_LIB_PATH)\advapi32.lib \
  109. $(SDK_LIB_PATH)\comctl32.lib \
  110. $(SDK_LIB_PATH)\crypt32.lib \
  111. $(SDK_LIB_PATH)\dnsapi.lib \
  112. $(SDK_LIB_PATH)\gdi32.lib \
  113. $(SDK_LIB_PATH)\imagehlp.lib \
  114. $(SDK_LIB_PATH)\kernel32.lib \
  115. $(SDK_LIB_PATH)\kernl32p.lib \
  116. $(SDK_LIB_PATH)\ole32.lib \
  117. $(SDK_LIB_PATH)\powrprof.lib \
  118. $(DS_LIB_PATH)\dpapi.lib \
  119. $(SDK_LIB_PATH)\samlib.lib \
  120. $(BASE_LIB_PATH)\spapip.lib \
  121. $(BASE_LIB_PATH)\wow64reg.lib \
  122. $(SDK_LIB_PATH)\user32.lib \
  123. $(SDK_LIB_PATH)\userenv.lib \
  124. $(SDK_LIB_PATH)\version.lib \
  125. $(SDK_LIB_PATH)\winspool.lib \
  126. $(SDK_LIB_PATH)\sfc.lib \
  127. $(SDK_LIB_PATH)\sfcfiles.lib \
  128. $(SDK_LIB_PATH)\shlwapi.lib \
  129. $(PROJECT_ROOT)\ntsetup\ocmanage\$(O)\ocmanage.lib \
  130. $(PROJECT_ROOT)\ntsetup\setuplog\unicode\$(O)\setuplgu.lib \
  131. $(SDK_LIB_PATH)\cryptui.lib \
  132. $(SDK_LIB_PATH)\rpcutil.lib \
  133. $(SDK_LIB_PATH)\netapi32.lib \
  134. $(SDK_LIB_PATH)\rpcrt4.lib \
  135. $(DS_LIB_PATH)\rsa32.lib \
  136. $(PROJECT_LIB_PATH)\encrypt.lib \
  137. $(PROJECT_ROOT)\ntsetup\pidgen\lib\trial\$(O)\pidgen.lib \
  138. $(SDK_LIB_PATH)\imm32.lib \
  139. $(SDK_LIB_PATH)\wintrust.lib \
  140. $(BASE_SAC_UMODE_C_API_LIB)
  141. UMRES=$(O)\syssetup.res
  142. DELAYLOAD=\
  143. comctl32.dll; \
  144. crypt32.dll; \
  145. dnsapi.dll; \
  146. imagehlp.dll; \
  147. ocmanage.dll; \
  148. ole32.dll; \
  149. pidgen.dll; \
  150. samlib.dll; \
  151. userenv.dll; \
  152. winspool.drv
  153. !if $(WIN64)
  154. DELAYLOAD=\
  155. $(DELAYLOAD); \
  156. shlwapi.dll
  157. !endif
  158. DLOAD_ERROR_HANDLER=kernel32.dll
  159. PRECOMPILED_INCLUDE=setupp.h
  160. PRECOMPILED_PCH=setupp.pch
  161. PRECOMPILED_OBJ=setupp.obj
  162. OPTIONAL_UMTEST=x
  163. UMTYPE=windows
  164. UMENTRY=wmain
  165. UMLIBS=$(SDK_LIB_PATH)\syssetup.lib \
  166. $(BASE_LIB_PATH)\spapip.lib \
  167. $(SDK_LIB_PATH)\comctl32.lib
  168. #
  169. # This is an odd use of Sxs.
  170. # Setup registers .dlls that depends on gdiplus.dll, which is in the
  171. # system default context, but not (any longer) in system32.
  172. # The system default context for the setup.exe process is created before
  173. # we actually install the system default assembly. Creating the system
  174. # default context silently fails if the system default assembly has
  175. # not yet been installed, and is simply retried for every subsequent
  176. # process create. "system default" is also known as "system compatible".
  177. #
  178. SXS_ASSEMBLY_LANGUAGE_INDEPENDENT=1
  179. SXS_MANIFEST=SysSetup.Manifest
  180. SXS_ASSEMBLY_NAME=Microsoft.Windows.Setup
  181. SXS_NO_BINPLACE=1
  182. SXS_MANIFEST_IN_RESOURCES=1
  183. SXS_MANIFEST_RESOURCE_ID=1234
  184. C_DEFINES=$(C_DEFINES) -DSXS_MANIFEST_RESOURCE_ID=MAKEINTRESOURCEW($(SXS_MANIFEST_RESOURCE_ID))