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.

40 lines
1.3 KiB

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