Leaked source code of windows server 2003
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.

119 lines
4.3 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 $(386)
  13. PATH= $(PATH_TOOLS16);$(PATH)
  14. OD= $(O)
  15. DETECT_DEBUG= -DDBG=0
  16. CC= cl16
  17. CFLAGS= -WX -W3 -G2s -Zelp $(DETECT_DEBUG) $(ALT_PROJECT_TEMPD) $(BLFLAGS) -nologo
  18. CINCSX=.;$(PROJECT_ROOT)\ntos\inc;$(SDK_INC_PATH);..\i386;$(BASE_INC_PATH);$(HALKIT_INC_PATH)
  19. #
  20. # Assembler Definitions
  21. # ~~~~~~~~~~~~~~~~~~~~~
  22. ASM= masm386
  23. AFLAGS= -Mx -z $(DETECT_DEBUG) $(ALT_PROJECT_TEMPD) $(GAFLAGS)
  24. AINCSX= $(SDK_INC_PATH);..\i386
  25. #
  26. # Linker Definitions
  27. # ~~~~~~~~~~~~~~~~~~
  28. LINK=link16
  29. LIBS=..\i386\long.lib ..\i386\slibce.lib ..\i386\llibce.lib
  30. DEF=
  31. #
  32. # Rules for generating objects
  33. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  34. {..\i386\}.asm{$(OD)}.obj:
  35. set include=$(AINCSX)
  36. $(ASM) $(AFLAGS) $<, $@;
  37. {..\i386\}.asm{$(OD)}.lst:
  38. set include=$(AINCSX)
  39. $(ASM) -l -n $(AFLAGS) $<, $*.obj, $@;
  40. {..\i386\}.c{$(OD)}.obj:
  41. set include=$(CINCSX)
  42. @echo $(CC) $(CFLAGS) -c -Fo$@ $<
  43. @$(CC) $(CFLAGS) -c -Fo$@ $< | findstr /v C4011
  44. {..\i386\}.c{$(OD)}.cod:
  45. set include=$(CINCSX)
  46. $(CC) $(CFLAGS) -c -Fc$@ $<
  47. #
  48. # List of object files required
  49. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  50. OBJ= $(OD)\main.obj $(OD)\comlptc.obj $(OD)\diska.obj \
  51. $(OD)\display.obj $(OD)\diskc.obj $(OD)\hwdetect.obj $(OD)\hweisaa.obj \
  52. $(OD)\hweisac.obj $(OD)\hwheap.obj \
  53. $(OD)\hwmisca.obj $(OD)\hwvbiosc.obj $(OD)\keybda.obj \
  54. $(OD)\keybdc.obj $(OD)\mousea.obj $(OD)\mousec.obj $(OD)\videoa.obj \
  55. $(OD)\hwpcia.obj $(OD)\hwapm.obj $(OD)\hwpbiosc.obj \
  56. $(OD)\hwpmbios.obj $(OD)\pccarda.obj $(OD)\pccardc.obj $(OD)\pcibios.obj $(OD)\pcienum.obj
  57. #
  58. # Dependencies
  59. # ~~~~~~~~~~~~
  60. $(OD)\ntdetect.com: $(OBJ)
  61. $(OD)\hweisaa.obj $(OD)\hweisaa.cod: ..\i386\hweisa.inc ..\i386\hweisaa.asm
  62. $(OD)\hwpcia.obj $(OD)\hwpcia.cod: ..\i386\hwpci.inc ..\i386\hwpcia.asm
  63. $(OD)\hwapm.obj $(OD)\hwapm.cod: ..\i386\hwapm.c
  64. $(OD)\main.obj $(OD)\main.lst: ..\i386\main.asm ..\i386\main.inc
  65. $(OD)\display.obj $(OD)\display.cod: ..\i386\display.c ..\i386\types.h
  66. $(OD)\diska.obj $(OD)\diska.lst: ..\i386\diska.asm
  67. $(OD)\hwheap.obj $(OD)\hwheap.cod: ..\i386\hwheap.c ..\i386\hwdetect.h
  68. $(OD)\hwdetect.obj $(OD)\hwdetect.cod: ..\i386\hwdetect.c ..\i386\hwdetect.h
  69. $(OD)\hwmisca.obj $(OD)\hwmisca.lst: ..\i386\hwmisca.asm
  70. $(OD)\videoa.obj $(OD)\videoa.lst: ..\i386\videoa.asm
  71. $(OD)\keybdc.obj $(OD)\keybdc.cod: ..\i386\keybdc.c ..\i386\hwdetect.h
  72. $(OD)\keybda.obj $(OD)\keybda.lst: ..\i386\keybda.asm
  73. $(OD)\comlptc.obj $(OD)\comlptc.cod: ..\i386\comlptc.c ..\i386\hwdetect.h
  74. $(OD)\mousea.obj $(OD)\mousea.lst: ..\i386\mousea.asm ..\i386\mouse.inc
  75. $(OD)\mousec.obj $(OD)\mousec.cod: ..\i386\mousec.c ..\i386\hwdetect.h
  76. $(OD)\diskc.obj $(OD)\diskc.cod: ..\i386\diskc.c ..\i386\hwdetect.h ..\i386\disk.h
  77. $(OD)\hweisac.obj $(OD)\hweisac.cod: ..\i386\hweisac.c ..\i386\hwdetect.h
  78. $(OD)\hwpbiosc.obj $(OD)\hwpbiosc.cod: ..\i386\hwpbiosc.c ..\i386\hwdetect.h ..\i386\pnpbios.h
  79. $(OD)\hwvbiosc.obj $(OD)\hwvbiosc.cod: ..\i386\hwvbiosc.c ..\i386\hwdetect.h ..\i386\hwvbios.h
  80. $(OD)\hwpmbios.obj $(OD)\hwpmbios.cod: ..\i386\hwpmbios.c ..\i386\hwdetect.h ..\i386\acpibios.h
  81. $(OD)\pccarda.obj $(OD)\pccarda.lst: ..\i386\pccarda.asm ..\i386\pccard.inc
  82. $(OD)\pccardc.obj $(OD)\pccardc.cod: ..\i386\pccardc.c ..\i386\hwdetect.h ..\i386\pccard.h
  83. $(OD)\pcibios.obj $(OD)\pcibios.cod: ..\i386\pcibios.c ..\i386\hwdetect.h ..\i386\pcibios.h
  84. $(OD)\pcienum.obj $(OD)\pcienum.cod: ..\i386\pcienum.c ..\i386\hwdetect.h ..\i386\pcienum.h
  85. $(OD)\ntdetect.com: $(OBJ) $(DOBJ) $(LIBS)
  86. $(LINK) @<<
  87. /tiny /nod /noi /map /onerror:noexe $(OD)\main $(OD)\hweisaa $(OD)\display +
  88. $(OD)\hwheap $(OD)\hwdetect $(OD)\hwmisca $(OD)\videoa +
  89. $(OD)\keybda $(OD)\keybdc $(OD)\comlptc $(OD)\mousea $(OD)\mousec +
  90. $(OD)\diskc $(OD)\diska $(OD)\hweisac +
  91. $(OD)\hwvbiosc $(OD)\hwpcia $(OD)\hwapm +
  92. $(OD)\hwpbiosc $(OD)\hwpmbios $(OD)\pccarda $(OD)\pccardc $(OD)\pcibios $(OD)\pcienum
  93. $(OD)\ntdetect.com,
  94. $(OD)\ntdetect.map,
  95. $(LIBS);
  96. <<
  97. !ENDIF