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.

112 lines
3.1 KiB

  1. !INCLUDE $(NTMAKEENV)\makefile.plt
  2. !if "$(WOW64_DEBUG_THUNKGEN)" == "1"
  3. GENTHNK_FLAGS=-d -w
  4. !else
  5. GENTHNK_FLAGS=-w
  6. !endif
  7. PPMFILE=..\cgen\$(O)\winincs.ppm
  8. NT32HDR=..\cgen\$(O)\nt32.h
  9. WHLOGGENDIR=..\wow64lg2\$(O)
  10. WHWIN32TAB=$(O)\services.tab
  11. WHWIN32C=$(O)\whwin32.c
  12. WHWIN32LOGC=$(WHLOGGENDIR)\whwin32.c
  13. # defines error return values for win32 functions
  14. WHWIN32ERRC=$(O)\whwin32er.c
  15. # this defines the 64-to-32 callbacks from win32k into user32
  16. NTCBC=$(O)\ntcbc.c
  17. # defines outbound message thunk functions.
  18. MSGXPT=$(O)\msgthnk.xpt
  19. MSGTHNKC=$(O)\msgthnk.c
  20. !if $(IA64)
  21. CXX_COMPILER_NAME=$(CXX_COMPILER_NAME) -DIN=__in -DOUT=__out
  22. !elseif $(AMD64)
  23. CXX_COMPILER_NAME=$(CXX_COMPILER_NAME) -DIN=__in -DOUT=__out
  24. !else
  25. !error no target architecture.
  26. !endif
  27. WOW64_CPP_FLAGS=$(WOW64_CPP_FLAGS) -DSORTPP_PASS -DGUID_DEFINED
  28. $(WHWIN32C): $(PPMFILE) \
  29. $(BASE_INC_PATH)\apithunk.tpl \
  30. $(BASE_INC_PATH)\genmacro.tpl \
  31. $(BASE_INC_PATH)\gentypes.tpl \
  32. whwin32.tpl \
  33. $(WHWIN32TAB)
  34. genthnk.exe $(GENTHNK_FLAGS) \
  35. -m$(PPMFILE) \
  36. -t$(BASE_INC_PATH)\apithunk.tpl \
  37. -t$(BASE_INC_PATH)\genmacro.tpl \
  38. -t$(BASE_INC_PATH)\gentypes.tpl \
  39. -twhwin32.tpl \
  40. -c$(WHWIN32C):whwin32 -s$(WHWIN32TAB):Nt
  41. $(WHWIN32LOGC): $(PPMFILE) \
  42. $(BASE_INC_PATH)\apithunk.tpl \
  43. $(BASE_INC_PATH)\genmacro.tpl \
  44. $(BASE_INC_PATH)\thunklog.tpl \
  45. $(WHWIN32TAB)
  46. -mkdir $(WHLOGGENDIR)
  47. genthnk.exe $(GENTHNK_FLAGS) \
  48. -m$(PPMFILE) \
  49. -t$(BASE_INC_PATH)\apithunk.tpl \
  50. -t$(BASE_INC_PATH)\genmacro.tpl \
  51. -t$(BASE_INC_PATH)\thunklog.tpl \
  52. -c$(WHWIN32LOGC):whwin32log -s$(WHWIN32TAB):Nt
  53. $(NTCBC): $(PPMFILE) ntcbc.tpl $(NTCBTAB) cbtypes.tpl
  54. genthnk.exe $(GENTHNK_FLAGS) -m$(PPMFILE) -tntcbc.tpl -tcbtypes.tpl -c$(NTCBC):ntcbc -e..\..\ntuser\inc\daytona\$(O)\cb.lst
  55. $(WHWIN32ERRC): $(PPMFILE) whwin32er.tpl $(WHWIN32TAB)
  56. genthnk.exe $(GENTHNK_FLAGS) -m$(PPMFILE) -twhwin32er.tpl -c$(WHWIN32ERRC):whwin32 -s$(WHWIN32TAB):Nt
  57. $(MSGXPT): msgxpt.h messages.h
  58. $(CXX_COMPILER_NAME) msgxpt.h /EP > $(MSGXPT)
  59. $(MSGTHNKC): $(PPMFILE) $(BASE_INC_PATH)\genmacro.tpl $(BASE_INC_PATH)\gentypes.tpl msgthnk.tpl $(MSGXPT)
  60. genthnk.exe $(GENTHNK_FLAGS) \
  61. -m$(PPMFILE) \
  62. -t$(BASE_INC_PATH)\genmacro.tpl \
  63. -t$(BASE_INC_PATH)\gentypes.tpl \
  64. -tmsgthnk.tpl \
  65. -c$(MSGTHNKC):msgthnk -e$(MSGXPT)
  66. $(O)\callcf.c: callcf.tpl $(O)\scf.lst
  67. listmung $(O)\scf.lst callcf.tpl >$(O)\callcf.c
  68. $(O)\cscall.h: cscall.tpl $(O)\scf.lst
  69. listmung $(O)\scf.lst cscall.tpl >$(O)\cscall.h
  70. $(O)\scf.lst: ..\..\ntuser\inc\scf.lst
  71. @echo Creating $@ from $**
  72. $(C_PREPROCESSOR) $** > $@
  73. thunks: $(WHWIN32C) \
  74. $(NTCBC) \
  75. $(WHWIN32ERRC) \
  76. $(MSGTHNKC) \
  77. $(WHWIN32LOGC) \
  78. $(O)\callcf.c \
  79. $(O)\cscall.h
  80. vermsg.exe
  81. cleanfiles:
  82. -del $(WHWIN32C)
  83. -del $(WHWIN32LOGC)
  84. -del $(NTCBC)
  85. -del $(WHWIN32ERRC)
  86. -del $(MSGXPT)
  87. -del $(MSGTHNKC)
  88. -del $(O)\callcf.c
  89. -del $(O)\cscall.h
  90. -del $(O)\scf.lst
  91. clean: cleanfiles thunks