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.

169 lines
5.9 KiB

  1. # Copyright (C) by Microsoft Corporation.
  2. #
  3. # MAKEFILE for NT ntdetect.chk
  4. #
  5. # Created:
  6. # 14-Feb-1992
  7. #
  8. # Author:
  9. # Shie-Lin Tzong
  10. #
  11. .SUFFIXES: .com .exe .obj .lst .c .asm .def .lnk .inc
  12. !IF $(IA64)
  13. OD= $(O)
  14. DETECT_DEBUG= -DDBG=1
  15. LINK=link
  16. LIBS=$(SDK_LIB_PATH)\libcntpr.lib $(PROJECT_ROOT)\ntos\rtl\boot\$(O)\bldrrtl.lib
  17. LIB=lib
  18. OBJ= $(OD)\comlptc.obj \
  19. $(OD)\display.obj $(OD)\diskc.obj $(OD)\hwdetect.obj \
  20. $(OD)\hwheap.obj \
  21. $(OD)\hwvbiosc.obj \
  22. $(OD)\keybdc.obj $(OD)\mousec.obj \
  23. $(OD)\hwpbiosc.obj
  24. $(OD)\ntdetect.chk: $(OBJ)
  25. $(OD)\hwapm.obj $(OD)\hwapm.cod: ..\ia64\hwapm.c
  26. $(OD)\display.obj $(OD)\display.cod: ..\ia64\display.c ..\ia64\types.h
  27. $(OD)\diska.obj $(OD)\diska.cod: ..\ia64\diska.c
  28. $(OD)\hwheap.obj $(OD)\hwheap.cod: ..\ia64\hwheap.c ..\ia64\hwdetect.h
  29. $(OD)\hwdetect.obj $(OD)\hwdetect.cod: ..\ia64\hwdetect.c ..\ia64\hwdetect.h
  30. $(OD)\keybdc.obj $(OD)\keybdc.cod: ..\ia64\keybdc.c ..\ia64\hwdetect.h
  31. $(OD)\comlptc.obj $(OD)\comlptc.cod: ..\ia64\comlptc.c ..\ia64\hwdetect.h
  32. $(OD)\mousec.obj $(OD)\mousec.cod: ..\ia64\mousec.c ..\ia64\hwdetect.h
  33. $(OD)\diskc.obj $(OD)\diskc.cod: ..\ia64\diskc.c ..\ia64\hwdetect.h ..\ia64\disk.h
  34. $(OD)\hweisac.obj $(OD)\hweisac.cod: ..\ia64\hweisac.c ..\ia64\hwdetect.h
  35. $(OD)\hwvbiosc.obj $(OD)\hwvbiosc.cod: ..\ia64\hwvbiosc.c ..\ia64\hwdetect.h ..\ia64\hwvbios.h
  36. $(OD)\hwpbiosc.obj $(OD)\hwpbiosc.cod: ..\ia64\hwpbiosc.c ..\ia64\hwdetect.h ..\ia64\pnpbios.h
  37. $(OD)\ntdetect.chk: $(OBJ) $(DOBJ) $(LIBS)
  38. $(LINK) \
  39. -machine:IA64 \
  40. -out:$(OD)\ntdetect.chk \
  41. -entry:HardwareDetection \
  42. -base:0x10000 \
  43. -nodefaultlib \
  44. -debug:notmapped \
  45. -debugtype:coff \
  46. -force:multiple \
  47. -fixed:no \
  48. -subsystem:native,5.00 \
  49. $(OBJ) \
  50. $(LIBS)
  51. binplace -R $(_NTTREE) $(OD)\ntdetect.chk
  52. !ELSE
  53. PATH= $(PATH_TOOLS16);$(PATH)
  54. OD= $(O)
  55. DETECT_DEBUG= -DDBG=1
  56. CC= cl16
  57. CFLAGS= -WX -W3 -G2s -Zelp $(DETECT_DEBUG) $(ALT_PROJECT_TEMPD) $(BLFLAGS) -nologo
  58. CINCSX=.;$(PROJECT_ROOT)\ntos\inc;$(SDK_INC_PATH);..\i386;$(BASE_INC_PATH);$(HALKIT_INC_PATH)
  59. #
  60. # Assembler Definitions
  61. # ~~~~~~~~~~~~~~~~~~~~~
  62. ASM= masm386
  63. AFLAGS= -Mx -z $(DETECT_DEBUG) $(ALT_PROJECT_TEMPD) $(GAFLAGS)
  64. AINCSX= $(SDK_INC_PATH);..\i386
  65. #
  66. # Linker Definitions
  67. # ~~~~~~~~~~~~~~~~~~
  68. LINK=link16
  69. LIBS=..\i386\long.lib ..\i386\slibce.lib ..\i386\llibce.lib
  70. DEF=
  71. #
  72. # Rules for generating objects
  73. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  74. {..\i386\}.asm{$(OD)}.obj:
  75. set include=$(AINCSX)
  76. $(ASM) $(AFLAGS) $<, $@;
  77. {..\i386\}.asm{$(OD)}.lst:
  78. set include=$(AINCSX)
  79. $(ASM) -l -n $(AFLAGS) $<, $*.obj, $@;
  80. {..\i386\}.c{$(OD)}.obj:
  81. set include=$(CINCSX)
  82. @echo $(CC) $(CFLAGS) -c -Fo$@ $<
  83. @$(CC) $(CFLAGS) -c -Fo$@ $< | findstr /v C4011
  84. {..\i386\}.c{$(OD)}.cod:
  85. set include=$(CINCSX)
  86. $(CC) $(CFLAGS) -c -Fc$@ $<
  87. #
  88. # List of object files required
  89. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  90. OBJ= $(OD)\main.obj $(OD)\comlptc.obj $(OD)\diska.obj \
  91. $(OD)\display.obj $(OD)\diskc.obj $(OD)\hwdetect.obj $(OD)\hweisaa.obj \
  92. $(OD)\hweisac.obj $(OD)\hwheap.obj \
  93. $(OD)\hwmisca.obj $(OD)\hwvbiosc.obj $(OD)\keybda.obj \
  94. $(OD)\keybdc.obj $(OD)\mousea.obj $(OD)\mousec.obj $(OD)\videoa.obj \
  95. $(OD)\hwpcia.obj $(OD)\hwapm.obj $(OD)\hwpbiosc.obj \
  96. $(OD)\hwpmbios.obj $(OD)\pccarda.obj $(OD)\pccardc.obj $(OD)\pcibios.obj $(OD)\pcienum.obj
  97. #
  98. # Dependencies
  99. # ~~~~~~~~~~~~
  100. $(OD)\ntdetect.chk: $(OBJ)
  101. $(OD)\hweisaa.obj $(OD)\hweisaa.cod: ..\i386\hweisa.inc ..\i386\hweisaa.asm
  102. $(OD)\hwpcia.obj $(OD)\hwpcia.cod: ..\i386\hwpci.inc ..\i386\hwpcia.asm
  103. $(OD)\hwapm.obj $(OD)\hwapm.cod: ..\i386\hwapm.c
  104. $(OD)\main.obj $(OD)\main.lst: ..\i386\main.asm ..\i386\main.inc
  105. $(OD)\display.obj $(OD)\display.cod: ..\i386\display.c ..\i386\types.h
  106. $(OD)\diska.obj $(OD)\diska.lst: ..\i386\diska.asm
  107. $(OD)\hwheap.obj $(OD)\hwheap.cod: ..\i386\hwheap.c ..\i386\hwdetect.h
  108. $(OD)\hwdetect.obj $(OD)\hwdetect.cod: ..\i386\hwdetect.c ..\i386\hwdetect.h
  109. $(OD)\hwmisca.obj $(OD)\hwmisca.lst: ..\i386\hwmisca.asm
  110. $(OD)\videoa.obj $(OD)\videoa.lst: ..\i386\videoa.asm
  111. $(OD)\keybdc.obj $(OD)\keybdc.cod: ..\i386\keybdc.c ..\i386\hwdetect.h
  112. $(OD)\keybda.obj $(OD)\keybda.lst: ..\i386\keybda.asm
  113. $(OD)\comlptc.obj $(OD)\comlptc.cod: ..\i386\comlptc.c ..\i386\hwdetect.h
  114. $(OD)\mousea.obj $(OD)\mousea.lst: ..\i386\mousea.asm ..\i386\mouse.inc
  115. $(OD)\mousec.obj $(OD)\mousec.cod: ..\i386\mousec.c ..\i386\hwdetect.h
  116. $(OD)\diskc.obj $(OD)\diskc.cod: ..\i386\diskc.c ..\i386\hwdetect.h ..\i386\disk.h
  117. $(OD)\hweisac.obj $(OD)\hweisac.cod: ..\i386\hweisac.c ..\i386\hwdetect.h
  118. $(OD)\hwpbiosc.obj $(OD)\hwpbiosc.cod: ..\i386\hwpbiosc.c ..\i386\hwdetect.h ..\i386\pnpbios.h
  119. $(OD)\hwvbiosc.obj $(OD)\hwvbiosc.cod: ..\i386\hwvbiosc.c ..\i386\hwdetect.h ..\i386\hwvbios.h
  120. $(OD)\hwpmbios.obj $(OD)\hwpmbios.cod: ..\i386\hwpmbios.c ..\i386\hwdetect.h ..\i386\acpibios.h
  121. $(OD)\pccarda.obj $(OD)\pccarda.lst: ..\i386\pccarda.asm ..\i386\pccard.inc
  122. $(OD)\pccardc.obj $(OD)\pccardc.cod: ..\i386\pccardc.c ..\i386\hwdetect.h ..\i386\pccard.h
  123. $(OD)\pcibios.obj $(OD)\pcibios.cod: ..\i386\pcibios.c ..\i386\hwdetect.h ..\i386\pcibios.h
  124. $(OD)\pcienum.obj $(OD)\pcienum.cod: ..\i386\pcienum.c ..\i386\hwdetect.h ..\i386\pcienum.h
  125. $(OD)\ntdetect.chk: $(OBJ) $(DOBJ) $(LIBS)
  126. $(LINK) @<<
  127. /tiny /nod /noi /map /onerror:noexe $(OD)\main $(OD)\hweisaa $(OD)\display +
  128. $(OD)\hwheap $(OD)\hwdetect $(OD)\hwmisca $(OD)\videoa +
  129. $(OD)\keybda $(OD)\keybdc $(OD)\comlptc $(OD)\mousea $(OD)\mousec +
  130. $(OD)\diskc $(OD)\diska $(OD)\hweisac +
  131. $(OD)\hwvbiosc $(OD)\hwpcia $(OD)\hwapm +
  132. $(OD)\hwpbiosc $(OD)\hwpmbios $(OD)\pccarda $(OD)\pccardc $(OD)\pcibios $(OD)\pcienum
  133. $(OD)\ntdetect.chk,
  134. $(OD)\ntdetect.map,
  135. $(LIBS);
  136. <<
  137. binplace -R $(_NTTREE) $(OD)\ntdetect.chk
  138. !ENDIF