Source code of Windows XP (NT5)
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.

270 lines
5.7 KiB

  1. #
  2. # The contents of this file was moved from windows\makefile0
  3. #
  4. !IFNDEF NO_STRICT
  5. STRICT=1
  6. !ENDIF
  7. TARGETSRCS= \
  8. $(O)\ntsecapi.h \
  9. $(O)\subauth.h \
  10. $(O)\ntsecpkg.h \
  11. $(O)\aclapi.h \
  12. $(O)\aclapip.h \
  13. $(O)\sddl.h \
  14. $(O)\sddlp.h \
  15. $(O)\winsafer.h \
  16. $(O)\winsaferp.h \
  17. $(O)\wincrypt.h
  18. secinc: $(TARGETSRCS)
  19. clean:
  20. -del /q /f $(TARGETSRCS) 2>nul
  21. NTSECAPI_DEPENDS=ntlsa.w \
  22. ntsam.w \
  23. ntmsv1_0.w \
  24. kerbcon.w \
  25. kerberos.w
  26. NTSECPKG_DEPENDS=ntlsa.w \
  27. ntsam.w \
  28. secpkg.w
  29. #######################################################################
  30. # subauth.h
  31. #
  32. $(O)\subauth.h : ntsam.w \
  33. $(SDK_INC_PATH)\ntstatus.h \
  34. $(DS_INC_PATH)\crypt.h \
  35. $(DS_INC_PATH)\logonmsv.h \
  36. makefile.inc
  37. type << > $(O)\subauth.h
  38. /*++ BUILD Version: ???? Increment this if a change has global effects
  39. $(COPYRIGHT_STRING)
  40. Module Name:
  41. subauth.h
  42. Abstract:
  43. This module defines types and macros for Subauthentication Packages.
  44. Revision History:
  45. --*/
  46. #ifndef _NTSUBAUTH_
  47. #define _NTSUBAUTH_
  48. #ifdef __cplusplus
  49. extern "C" {
  50. #endif
  51. #if (!defined(_NTDEF_)) && (!defined(_NTSECAPI_))
  52. typedef LONG NTSTATUS, *PNTSTATUS;
  53. typedef struct _UNICODE_STRING {
  54. USHORT Length;
  55. USHORT MaximumLength;
  56. PWSTR Buffer;
  57. } UNICODE_STRING, *PUNICODE_STRING;
  58. typedef struct _STRING {
  59. USHORT Length;
  60. USHORT MaximumLength;
  61. PCHAR Buffer;
  62. } STRING, *PSTRING;
  63. #endif
  64. #ifndef _NTDEF_
  65. typedef struct _OLD_LARGE_INTEGER {
  66. ULONG LowPart;
  67. LONG HighPart;
  68. } OLD_LARGE_INTEGER, *POLD_LARGE_INTEGER;
  69. #define NT_SUCCESS(Status) ((NTSTATUS)(Status) >= 0)
  70. #endif
  71. <<
  72. hextract -o $(O)\subauth.h -lt ntsubauth -bt begin_ntsubauth end_ntsubauth ntsam.w
  73. hextract -o $(O)\subauth.h -lt ntsubauth -bt begin_ntsubauth end_ntsubauth $(DS_INC_PATH)\crypt.h
  74. hextract -o $(O)\subauth.h -lt ntsubauth -bt begin_ntsubauth end_ntsubauth $(DS_INC_PATH)\logonmsv.h
  75. hextract -o $(O)\subauth.h -lt ntsubauth -bt begin_ntsubauth end_ntsubauth $(SDK_INC_PATH)\ntstatus.h
  76. type << >> $(O)\subauth.h
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80. #endif /* _NTSUBAUTH_ */
  81. <<
  82. ########################################################################
  83. # ntsecapi.h
  84. #
  85. $(O)\ntsecapi.h : $(NTSECAPI_DEPENDS) makefile.inc
  86. type << > $(O)\ntsecapi.h
  87. /*++ BUILD Version: ???? Increment this if a change has global effects
  88. $(COPYRIGHT_STRING)
  89. Module Name:
  90. ntsecapi.h
  91. Abstract:
  92. This module defines the Local Security Authority APIs.
  93. Revision History:
  94. --*/
  95. #ifndef _NTSECAPI_
  96. #define _NTSECAPI_
  97. #ifdef __cplusplus
  98. extern "C" {
  99. #endif
  100. #ifndef _NTDEF_
  101. typedef LONG NTSTATUS, *PNTSTATUS;
  102. #endif
  103. <<
  104. hextract -o $(O)\ntsecapi.h -lt ntsecapi -bt begin_ntsecapi end_ntsecapi ntlsa.w
  105. type << >> $(O)\ntsecapi.h
  106. #ifndef _NTDEF_
  107. typedef LSA_UNICODE_STRING UNICODE_STRING, *PUNICODE_STRING;
  108. typedef LSA_STRING STRING, *PSTRING ;
  109. #endif
  110. <<
  111. hextract -o $(O)\ntsecapi.h -lt ntsecapi -bt begin_ntsecapi end_ntsecapi ntsam.w
  112. hextract -o $(O)\ntsecapi.h -lt ntsecapi -bt begin_ntsecapi end_ntsecapi ntmsv1_0.w
  113. hextract -o $(O)\ntsecapi.h -lt ntsecapi -bt begin_ntsecapi end_ntsecapi kerbcon.w
  114. hextract -o $(O)\ntsecapi.h -lt ntsecapi -bt begin_ntsecapi end_ntsecapi kerberos.w
  115. type << >> $(O)\ntsecapi.h
  116. #ifdef __cplusplus
  117. }
  118. #endif
  119. #endif /* _NTSECAPI_ */
  120. <<
  121. ########################################################################
  122. # ntsecpkg.h
  123. #
  124. $(O)\ntsecpkg.h : $(NTSECPKG_DEPENDS) makefile.inc
  125. type << > $(O)\ntsecpkg.h
  126. /*++ BUILD Version: ???? Increment this if a change has global effects
  127. $(COPYRIGHT_STRING)
  128. Module Name:
  129. ntsecpkg.h
  130. Abstract:
  131. This module defines the structures and APIs for use by a
  132. authentication or security package.
  133. Revision History:
  134. --*/
  135. #ifndef _NTSECPKG_
  136. #define _NTSECPKG_
  137. #ifdef __cplusplus
  138. extern "C" {
  139. #endif
  140. <<
  141. hextract -o $(O)\ntsecpkg.h -lt ntsecpkg -bt begin_ntsecpkg end_ntsecpkg ntlsa.w
  142. hextract -o $(O)\ntsecpkg.h -lt ntsecpkg -bt begin_ntsecpkg end_ntsecpkg ntsam.w
  143. hextract -o $(O)\ntsecpkg.h -lt ntsecpkg -bt begin_ntsecpkg end_ntsecpkg secpkg.w
  144. type << >> $(O)\ntsecpkg.h
  145. #ifdef __cplusplus
  146. }
  147. #endif
  148. #endif /* _NTSECPKG_ */
  149. <<
  150. ########################################################################
  151. # wincrypt.h
  152. #
  153. $(O)\wincrypt.h : wincrypt.x
  154. wcshdr < $? > $@
  155. ########################################################################
  156. # aclapi.h, aclapip.h, aclapip.x, aclapi.x
  157. #
  158. $(O)\aclapi.x $(O)\aclapip.x: aclapi.w
  159. hsplit -e -o $(O)\aclapi.x $(O)\aclapip.x aclapi.w
  160. $(O)\aclapi.h : $(O)\aclapi.x
  161. wcshdr < $? > $@
  162. $(O)\aclapip.h : $(O)\aclapip.x
  163. wcshdr < $? > $@
  164. $(WINDOWS_INC_PATH)\aclapip.h : $(O)\aclapip.h
  165. $(PUBLISH_CMD) {$?=$@}
  166. $(SDK_INC_PATH)\aclapi.h : $(O)\aclapi.h
  167. $(PUBLISH_CMD) {$?=$@}
  168. #
  169. # sddl.h, sddlp.x, sddl.x
  170. #
  171. $(O)\sddl.x $(O)\sddlp.x: sddl.w
  172. hsplit -e -o $(O)\sddl.x $(O)\sddlp.x sddl.w
  173. $(O)\sddl.h : $(O)\sddl.x
  174. wcshdr < $? > $@
  175. $(O)\sddlp.h : $(O)\sddlp.x
  176. wcshdr < $? > $@
  177. ########################################################################
  178. # winsafer.h, winsaferp.h, winsaferp.x, winsafer.x
  179. #
  180. $(O)\winsafer.x $(O)\winsaferp.x: winsafer.w
  181. hsplit -e -o $(O)\winsafer.x $(O)\winsaferp.x winsafer.w
  182. $(O)\winsafer.h : $(O)\winsafer.x
  183. wcshdr < $? > $@
  184. $(O)\winsaferp.h : $(O)\winsaferp.x
  185. wcshdr < $? > $@
  186. $(WINDOWS_INC_PATH)\winsaferp.h : $(O)\winsaferp.h
  187. $(PUBLISH_CMD) {$?=$@}
  188. $(SDK_INC_PATH)\winsafer.h : $(O)\winsafer.h
  189. $(PUBLISH_CMD) {$?=$@}