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.

162 lines
3.7 KiB

  1. .SUFFIXES: .pdl .hdl .asc .nf
  2. PERFFLAGS=
  3. TOOLS_PLATFORM=
  4. !if "$(PROCESSOR_ARCHITECTURE)" == "IA64"
  5. TOOLS_PLATFORM=ia64
  6. !else if "$(PROCESSOR_ARCHITECTURE)" == "AMD64"
  7. TOOLS_PLATFORM=amd64
  8. !else
  9. TOOLS_PLATFORM=i386
  10. !endif
  11. !if $(IA64)
  12. PDL_ARCH=win64
  13. !else
  14. PDL_ARCH=i386
  15. !endif
  16. PDLPARSE=$(ROOT)\btools\bin\$(TOOLS_PLATFORM)\pdlparse.exe
  17. ASCPARSE=$(ROOT)\btools\bin\$(TOOLS_PLATFORM)\ascparse.exe
  18. NFPARSE=$(ROOT)\btools\bin\$(TOOLS_PLATFORM)\nfparse.exe
  19. TLDIFF=$(ROOT)\btools\bin\i386\tldiff.bat
  20. TLVIEWER=$(ROOT)\btools\bin\i386\tlviewer.exe
  21. {$(ROOT)\src\site\types}.pdl{$O}.pdl:
  22. copy $< $@
  23. {$(ROOT)\src\other\htmldlg}.pdl{$O}.pdl:
  24. copy $< $@
  25. {$(ROOT)\src\core\types}.pdl{$O}.pdl:
  26. copy $< $@
  27. .pdl.hdl:
  28. @type <<$(ECHO_RSP)
  29. $(ECHO_MSG) /EP $<
  30. <<NOKEEP
  31. @$(C_PREPROCESSOR_NAME) @<< /Tc $< | $(PDLPARSE) <<
  32. $(CPPXX: =
  33. )
  34. <<NOKEEP
  35. - $(MAKEDIR)\$O\$(@B) $(@B).pdl $(MAKEDIR)\$O
  36. <<NOKEEP
  37. -del $(MAKEDIR)\$(O)LOG
  38. # Headers we need.
  39. $O\versstr.h: $(ROOT)\src\f3\include\versstr.h
  40. copy $** $@
  41. $O\f3ctx.h: $(ROOT)\external\inc\f3ctx.h
  42. copy $** $@
  43. $O\coredisp.h: $(ROOT)\src\core\include\coredisp.h
  44. copy $** $@
  45. $O\mshtmdid.h : $(DISPID_FILES)
  46. echo. >$O\mshtmdid.h
  47. !type $** >>$O\mshtmdid.h
  48. $O\funcsig.cxx : $O\funcsig.dat
  49. echo Processing funcsig.dat...
  50. $(PDLPARSE) /G $(PDL_ARCH) $(O)
  51. $O\mshtmtmp.idl : mshtmpre.idl $(IDL_FILES) mshtmpst.idl
  52. echo. >$O\mshtmtmp.idl
  53. !type $** >>$O\mshtmtmp.idl
  54. echo. >>$O\mshtmtmp.idl
  55. $O\mshtml.idl : $O\mshtmtmp.idl $O\behavior.idl
  56. echo. >$O\mshtml.idl
  57. !type $** >>$O\mshtml.idl
  58. echo } >>$O\mshtml.idl
  59. echo. >>$O\mshtml.idl
  60. $(_NTBINDIR)\inetcore\published\inc\mshtml.idl : $O\mshtml.idl
  61. !ifndef NOPASS0
  62. call comphtml $O\mshtml.idl $(_NTBINDIR)\inetcore\published\inc\mshtml.idl $O\mshtml_i.c $(_NTBINDIR)\inetcore\published\inc\$O\mshtml_i.c
  63. !else
  64. @echo.
  65. !endif
  66. $O\mshtml.out: $O\mshtml.tlb
  67. $(TLVIEWER) $O\mshtml.tlb $O\mshtml.out
  68. -del /q tlviewer.o
  69. $O\errors.out: $O\mshtml.out mshtml.ref
  70. !set CURFILE=$O\mshtml.out
  71. !set REFFILE=mshtml.ref
  72. !set OBJ_DIR=$(_OBJ_DIR)\$(TOOLS_PLATFORM)
  73. !set TLBNAME=mshtml.tlb
  74. !set BADTLBNAME=mshtml.bad
  75. !set BTOOLSBIN=$(ROOT)\btools\bin\i386
  76. $(TLDIFF)
  77. $O\interned.idl : interpre.idl $O\internal.idl interpst.idl
  78. echo. >$O\interned.idl
  79. !type $** >>$O\interned.idl
  80. echo. >>$O\interned.idl
  81. $(_NTBINDIR)\inetcore\published\inc\interned.idl : $O\interned.idl
  82. !ifndef NOPASS0
  83. call comphtml $O\interned.idl $(_NTBINDIR)\inetcore\published\inc\interned.idl
  84. !else
  85. @echo.
  86. !endif
  87. $(_NTBINDIR)\inetcore\published\inc\mshtmdid.h : $O\mshtmdid.h
  88. !ifndef NOPASS0
  89. call comphtml $O\mshtmdid.h $(_NTBINDIR)\inetcore\published\inc\mshtmdid.h
  90. !else
  91. @echo.
  92. !endif
  93. $O\mshtml.tlb : $O\mshtml.idl
  94. $(MIDL) \
  95. -Zp8 \
  96. $(INCPATH0) \
  97. -char unsigned \
  98. -ms_ext -c_ext \
  99. -proxy $O\mshtml_p.c \
  100. -iid $O\mshtml_i.c \
  101. -dlldata $O\dlldata.c \
  102. -cpp_cmd $(TARGET_CPP) \
  103. -header $O\mshtml.h \
  104. -tlb $(O)\mshtml.tlb \
  105. $(C_DEFINES) \
  106. $(MIDL_OPTIMIZATION) \
  107. $O\mshtml.idl
  108. !if [@mkdir $(_OBJ_DIR)]
  109. !endif
  110. !if [@mkdir $(O)]
  111. !endif
  112. $(HDL_FILES) : $(PDLPARSE)
  113. {$(ROOT)\src\site\types}.asc{$O}.asc:
  114. $(C_PREPROCESSOR_NAME) $(C_DEFINES) /EP $< > $@
  115. .asc.h:
  116. @type <<$(ECHO_RSP)
  117. $(ECHO_MSG) /EP $<
  118. <<NOKEEP
  119. $(ASCPARSE) $< $@
  120. $(HSC_FILES) : $(ASCPARSE)
  121. {$(ROOT)\src\site\types}.nf{$O}.nf:
  122. $(C_PREPROCESSOR_NAME) $(C_DEFINES) /EP $< > $@
  123. .nf.h:
  124. @type <<$(ECHO_RSP)
  125. $(ECHO_MSG) /EP $<
  126. <<NOKEEP
  127. $(NFPARSE) $< $@
  128. $(HNF_FILES) : $(NFPARSE)