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.

143 lines
4.3 KiB

  1. !IF 0
  2. Copyright (c) Microsoft Corporation
  3. !ENDIF
  4. !include $(PROJECT_ROOT)\ntos\ntoskrnl.inc
  5. MAJORCOMP=ntos
  6. MINORCOMP=init
  7. TARGETNAME=init
  8. TARGETTYPE=LIBRARY
  9. TARGETPATH=obj
  10. BUILD_CONSUMES= ntosarb$(NT_UP) \
  11. ntoscache$(NT_UP) \
  12. ntosconfig$(NT_UP) \
  13. ntosdbgk$(NT_UP) \
  14. ntosex$(NT_UP) \
  15. ntosfsrtl$(NT_UP) \
  16. ntosfstub$(NT_UP) \
  17. ntosiomgr$(NT_UP) \
  18. ntospnpmgr$(NT_UP) \
  19. ntoskd$(NT_UP) \
  20. ntoske$(NT_UP) \
  21. ntoslpc$(NT_UP) \
  22. ntosmm$(NT_UP) \
  23. ntosob$(NT_UP) \
  24. ntosperf$(NT_UP) \
  25. ntospo$(NT_UP) \
  26. ntosps$(NT_UP) \
  27. ntosraw$(NT_UP) \
  28. ntosrtl$(NT_UP) \
  29. ntosse$(NT_UP) \
  30. ntosvdm$(NT_UP) \
  31. ntosverifier$(NT_UP) \
  32. ntoswmi$(NT_UP)
  33. INCLUDES=..;..\..\inc;..\..\nls\$(O);$(HALKIT_INC_PATH)
  34. !IF $(AMD64) || $(IA64)
  35. C_DEFINES=$(C_DEFINES) -DNO_LEGACY_DRIVERS
  36. !ENDIF
  37. !ifndef TARGET1
  38. TARGET1=up
  39. !endif
  40. !ifndef TARGET2
  41. TARGET2=up
  42. !endif
  43. SOURCES=\
  44. ..\init.c \
  45. ..\anim.c \
  46. ..\port.c \
  47. ..\bootvid.c \
  48. ..\ntoskrnl.rc
  49. !IF "$(NTTEST)"==""
  50. NTTEST=ntoskrnl
  51. !endif
  52. LINK_LIB_IGNORE=4087,4001
  53. !ifndef NOLIB
  54. ! if $(IA64)
  55. NTTARGETFILE1=$(DDK_LIB_PATH)\ntoskrnl.lib
  56. EXPORT_FILE=$(O)\$(NTTEST).exp
  57. ! else
  58. ! if "$(NTTEST)" == "ntoskrnl"
  59. NTTARGETFILE1=$(DDK_LIB_PATH)\ntoskrnl.lib
  60. EXPORT_FILE=$(O)\ntoskrnl.exp
  61. ! else
  62. NTTARGETFILE1=$(O)\$(NTTEST).lib
  63. EXPORT_FILE=..\up\$(O)\ntoskrnl.exp
  64. ! endif
  65. ! endif
  66. !endif
  67. C_DEFINES=$(C_DEFINES) /DKERNEL_NAME=^"$(NTTEST).exe^"
  68. !ifdef TEST_BUILD_EXPONENT
  69. ! if "$(TEST_BUILD_EXPONENT)" == "$(TEST_BUILD_EXPONENT:0x=)"
  70. ! error TEST_BUILD_EXPONENT value must start with 0x
  71. ! endif
  72. C_DEFINES=$(C_DEFINES) -DTEST_BUILD_EXPONENT=$(TEST_BUILD_EXPONENT)
  73. !endif
  74. NTRES=$(O)\ntoskrnl.res
  75. UMRES=$(O)\ntoskrnl.res
  76. LINKLIBS = \
  77. $(DDK_LIB_PATH)\hal.lib \
  78. $(EXPORT_FILE) \
  79. $(PROJECT_ROOT)\boot\bootvid\daytona\$(O)\bootvid.lib \
  80. $(WINDOWS_LIB_PATH)\sdbapint.lib \
  81. $(PROJECT_ROOT)\boot\kdcom\dll\$(O)\kdcom.lib
  82. !IF $(IA64)
  83. LINKER_FLAGS =$(LINKER_FLAGS) -IGNORE:4226
  84. !ENDIF
  85. LINKER_FLAGS =$(LINKER_FLAGS) -map -merge:PAGECONST=PAGE -merge:INITCONST=INIT -merge:INITDATA=INIT -merge:PAGELKCONST=PAGELK -merge:PAGEVRFY_CONST=PAGEVRFY
  86. POST_BUILD_CMD=link -edit -nologo -section:.rsrc,!d $(O)\$(NTTEST).exe
  87. !ifndef TARGETPATH2
  88. TARGETPATH2=$(TARGETPATH)
  89. !endif
  90. KERNEL_LIBS = \
  91. $(PROJECT_ROOT)\ntos\arb\$(TARGET2)\$(O)\arb.lib \
  92. $(PROJECT_ROOT)\ntos\cache\$(TARGET2)\$(O)\cache.lib \
  93. $(PROJECT_ROOT)\ntos\config\$(TARGET2)\$(O)\config.lib \
  94. $(PROJECT_ROOT)\ntos\dbgk\$(TARGET2)\$(O)\dbgk.lib \
  95. $(PROJECT_ROOT)\ntos\FsRtl\$(TARGET2)\$(O)\FsRtl.lib \
  96. $(PROJECT_ROOT)\ntos\FStub\$(TARGET2)\$(O)\FStub.lib \
  97. $(PROJECT_ROOT)\ntos\init\$(TARGET1)\$(O)\init.lib \
  98. $(PROJECT_ROOT)\ntos\io\$(TARGET2)\$(O)\io.lib \
  99. $(PROJECT_ROOT)\ntos\io\iomgr\$(TARGET2)\$(O)\iomgr.lib \
  100. $(PROJECT_ROOT)\ntos\io\pnpmgr\$(TARGET2)\$(O)\pnpmgr.lib \
  101. $(PROJECT_ROOT)\ntos\kd64\$(TARGET1)\$(O)\kd.lib \
  102. $(PROJECT_ROOT)\ntos\ke\$(TARGET1)\$(O)\ke.lib \
  103. $(PROJECT_ROOT)\ntos\lpc\$(TARGET2)\$(O)\lpc.lib \
  104. $(PROJECT_ROOT)\ntos\mm\$(TARGET1)\$(O)\mm.lib \
  105. $(PROJECT_ROOT)\ntos\ob\$(TARGET2)\$(O)\ob.lib \
  106. $(PROJECT_ROOT)\ntos\po\$(TARGET2)\$(O)\po.lib \
  107. $(PROJECT_ROOT)\ntos\ps\$(TARGET2)\$(O)\ps.lib \
  108. $(PROJECT_ROOT)\ntos\raw\$(TARGET2)\$(O)\raw.lib \
  109. $(PROJECT_ROOT)\ntos\rtl\$(TARGET2)\$(O)\ntosrtl.lib\
  110. $(PROJECT_ROOT)\ntos\se\$(TARGET2)\$(O)\se.lib \
  111. $(PROJECT_ROOT)\ntos\vdm\$(TARGET2)\$(O)\vdm.lib \
  112. $(PROJECT_ROOT)\ntos\verifier\$(TARGET2)\$(O)\verifier.lib \
  113. $(PROJECT_ROOT)\ntos\wmi\$(TARGET2)\$(O)\wmi.lib \
  114. $(PROJECT_ROOT)\ntos\perf\$(TARGET2)\$(O)\perf.lib \
  115. $(PROJECT_ROOT)\ntos\ex\$(TARGET2)\$(O)\ex.lib \
  116. $(DS_LIB_PATH)\lsakrnlp.lib \
  117. $(SDK_LIB_PATH)\libcntpr.lib \
  118. !if !$(FREEBUILD) && $(386)
  119. KERNEL_ALIGNMENT=0x1000
  120. !endif