windows-nt/Source/XPSP1/NT/base/wdmdrv/makefile.inc

61 lines
1.2 KiB
PHP
Raw Normal View History

2020-09-26 03:20:57 -05:00
#
# Build wdm.lib. This consists of wdmguid.lib, wdmnt.lib and wdmhal.lib, all
# built below.
#
WDMLIBDEP=$(O)\wdmnt.lib \
$(O)\wdmhal.lib \
$(O)\wdmguid.obj
!if exist($(SDK_LIB_PATH)\exsup.lib)
WDMLIBDEP=$(WDMLIBDEP) $(SDK_LIB_PATH)\exsup.lib
!endif
!if exist($(SDK_LIB_PATH)\int64.lib)
WDMLIBDEP=$(WDMLIBDEP) $(SDK_LIB_PATH)\int64.lib
!endif
!if exist($(PROJECT_ROOT)\ntos\init\$(TARGET_DIRECTORY)\excptlst.obj)
WDMLIBDEP=$(WDMLIBDEP) $(PROJECT_ROOT)\ntos\init\$(TARGET_DIRECTORY)\excptlst.obj
!endif
#
# __NULL_IMPORT_DESCRIPTOR is found in both wdmhal.lib and wdmnt.lib, which
# generates warning 4006.
#
$(O)\wdm.lib: $(WDMLIBDEP)
-$(LIB_NAME) -out:$(@R).lib @<<
$(LINK_LIB_IGNORE_FLAG)
-ignore:4006
$(WDMLIBDEP)
<<NOKEEP
#
# Build wdmnt.lib
#
$(O)\wdmnt.def: i386nt.src alphant.src ia64nt.src amd64nt.src
$(O)\wdmnt.lib : $(O)\wdmnt.def $(DDK_LIB_PATH)\ntoskrnl.lib
-$(LIB_NAME) -out:$@ @<<
$(LIBRARIAN_FLAGS: =
)
-def:$(O)\wdmnt.def
$(DDK_LIB_PATH)\ntoskrnl.lib
<<NOKEEP
#
# Build wdmhal.lib
#
$(O)\wdmhal.def: i386hal.src alphahal.src ia64hal.src amd64hal.src
$(O)\wdmhal.lib : $(O)\wdmhal.def $(DDK_LIB_PATH)\hal.lib
-$(LIB_NAME) -out:$@ @<<
$(LIBRARIAN_FLAGS: =
)
-def:$(O)\wdmhal.def
$(DDK_LIB_PATH)\hal.lib
<<NOKEEP