Windows NT 4.0 source code leak
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.

166 lines
5.8 KiB

4 years ago
  1. #
  2. # If BUILDMSG is not defined, the define it as the empty string to make
  3. # the conditionals easier to write.
  4. #
  5. !INCLUDE $(NTMAKEENV)\makefile.plt
  6. SDKINC = $(_NTROOT)\public\sdk\inc
  7. OAKINC = $(_NTROOT)\public\oak\inc
  8. !IFNDEF NTOSINC
  9. NTOSINC = $(_NTROOT)\private\ntos\inc
  10. !ENDIF
  11. NTSTATUSRC= $(SDKINC)\ntstatus.h \
  12. ntos\dll\ntstatus.rc \
  13. ntos\dll\msg00001.bin
  14. MSAUDITERC= $(SDKINC)\msaudite.h \
  15. ntos\seaudit\msaudite\msaudite.rc \
  16. ntos\seaudit\msaudite\msg00001.bin
  17. NETEVENTRC= $(SDKINC)\netevent.h \
  18. eventlog\netevent\netevent.rc \
  19. eventlog\netevent\msg00001.bin
  20. MSOBJSRC= $(SDKINC)\msobjs.h \
  21. ntos\seaudit\msobjs\msobjs.rc \
  22. ntos\seaudit\msobjs\msg00001.bin
  23. ISSPERRRC= $(SDKINC)\issperr.h \
  24. rpc\runtime\mtrt\issperr.rc \
  25. rpc\runtime\mtrt\msg00001.bin
  26. BUGCODESRC= ntos\inc\bugcodes.h \
  27. ntos\init\msg00001.bin \
  28. ntos\init\bugcodes.rc
  29. all: $(NTSTATUSRC) \
  30. $(SDKINC)\winerror.h $(SDKINC)\winbase.h \
  31. .\net\inc\dosprint.h .\net\inc\rxprint.h \
  32. $(ISSPERRRC) \
  33. $(MSAUDITERC) \
  34. .\inc\lsarpc.h .\inc\samrpc.h \
  35. $(NETEVENTRC) \
  36. $(MSOBJSRC) \
  37. $(BUGCODESRC)
  38. cd windows
  39. nmake -f makefil0
  40. cd..
  41. !IF "$(BUILDMSG)" != ""
  42. @ech ; $(BUILDMSG) ;
  43. !ENDIF
  44. clean: cleansrc binplace all
  45. cleansrc:
  46. -erase $(SDKINC)\ntstatus.h $(SDKINC)\winbase.h $(SDKINC)\winerror.h \
  47. $(SDKINC)\msaudite.h $(SDKINC)\netevent.h $(SDKINC)\msobjs.h \
  48. $(SDKINC)\issperr.h
  49. -erase .\inc\lsarpc.h .\inc\samrpc.h
  50. -erase ntos\dll\msg00001.bin ntos\dll\ntstatus.rc
  51. -erase ntos\init\msg00001.bin ntos\init\bugcodes.rc ntos\inc\bugcodes.h
  52. cd windows
  53. nmake -f makefil0 cleansrc BUILDMSG=
  54. cd..
  55. $(NTSTATUSRC): nls\ntstatus.mc
  56. mc -v -r ntos\dll\ -h $(SDKINC)\ -x $(SDKINC)\ nls\ntstatus.mc
  57. cd ntos
  58. nmake -f makefil0 BUILDMSG=
  59. cd ..
  60. $(NETEVENTRC): nls\netevent.mc
  61. mc -v -r eventlog\netevent\ -h $(SDKINC)\ -x $(SDKINC)\ nls\netevent.mc
  62. $(SDKINC)\winerror.h : windows\nlsmsg\winerror.w
  63. cd windows
  64. nmake -f makefil0 BUILDMSG=
  65. cd ..
  66. $(SDKINC)\winbase.h : windows\inc\winbase.w
  67. cd windows
  68. nmake -f makefil0 BUILDMSG=
  69. cd ..
  70. $(ISSPERRRC): nls\issperr.mc
  71. mc -v -r rpc\runtime\mtrt\ -h $(SDKINC)\ -x $(SDKINC)\ nls\issperr.mc
  72. .\net\inc\dosprint.h .\net\inc\rxprint.h:
  73. !if exist(.\net\makefil0)
  74. cd net
  75. nmake -f makefil0 BUILDMSG=
  76. cd ..
  77. !endif
  78. .\inc\lsarpc.h : lsa\lsarpc.idl
  79. cd lsa
  80. nmake -f makefil0 BUILDMSG=
  81. cd ..
  82. .\inc\samrpc.h : newsam\samrpc.idl
  83. cd newsam
  84. nmake -f makefil0 BUILDMSG=
  85. cd ..
  86. $(MSAUDITERC): ntos\seaudit\msaudite\msaudite.mc
  87. mc -v -r ntos\seaudit\msaudite\ -h $(SDKINC)\ ntos\seaudit\msaudite\msaudite.mc
  88. $(MSOBJSRC): ntos\seaudit\msobjs\msobjs.mc
  89. mc -v -r ntos\seaudit\msobjs\ -h $(SDKINC)\ ntos\seaudit\msobjs\msobjs.mc
  90. $(BUGCODESRC): ntos\nls\bugcodes.mc
  91. mc -v -r ntos\init\ -h ntos\inc\ -x ntos\inc\ ntos\nls\bugcodes.mc
  92. binplace:
  93. -binplace $(_NTROOT)\private\windows\shell\progman\*.grp
  94. -binplace $(_NTROOT)\private\windows\shell\control\bitmaps\*.bmp
  95. -binplace $(_NTROOT)\private\windows\winnls\data\*.nls
  96. -binplace $(_NTROOT)\private\windows\winnls\data\exchange\c_20261.nls
  97. -binplace $(_NTROOT)\private\ntos\w32\ntgdi\fonts\*.cpi
  98. -binplace $(_NTROOT)\private\ntos\w32\ntgdi\fonts\*.fot
  99. -binplace $(_NTROOT)\private\ntos\w32\ntgdi\fonts\*.fon
  100. -binplace $(_NTROOT)\private\ntos\w32\ntgdi\fonts\*.ttf
  101. -binplace $(_NTROOT)\private\windows\win.ini
  102. -binplace $(_NTROOT)\private\mvdm\bin86\system.ini $(_NTROOT)\private\mvdm\bin86\*.nt
  103. !if exist($(_NTROOT)\private\inet\ohnt)
  104. -binplace $(_NTROOT)\private\inet\ohnt\setupnt\home.htm
  105. -binplace $(_NTROOT)\private\inet\ohnt\setupnt\client.gif
  106. -binplace $(_NTROOT)\private\inet\ohnt\setupnt\space.gif
  107. -binplace $(_NTROOT)\private\inet\ohnt\setupnt\backgrnd.gif
  108. !endif
  109. !if exist($(_NTROOT)\private\sdktools\imagehlp)
  110. -binplace $(_NTROOT)\private\sdktools\imagehlp\setwin95.cmd
  111. -binplace $(_NTROOT)\private\sdktools\imagehlp\setnt351.cmd
  112. !endif
  113. !if exist($(_NTROOT)\public\oak\bin\setupreg.hiv)
  114. -binplace $(_NTROOT)\public\oak\bin\setupreg.hiv
  115. !endif
  116. !if exist($(_NTROOT)\public\oak\bin\setupupg.hiv)
  117. -binplace $(_NTROOT)\public\oak\bin\setupupg.hiv
  118. !endif
  119. -binplace $(_NTROOT)\public\oak\bin\setupp.ini
  120. -binplace $(_NTROOT)\public\oak\bin\setidw.bat
  121. -binplace $(_NTROOT)\public\oak\bin\setidw.ini
  122. -binplace $(_NTROOT)\public\oak\bin\desktop.ini
  123. !if exist($(_NTROOT)\public\oak\bin\$(TARGET_DIRECTORY)\cmidl.exe)
  124. -binplace $(_NTROOT)\public\oak\bin\$(TARGET_DIRECTORY)\cmidl.exe
  125. !endif
  126. !if exist($(_NTROOT)\public\oak\bin\$(TARGET_DIRECTORY)\includes.exe)
  127. -binplace $(_NTROOT)\public\oak\bin\$(TARGET_DIRECTORY)\includes.exe
  128. !endif
  129. !if exist($(_NTROOT)\public\oak\bin\$(TARGET_DIRECTORY)\sed.exe)
  130. -binplace $(_NTROOT)\public\oak\bin\$(TARGET_DIRECTORY)\sed.exe
  131. !endif
  132. !if exist($(_NTROOT)\public\oak\bin\$(TARGET_DIRECTORY)\mktyplib.exe)
  133. -binplace $(_NTROOT)\public\oak\bin\$(TARGET_DIRECTORY)\mktyplib.exe
  134. !endif
  135. -binplace $(_NTROOT)\public\oak\bin\setup16.inf
  136. !IF EXIST($(_NTROOT)\private\windows\setup\readme)
  137. -binplace $(_NTROOT)\private\windows\setup\readme\*.wri
  138. -binplace $(_NTROOT)\private\windows\setup\readme\*.txt
  139. !ENDIF
  140. !IF EXIST($(_NTROOT)\private\os2\msg)
  141. !IF ("$(TARGET_DIRECTORY)" == "i386") || ("$(TARGET_DIRECTORY)" == "I386")
  142. -binplace $(_NTROOT)\private\os2\msg\oso001.*
  143. !ENDIF
  144. !ENDIF