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.

116 lines
3.1 KiB

  1. NT_UP=0
  2. !include $(PROJECT_ROOT)\ntdll\ntdll.inc
  3. MAJORCOMP=ntos
  4. MINORCOMP=dll_
  5. BUILD_CONSUMES=ntosrtluser NtosWmiNtdllDaytona
  6. ALT_PROJECT=daytona
  7. ALT_PROJECT_TARGET=.
  8. TARGETNAME=ntdll
  9. TARGETPATH=obj
  10. TARGETTYPE=DYNLINK
  11. DLLDEF=$(O)\$(TARGETNAME).def
  12. LINKLIBS= \
  13. $(PROJECT_ROOT)\ntos\rtl\user\$(O)\rtl.lib \
  14. $(SDK_LIB_PATH)\libcntpr.lib \
  15. $(SDK_LIB_PATH)\uuid.lib \
  16. $(PROJECT_ROOT)\wmi\ntdll\$(ALT_PROJECT)\$(O)\etwclnt.lib \
  17. $(DS_LIB_PATH)\rsa32.lib
  18. INCLUDES=..;\
  19. $(PROJECT_ROOT)\ntos\inc;\
  20. $(PROJECT_ROOT)\win32\inc;\
  21. $(PROJECT_ROOT)\published\$(O);\
  22. ..\i386;\
  23. $(SDKTOOLS_INC_PATH);\
  24. $(WINDOWS_INC_PATH);\
  25. $(COM_INC_PATH);\
  26. $(DS_INC_PATH)\crypto
  27. WIMPMASM=1
  28. C_DEFINES=$(C_DEFINES) -D_NTSYSTEM_ -D_NTDLLBUILD_ -DLITTLEENDIAN=1
  29. MSC_WARNING_LEVEL=/W3 /WX
  30. DLLORDER=..\ntdll.prf
  31. SOURCES=\
  32. ..\buffer.c \
  33. ..\curdir.c \
  34. ..\csrinit.c \
  35. ..\csrtask.c \
  36. ..\csrutil.c \
  37. ..\dllssstb.c \
  38. ..\dlluistb.c \
  39. ..\error.c \
  40. ..\frame.c \
  41. ..\hotpatch.c \
  42. ..\ldrapi.c \
  43. ..\ldrinit.c \
  44. ..\ldrsnap.c \
  45. ..\ldrutil.c \
  46. ..\memstm.c \
  47. ..\ntdll.rc \
  48. ..\ntdll_data.c \
  49. ..\resource.c \
  50. ..\seurtl.c \
  51. ..\uilist.c \
  52. ..\propfwd.cxx \
  53. ..\query.c \
  54. ..\heaptag.c \
  55. ..\ldrwx86.c \
  56. ..\vectxcpt.c \
  57. ..\verifier.c \
  58. ..\wow64apc.c \
  59. ..\sxsisol.cpp \
  60. ..\sxsactctxcpp.cpp \
  61. ..\sxsctxactcpp.cpp \
  62. ..\sxsctxsrchcpp.cpp \
  63. ..\sxsquerycpp.cpp \
  64. ..\sxsstoragecpp.cpp \
  65. ..\sxsstoragemapcpp.cpp \
  66. ..\importtablehash.c \
  67. ..\rtlgetactivationcontextdata.c \
  68. ..\rtltheemptyactivationcontextdata.c \
  69. ..\w64misc.c \
  70. PRECOMPILED_INCLUDE=..\pch.cxx
  71. NTTARGETFILE0=$(DLLDEF)
  72. #
  73. # To test RTL stuff on your development machine:
  74. #
  75. # Allowing for new exports to have been added, so you need a new .lib.
  76. # Besides, you can't call the .dll ntdll.
  77. # Build and nmake don't agree on stuff, like if TARGETNAME=ntdll2 from the command line
  78. # is overridable (build thinks it is, nmake does not), so you must build the regular ntdll.dll
  79. # first, then the alternately named one, so like
  80. # cd daytona
  81. # build -cZ
  82. # build -Z -nmake UMTEST=tpath -nmake TARGETNAME=ntdll2
  83. # if you don't, build/nmake complain "don't know how to make $(O)\ntdll.def" even though
  84. # it isn't supposed to try for the second case.
  85. #
  86. # Either make sure the syscall tables are compatible, or don't call them.
  87. # Be sure to link to kernel32 somehow (like via msvcrt for printf).
  88. #
  89. # You can futz with syscalls, but I don't presently need to.
  90. #
  91. #!if 0
  92. !if 1
  93. UMTYPE=console
  94. UMTEST=tpath
  95. C_DEFINES=$(C_DEFINES) -D_CRTIMP=
  96. #UMLIBS=$(O)\$(TARGETNAME).lib $(SDK_LIB_PATH)\msvcrt.lib $(PROJECT_ROOT)\ntos\rtl\user\$(O)\rtl.lib
  97. UMLIBS=$(OBJECTS) $(PROJECT_ROOT)\ntos\rtl\user\$(O)\rtl.lib
  98. USE_MSVCRT=1
  99. !endif
  100. PASS0_PUBLISH=\
  101. {..\wow6432\ntwow64.h=$(PROJECT_INC_PATH)\ntwow64.h}
  102. PASS1_PUBLISH=\
  103. {$(O)\$(TARGETNAME).lib=$(SDK_LIB_PATH)\$(TARGETNAME).lib}