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.

138 lines
3.0 KiB

  1. # Use specific 16-bit compiler/linker/masm
  2. # PATH = $(MAKEDIR)\..\c6\bin;$(PATH)
  3. PATH = $(PATH_TOOLS16);$(PATH)
  4. !IFNDEF LANGUAGE
  5. LANGUAGE=usa
  6. !ENDIF
  7. !IFNDEF DEBUG
  8. DEBUG=0
  9. !ENDIF
  10. !IF $(DEBUG)
  11. C_DBG_FLAGS=-Zi -Od -DDBG=1
  12. ASM_DBG_FLAGS=-Zi
  13. LINK_DBG_FLAGS=/codeview
  14. !ELSE
  15. C_DBG_FLAGS=-DDBG=0
  16. ASM_DBG_FLAGS=
  17. LINK_DBG_FLAGS=
  18. !ENDIF
  19. # Set up define for building dntext.obj
  20. !IFNDEF DNTEXT_C_FILE
  21. DNTEXT_C_FILE= dntext.c
  22. !ENDIF
  23. #
  24. # Compiler and masm flags
  25. #
  26. CC= cl16
  27. CFCOMMON=-WX -W3 -Zel -G2 -AC $(C_DBG_FLAGS)
  28. CINC=-X -I.. -I..\c6\inc -I$(O) -I..\..\..\inc
  29. CFLAGS=$(CFCOMMON) $(CFOPT)
  30. AS=masm
  31. AFLAGS=-Ml $(ASM_DBG_FLAGS)
  32. AINC=-X -I..
  33. #
  34. # Inference rules
  35. #
  36. .SUFFIXES: .h .asm .c
  37. # cl16's command line is approaching the size limit;
  38. # do not add unnecessary spaces or long compiler flags.
  39. {}.c{$(O)}.obj:
  40. $(CC) $(CFLAGS) $(CINC) -c /Fo$(@D)\ $<
  41. {..}.c{$(O)}.obj:
  42. $(CC) $(CFLAGS) $(CINC) -c /Fo$(@D)\ $<
  43. {..}.c{$(O)}.cod:
  44. $(CC) $(CFLAGS) $(CINC) -Fc -c /Fo$(@D)\ $<
  45. {..}.asm{$(O)}.obj:
  46. $(AS) $(AFLAGS) $(AINC) $< ,$(@D)\;
  47. # Copy .h files from public\sdk\inc locally,
  48. # so that cl16's command line does not exceed the limit.
  49. {$(SDK_INC_PATH)}.h{$(O)}.h:
  50. copy $** $@
  51. # link16's command line is approaching the size limit;
  52. # do not add unnecessary spaces in defining OBJS.
  53. OBJS =\
  54. $(O)\winnt.obj\
  55. $(O)\dnutil.obj\
  56. $(O)\dntext.obj\
  57. !IFDEF JAPAN
  58. $(O)\dndispjp.obj\
  59. !ELSE
  60. $(O)\dndisp.obj\
  61. !ENDIF
  62. $(O)\dninf.obj\
  63. $(O)\dncopy.obj\
  64. $(O)\dnboot.obj\
  65. $(O)\dngauge.obj\
  66. $(O)\dndelnod.obj\
  67. $(O)\dnnttree.obj\
  68. $(O)\dncompv.obj\
  69. $(O)\dna.obj\
  70. $(O)\cpu.obj
  71. LIBS = ..\..\..\c6\lib\clibce
  72. $(O)\winnt.exe: $(OBJS) $(PATH_TOOLS16)\$(CC).exe
  73. cd $(O)
  74. link16 @<<
  75. $(OBJS:obj\i386\=) /NOI /STACK:0x1000 $(LINK_DBG_FLAGS)
  76. winnt.exe
  77. nul
  78. $(LIBS)
  79. <<
  80. cd $(MAKEDIR)
  81. -binplace $(BINPLACE_OPT) -O $(ALT_PROJECT_TARGET) $@
  82. $(O)\winnt.obj: ..\winnt.c ..\winnt.h ..\dninf.h
  83. $(O)\dnutil.obj: ..\dnutil.c ..\winnt.h ..\dninf.h
  84. $(O)\dninf.obj: ..\dninf.c ..\winnt.h ..\dninf.h
  85. $(O)\dncopy.obj: ..\dncopy.c ..\winnt.h ..\dninf.h
  86. $(O)\dnboot.obj: ..\dnboot.c ..\winnt.h ..\dninf.h
  87. $(O)\dngauge.obj: ..\dngauge.c ..\winnt.h ..\dninf.h
  88. $(O)\dndelnod.obj: ..\dndelnod.c ..\winnt.h ..\dninf.h
  89. $(O)\dnnttree.obj: ..\dnnttree.c ..\winnt.h ..\dninf.h
  90. $(O)\dncompv.obj: ..\dncompv.c ..\winnt.h ..\dncompvp.h
  91. $(O)\dna.obj: ..\dna.asm
  92. $(O)\cpu.obj: ..\cpu.asm ..\cpu.inc
  93. $(O)\dntext.obj: $(DNTEXT_C_FILE) ..\winnt.h ..\dninf.h
  94. $(CC) $(CFLAGS) $(CINC) -c /Fo$(@D)\ $(DNTEXT_C_FILE)
  95. !IFDEF JAPAN
  96. $(O)\dndispjp.obj: ..\dndispjp.c ..\winnt.h ..\dninf.h
  97. !ELSE
  98. $(O)\dndisp.obj: ..\dndisp$(JP_EXT).c ..\winnt.h ..\dninf.h
  99. !ENDIF
  100. !IFDEF COPY_USA_WINNT
  101. $(O)\winntus.exe: ..\usa\$(O)\winnt.exe
  102. copy $** $@
  103. binplace -O $(ALT_PROJECT_TARGET) $@
  104. !ELSE
  105. $(O)\winntus.exe: ..\us2\$(O)\winnt.exe
  106. copy $** $@
  107. binplace -O $(ALT_PROJECT_TARGET) $@
  108. !ENDIF