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.

41 lines
1.4 KiB

  1. !include ..\makefile.inc
  2. !if exist(..\$(TARGET_DIRECTORY).inc)
  3. !include ..\$(TARGET_DIRECTORY).inc
  4. !endif
  5. TEMP_DIR=$(O)
  6. SERVICES_DIR=$(O)
  7. SERVICES_TAB=$(SERVICES_DIR)\services.tab
  8. KESVC_TAB=$(O)\kesvc32.tab
  9. NTDLL_XTR=$(O)\ntdll.xtr
  10. clean:
  11. -del $(KESVC32_TAB)
  12. $(SERVICES_TAB): ..\..\ntos\ke\services.tab
  13. @echo Creating $@ from $**
  14. $(C_PREPROCESSOR) $** > $@
  15. del $(SERVICES_DIR)\kesvc32.tab
  16. # generate and binplace kesvc32.tab, which copywow64 uses to validate that
  17. # the x86 and Win64 sides of the build process agree
  18. $(KESVC_TAB): ..\..\ntos\ke\services.tab
  19. $(C_PREPROCESSOR) $** > $@
  20. binplace $@
  21. $(O)\usrstubs.obj: \
  22. $(O)\usrstubs.$(ASM_SUFFIX) $(O)\ntdll.def
  23. $(NTDLL_XTR): $(SERVICES_TAB)
  24. gensrv -f $(NTDLL_XTR) -s $(MAKEDIR) $(SERVICES_DIR)
  25. $(O)\usrstubs.$(ASM_SUFFIX): $(SERVICES_TAB) ntwow64.tab
  26. copy $(SERVICES_TAB)+ntwow64.tab $(TEMP_DIR)\services.tab
  27. gensrv -d $(O) -e $(ASM_SUFFIX) $(TARGET_BRACES) -s $(MAKEDIR)\$(TARGET_DIRECTORY) $(TEMP_DIR)
  28. $(O)\ntdll.def: ..\ntdlldef.src ..\$(TARGET_DIRECTORY)def.src $(NTDLL_XTR)
  29. copy ..\ntdlldef.src+..\$(TARGET_DIRECTORY)def.src+$(NTDLL_XTR) $(O)\ntdll.pp
  30. $(TARGET_CPP) /EP $(CDEFINES) $(O)\ntdll.pp > $(O)\ntdll.def
  31. -del $(O)\ntdll.pp
  32. ..\ntdll.rc: $(PROJECT_ROOT)\published\$(O)\ntstatus.rc $(PROJECT_ROOT)\published\$(O)\ntstatus_MSG00001.bin