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.

153 lines
4.3 KiB

  1. # Copyright (C) by Microsoft Corporation.
  2. #
  3. # MAKEFILE for NT SU.X86
  4. #
  5. # Created:
  6. # 91.01.18
  7. #
  8. # Author:
  9. # Thomas Parslow
  10. #
  11. !IFNDEF LANGUAGE
  12. LANGUAGE=usa
  13. !ENDIF
  14. .SUFFIXES: .com .exe .obj .lst .c .asm .def .lnk .inc
  15. #
  16. # C Compiler Definitions
  17. # ~~~~~~~~~~~~~~~~~~~~~~
  18. !IFDEF ALT_PROJECT_MAKE
  19. ALT_PROJECT_FLAGS=-D$(ALT_PROJECT)
  20. !ENDIF
  21. PATH= $(PATH_TOOLS16);$(PATH)
  22. CC= cl16
  23. CFLAGS= -WX -W3 -G2s -Zelp $(LOADER_DEBUG) $(BLFLAGS) $(ALT_PROJECT_FLAGS)
  24. CINC= $(PROJECT_INC_PATH);$(SDK_INC_PATH);..\i386;..\i386\$(LANGUAGE);..\..\inc
  25. #
  26. # Assembler Definitions
  27. # ~~~~~~~~~~~~~~~~~~~~~
  28. ASM= masm386
  29. AFLAGS= -Mx -z $(LOADER_DEBUG) $(GAFLAGS) $(ALT_PROJECT_FLAGS)
  30. AINC= -I\nt\public\sdk\inc -I..\i386
  31. #
  32. # Linker Definitions
  33. # ~~~~~~~~~~~~~~~~~~
  34. LINK=link16
  35. LIBS=..\..\startup\long.lib
  36. DEF=
  37. #
  38. # Rules for generating objects
  39. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  40. {..\i386\}.asm{$(_OBJ_DIR)\i386\}.obj:
  41. $(ASM) $(AFLAGS) $(AINC) $< $@;
  42. {..\i386\}.asm.lst:
  43. $(ASM) -l -n $(AFLAGS) $(AINC) $<;
  44. # $(CC) $(CFLAGS) $(CINC) -c $<
  45. {..\i386\}.c{$(_OBJ_DIR)\i386\}.obj:
  46. set INCLUDE=$(CINC)
  47. @echo $(CC) $(CFLAGS) -Fo$@ -c $<
  48. @$(CC) $(CFLAGS) -Fo$@ -c $< | findstr /v 4011
  49. set INCLUDE=
  50. {..\}.c{$(_OBJ_DIR)\i386\}.obj:
  51. set INCLUDE=$(CINC)
  52. @echo $(CC) $(CFLAGS) -Fo$@ -c $<
  53. @$(CC) $(CFLAGS) -Fo$@ -c $< | findstr /v 4011
  54. set INCLUDE=
  55. {..\i386\}.c.lst:
  56. set INCLUDE=$(CINC)
  57. $(CC) $(CFLAGS) -Fc$*.cod -Fo$*.obj -dos -c $<
  58. set INCLUDE=
  59. #
  60. # List of object files required
  61. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  62. OBJ= $(_OBJ_DIR)\i386\su.obj $(_OBJ_DIR)\i386\exp.obj $(_OBJ_DIR)\i386\sudata.obj \
  63. $(_OBJ_DIR)\i386\eisaa.obj $(_OBJ_DIR)\i386\a20.obj $(_OBJ_DIR)\i386\trap.obj $(_OBJ_DIR)\i386\eisac.obj \
  64. $(_OBJ_DIR)\i386\main.obj $(_OBJ_DIR)\i386\trapdump.obj $(_OBJ_DIR)\i386\display.obj \
  65. $(_OBJ_DIR)\i386\mtftp.obj
  66. #
  67. # Dependencies
  68. # ~~~~~~~~~~~~
  69. $(_OBJ_DIR)\i386\startrom.com: $(OBJ)
  70. $(_OBJ_DIR)\i386\exp.obj exp.lst: ..\i386\exp.asm ..\i386\su.inc ..\i386\macro.inc
  71. $(_OBJ_DIR)\i386\eisaa.obj eisaa.lst: ..\i386\eisa.inc ..\i386\eisaa.asm
  72. $(_OBJ_DIR)\i386\eisac.obj eisac.lst: ..\i386\eisa.h ..\i386\eisac.c
  73. $(_OBJ_DIR)\i386\su.obj su.lst: ..\i386\su.asm ..\i386\su.inc
  74. $(_OBJ_DIR)\i386\sudata.obj sudata.lst: ..\i386\sudata.asm ..\i386\su.inc ..\i386\memmap.inc
  75. $(_OBJ_DIR)\i386\main.obj main.lst: ..\i386\main.c ..\i386\global.h ..\i386\types.h ..\i386\constant.h
  76. $(_OBJ_DIR)\i386\trap.obj trap.lst: ..\i386\trap.asm ..\i386\su.inc
  77. $(_OBJ_DIR)\i386\trapdump.obj trapdump.lst: ..\i386\trapdump.c ..\i386\types.h ..\i386\constant.h
  78. $(_OBJ_DIR)\i386\display.obj display.lst: ..\i386\display.c ..\i386\types.h ..\i386\constant.h ..\i386\global.h
  79. $(_OBJ_DIR)\i386\mtftp.obj mtftp.lst: ..\i386\mtftp.c
  80. $(_OBJ_DIR)\i386\startrom.com: $(OBJ) $(DOBJ) $(LIBS)
  81. $(LINK) /tiny /nod /noi /map:full @<<
  82. $(OBJ: = +^
  83. )
  84. $(_OBJ_DIR)\i386\startrom.com
  85. startrom.map
  86. $(LIBS)
  87. <<
  88. $(_OBJ_DIR)\i386\startrom.n12: $(_OBJ_DIR)\i386\startrom.com
  89. -copy $(_OBJ_DIR)\i386\startrom.com $(_OBJ_DIR)\i386\startrom.n12
  90. $(_OBJ_DIR)\i386\startrom.nui: $(_OBJ_DIR)\i386\startrom.com
  91. -copy $(_OBJ_DIR)\i386\startrom.com $(_OBJ_DIR)\i386\startrom.nui
  92. $(_OBJ_DIR)\i386\hdlscom1.com: $(_OBJ_DIR)\i386\startrom.com
  93. -copy $(_OBJ_DIR)\i386\startrom.com $(_OBJ_DIR)\i386\hdlscom1.com
  94. $(_OBJ_DIR)\i386\hdlscom2.com: $(_OBJ_DIR)\i386\startrom.com
  95. -copy $(_OBJ_DIR)\i386\startrom.com $(_OBJ_DIR)\i386\hdlscom2.com
  96. $(_OBJ_DIR)\i386\hdlscom1.n12: $(_OBJ_DIR)\i386\startrom.com
  97. -copy $(_OBJ_DIR)\i386\startrom.com $(_OBJ_DIR)\i386\hdlscom1.n12
  98. $(_OBJ_DIR)\i386\hdlscom2.n12: $(_OBJ_DIR)\i386\startrom.com
  99. -copy $(_OBJ_DIR)\i386\startrom.com $(_OBJ_DIR)\i386\hdlscom2.n12
  100. $(_OBJ_DIR)\i386\hdlstst1.n12: $(_OBJ_DIR)\i386\startrom.com
  101. -copy $(_OBJ_DIR)\i386\startrom.com $(_OBJ_DIR)\i386\hdlstst1.n12
  102. $(_OBJ_DIR)\i386\hdlstst2.n12: $(_OBJ_DIR)\i386\startrom.com
  103. -copy $(_OBJ_DIR)\i386\startrom.com $(_OBJ_DIR)\i386\hdlstst2.n12