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.

165 lines
5.8 KiB

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