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.

60 lines
1.2 KiB

  1. #
  2. # Build wdm.lib. This consists of wdmguid.lib, wdmnt.lib and wdmhal.lib, all
  3. # built below.
  4. #
  5. WDMLIBDEP=$(O)\wdmnt.lib \
  6. $(O)\wdmhal.lib \
  7. $(O)\wdmguid.obj
  8. !if exist($(SDK_LIB_PATH)\exsup.lib)
  9. WDMLIBDEP=$(WDMLIBDEP) $(SDK_LIB_PATH)\exsup.lib
  10. !endif
  11. !if exist($(SDK_LIB_PATH)\int64.lib)
  12. WDMLIBDEP=$(WDMLIBDEP) $(SDK_LIB_PATH)\int64.lib
  13. !endif
  14. !if exist($(PROJECT_ROOT)\ntos\init\$(TARGET_DIRECTORY)\excptlst.obj)
  15. WDMLIBDEP=$(WDMLIBDEP) $(PROJECT_ROOT)\ntos\init\$(TARGET_DIRECTORY)\excptlst.obj
  16. !endif
  17. #
  18. # __NULL_IMPORT_DESCRIPTOR is found in both wdmhal.lib and wdmnt.lib, which
  19. # generates warning 4006.
  20. #
  21. $(O)\wdm.lib: $(WDMLIBDEP)
  22. -$(LIB_NAME) -out:$(@R).lib @<<
  23. $(LINK_LIB_IGNORE_FLAG)
  24. -ignore:4006
  25. $(WDMLIBDEP)
  26. <<NOKEEP
  27. #
  28. # Build wdmnt.lib
  29. #
  30. $(O)\wdmnt.def: i386nt.src alphant.src ia64nt.src amd64nt.src
  31. $(O)\wdmnt.lib : $(O)\wdmnt.def $(DDK_LIB_PATH)\ntoskrnl.lib
  32. -$(LIB_NAME) -out:$@ @<<
  33. $(LIBRARIAN_FLAGS: =
  34. )
  35. -def:$(O)\wdmnt.def
  36. $(DDK_LIB_PATH)\ntoskrnl.lib
  37. <<NOKEEP
  38. #
  39. # Build wdmhal.lib
  40. #
  41. $(O)\wdmhal.def: i386hal.src alphahal.src ia64hal.src amd64hal.src
  42. $(O)\wdmhal.lib : $(O)\wdmhal.def $(DDK_LIB_PATH)\hal.lib
  43. -$(LIB_NAME) -out:$@ @<<
  44. $(LIBRARIAN_FLAGS: =
  45. )
  46. -def:$(O)\wdmhal.def
  47. $(DDK_LIB_PATH)\hal.lib
  48. <<NOKEEP