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.

219 lines
6.7 KiB

  1. # Combine the logical section of the inf files with the file list section
  2. # of the inf file together and put them into newinf directory
  3. #
  4. # Terence Kwan (terryk) 12-Aug-1992 Created
  5. #
  6. # Variables
  7. #
  8. # FILELIST - file list directory
  9. # NEWINF - new inf directory
  10. # i386inf - inf files under inf\beta\i386 which need to add file
  11. # list section
  12. # amd64inf - inf files under inf\beta\amd64 which need to add file list
  13. # section
  14. # ia64inf - inf files under inf\beta\ia64 which need to add file list
  15. # section
  16. # betafile - files under inf\beta which do not need to add file list
  17. # section
  18. # betainf - inf files under inf\beta which need to add file list
  19. # section
  20. # mediainf - inf files which need only a [Source Media Description]
  21. #
  22. !IFNDEF LANGUAGE
  23. LANGUAGE=usa
  24. !ENDIF
  25. !IFDEF LINKONLY
  26. make_inf:
  27. !ELSE
  28. NTCD=1
  29. LMCD=1
  30. W_DIR = ntcd\$(TARGET_DIRECTORY)
  31. S_DIR = lmcd\$(TARGET_DIRECTORY)
  32. FILELIST=..\filelist
  33. NEWINF=..\newinf\daytona
  34. MEDIAINP=$(LANGUAGE)media.inp
  35. BETA=beta
  36. !IFDEF LMCD
  37. LOCATION=\lmcd\i386\$(O)
  38. SOURCE_LOCATION=\lmcd\i386
  39. !INCLUDE "..\inf.mk"
  40. !INCLUDE "..\i386inf.mk"
  41. LOCATION=\lmcd\amd64\$(O)
  42. SOURCE_LOCATION=\lmcd\amd64
  43. !INCLUDE "..\amd64inf.mk"
  44. !INCLUDE "..\inf.mk"
  45. LOCATION=\lmcd\ia64\$(O)
  46. SOURCE_LOCATION=\lmcd\ia64
  47. !INCLUDE "..\ia64inf.mk"
  48. !INCLUDE "..\inf.mk"
  49. !ENDIF
  50. !IFDEF NTCD
  51. LOCATION=\ntcd\i386\$(O)
  52. SOURCE_LOCATION=\ntcd\i386
  53. !INCLUDE "..\inf.mk"
  54. !INCLUDE "..\i386inf.mk"
  55. LOCATION=\ntcd\amd64\$(O)
  56. SOURCE_LOCATION=\ntcd\amd64
  57. !INCLUDE "..\amd64inf.mk"
  58. !INCLUDE "..\inf.mk"
  59. LOCATION=\ntcd\ia64\$(O)
  60. SOURCE_LOCATION=\ntcd\ia64
  61. !INCLUDE "..\ia64inf.mk"
  62. !INCLUDE "..\inf.mk"
  63. !ENDIF
  64. all: make_inf
  65. cleansrc:
  66. $(_NTDRIVE)
  67. cd $(PROJECT_ROOT)\ntsetup
  68. -del /q inf\filelist\ntcd\i386\*.*
  69. -del /q inf\filelist\lmcd\i386\*.*
  70. -del /q inf\filelist\ntcd\amd64\*.*
  71. -del /q inf\filelist\lmcd\amd64\*.*
  72. -del /q inf\filelist\ntcd\ia64\*.*
  73. -del /q inf\filelist\lmcd\ia64\*.*
  74. make_inf: make_log localize make_fil
  75. make_log:
  76. $(_NTDRIVE)
  77. cd $(PROJECT_ROOT)\ntsetup
  78. -mkdir inf\filelist\ntcd\i386\$(O)
  79. -mkdir inf\filelist\lmcd\i386\$(O)
  80. -mkdir inf\filelist\ntcd\amd64\$(O)
  81. -mkdir inf\filelist\lmcd\amd64\$(O)
  82. -mkdir inf\filelist\ntcd\ia64\$(O)
  83. -mkdir inf\filelist\lmcd\ia64\$(O)
  84. -mkdir inf\newinf\daytona\ntcd\i386\$(O)
  85. -mkdir inf\newinf\daytona\lmcd\i386\$(O)
  86. -mkdir inf\newinf\daytona\ntcd\amd64\$(O)
  87. -mkdir inf\newinf\daytona\lmcd\amd64\$(O)
  88. -mkdir inf\newinf\daytona\ntcd\ia64\$(O)
  89. -mkdir inf\newinf\daytona\lmcd\ia64\$(O)
  90. !IFNDEF MERGEONLY
  91. cd bom
  92. -mkdir $(O)
  93. copy bom.txt $(O)\cdbom.txt
  94. size $(O)\cdlog.log $(O)\cdbom.txt . . z
  95. size $(O)\cdlog.log $(O)\cdbom.txt #S+$(LANGUAGE) . z
  96. size $(O)\cdlog.log $(O)\cdbom.txt #F-* . z
  97. !IF "$(LANGUAGE)" == "FIN"
  98. size $(O)\cdlog.log $(O)\cdbom.txt #P+FIN . z
  99. !ELSE
  100. size $(O)\cdlog.log $(O)\cdbom.txt #P-FIN . z
  101. !ENDIF
  102. size $(O)\cdlog.log $(O)\cdbom.txt #L+$(LANGUAGE) . z
  103. layout $(O)\cdlog.log $(O)\cdbom.txt $(O)\lay.txt ntcd 500000000
  104. infs $(O)\cdlog.log $(O)\lay.txt ..\inf\filelist\ntcd
  105. layout $(O)\cdlog.log $(O)\cdbom.txt $(O)\lay.txt lmcd 500000000
  106. infs $(O)\cdlog.log $(O)\lay.txt ..\inf\filelist\lmcd
  107. !ENDIF
  108. localize:
  109. cd $(PROJECT_ROOT)\ntsetup\inf\$(BETA)
  110. local.exe $(LANGUAGE)_ansi.txt ..\filelist\ntcd\$(_OBJ_DIR)
  111. local.exe $(LANGUAGE)_ansi.txt ..\filelist\lmcd\$(_OBJ_DIR)
  112. local.exe $(LANGUAGE)_net.txt ..\filelist\ntcd\$(_OBJ_DIR)
  113. local.exe $(LANGUAGE)_net.txt ..\filelist\lmcd\$(_OBJ_DIR)
  114. local.exe $(LANGUAGE)_dev.txt ..\filelist\ntcd\$(_OBJ_DIR)
  115. local.exe $(LANGUAGE)_dev.txt ..\filelist\lmcd\$(_OBJ_DIR)
  116. local.exe $(LANGUAGE)_con.txt ..\filelist\ntcd\$(_OBJ_DIR)
  117. local.exe $(LANGUAGE)_con.txt ..\filelist\lmcd\$(_OBJ_DIR)
  118. make_fil: dobetainf dobetafile dopatchinf doamd64inf doi386inf doia64inf
  119. cd $(PROJECT_ROOT)\ntsetup\inf\$(BETA)
  120. copy $(FILELIST)\lmcd\i386\$(MEDIAINP)+$(FILELIST)\lmcd\i386\$(O)\mmdriver.inf $(NEWINF)\lmcd\i386\$(O)\mmdriver.inf /B
  121. copy $(FILELIST)\ntcd\i386\$(MEDIAINP)+$(FILELIST)\ntcd\i386\$(O)\mmdriver.inf $(NEWINF)\ntcd\i386\$(O)\mmdriver.inf /B
  122. copy $(FILELIST)\ntcd\amd64\$(MEDIAINP)+$(FILELIST)\ntcd\amd64\$(O)\mmdriver.inf $(NEWINF)\ntcd\amd64\$(O)\mmdriver.inf /B
  123. copy $(FILELIST)\lmcd\amd64\$(MEDIAINP)+$(FILELIST)\lmcd\amd64\$(O)\mmdriver.inf $(NEWINF)\lmcd\amd64\$(O)\mmdriver.inf /B
  124. copy $(FILELIST)\ntcd\ia64\$(MEDIAINP)+$(FILELIST)\ntcd\ia64\$(O)\mmdriver.inf $(NEWINF)\ntcd\ia64\$(O)\mmdriver.inf /B
  125. copy $(FILELIST)\lmcd\ia64\$(MEDIAINP)+$(FILELIST)\lmcd\ia64\$(O)\mmdriver.inf $(NEWINF)\lmcd\ia64\$(O)\mmdriver.inf /B
  126. copy ipinfo.inf $(NEWINF)\ntcd\i386\$(O)
  127. copy ipinfo.inf $(NEWINF)\lmcd\i386\$(O)
  128. copy ipinfo.inf $(NEWINF)\ntcd\amd64\$(O)
  129. copy ipinfo.inf $(NEWINF)\lmcd\amd64\$(O)
  130. copy ipinfo.inf $(NEWINF)\ntcd\ia64\$(O)
  131. copy ipinfo.inf $(NEWINF)\lmcd\ia64\$(O)
  132. copy ipinfor.inf $(NEWINF)\ntcd\i386\$(O)
  133. copy ipinfor.inf $(NEWINF)\lmcd\i386\$(O)
  134. copy ipinfor.inf $(NEWINF)\ntcd\amd64\$(O)
  135. copy ipinfor.inf $(NEWINF)\lmcd\amd64\$(O)
  136. copy ipinfor.inf $(NEWINF)\ntcd\ia64\$(O)
  137. copy ipinfor.inf $(NEWINF)\lmcd\ia64\$(O)
  138. cd $(NEWINF)
  139. !IFDEF _NTTREE
  140. binplace -R $(_NTTREE) $(W_DIR)\$(O)\*.inf
  141. binplace -R $(_NTTREE) -b srvinf $(S_DIR)\$(O)\*.inf
  142. !if !$(WIN64)
  143. binplace -R $(_NTTREE) $(W_DIR)\*.inf
  144. binplace -R $(_NTTREE) -b srvinf $(S_DIR)\*.inf
  145. !endif
  146. binplace -R $(_NTTREE) $(W_DIR)\txtsetup.wdl
  147. binplace -R $(_NTTREE) -b srvinf $(S_DIR)\txtsetup.wdl
  148. !ENDIF
  149. #
  150. # do each files
  151. #
  152. cdinfbeta:
  153. cd $(PROJECT_ROOT)\ntsetup\inf\$(BETA)
  154. cdamd64inf:
  155. cd $(PROJECT_ROOT)\ntsetup\inf\$(BETA)\amd64
  156. cdi386inf:
  157. cd $(PROJECT_ROOT)\ntsetup\inf\$(BETA)\i386
  158. cdia64inf:
  159. cd $(PROJECT_ROOT)\ntsetup\inf\$(BETA)\ia64
  160. dobetainf:cdinfbeta doeachbetainf
  161. dobetafile:cdinfbeta doeachbetafile
  162. dopatchinf:cdinfbeta doeachpatchfile
  163. !IFDEF NTCD
  164. doamd64inf:cdamd64inf doeachamd64inf
  165. doia64inf:cdia64inf doeachia64inf
  166. !ELSE
  167. !IFDEF LMCD
  168. doamd64inf:cdamd64inf doeachamd64inf
  169. doia64inf:cdia64inf doeachia64inf
  170. !ELSE
  171. doamd64inf:
  172. doia64inf:
  173. !ENDIF
  174. !ENDIF
  175. doi386inf:cdi386inf doeachi386inf
  176. !ENDIF