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.

68 lines
1.9 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. WHCONTABSRC=..\..\wow6432\services.tab
  11. WHCONTAB=$(O)\services.tab
  12. WHCONC=$(O)\whcon.c
  13. WHCONLOGC=$(WHLOGGENDIR)\whcon.c
  14. WHCONERRC=$(O)\whconerr.c
  15. $(WHCONTAB): $(WHCONTABSRC)
  16. @echo Creating $(WHCONTAB) from $(WHCONTABSRC)
  17. $(C_PREPROCESSOR) $(WHCONTABSRC) > $(WHCONTAB)
  18. $(WHCONC): $(PPMFILE) \
  19. $(BASE_INC_PATH)\apithunk.tpl \
  20. $(BASE_INC_PATH)\genmacro.tpl \
  21. $(BASE_INC_PATH)\gentypes.tpl \
  22. whcon.tpl \
  23. $(WHCONTAB)
  24. genthnk.exe $(GENTHNK_FLAGS) \
  25. -m$(PPMFILE) \
  26. -t$(BASE_INC_PATH)\apithunk.tpl \
  27. -t$(BASE_INC_PATH)\genmacro.tpl \
  28. -t$(BASE_INC_PATH)\gentypes.tpl \
  29. -twhcon.tpl \
  30. -c$(WHCONC):whcon \
  31. -s$(WHCONTAB)
  32. $(WHCONLOGC): $(PPMFILE) \
  33. $(BASE_INC_PATH)\apithunk.tpl \
  34. $(BASE_INC_PATH)\genmacro.tpl \
  35. $(BASE_INC_PATH)\thunklog.tpl \
  36. $(WHCONTAB)
  37. -mkdir $(WHLOGGENDIR)
  38. genthnk.exe $(GENTHNK_FLAGS) \
  39. -m$(PPMFILE) \
  40. -t$(BASE_INC_PATH)\apithunk.tpl \
  41. -t$(BASE_INC_PATH)\genmacro.tpl \
  42. -t$(BASE_INC_PATH)\thunklog.tpl \
  43. -c$(WHCONLOGC):whconlog \
  44. -s$(WHCONTAB)
  45. $(WHCONERRC): $(PPMFILE) whconerr.tpl $(WHCONTAB)
  46. genthnk.exe $(GENTHNK_FLAGS) \
  47. -m$(PPMFILE) \
  48. -twhconerr.tpl \
  49. -c$(WHCONERRC):whcon \
  50. -s$(WHCONTAB)
  51. thunks: $(WHCONC) $(WHCONERRC) $(WHCONLOGC)
  52. cleanfiles:
  53. -del $(WHCONTAB)
  54. -del $(WHCONC)
  55. -del $(WHCONLOGC)
  56. -del $(WHCONERRC)
  57. clean: cleanfiles thunks