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.

59 lines
1.8 KiB

  1. # Copyright (c) Microsoft Corporation
  2. !INCLUDE $(NTMAKEENV)\makefile.plt
  3. FUSION_CGEN_COMPILER_FLAGS=$(CXX_COMPILER_FLAGS) -DSORTPP_PASS -DGUID_DEFINED
  4. !if "$(FUSION_CGEN_DEBUG_THUNKGEN)" == "1"
  5. SORTPP_FLAGS=$(SORTPP_FLAGS) -l
  6. !else
  7. SORTPP_FLAGS=$(SORTPP_FLAGS)
  8. !endif
  9. CXX_COMPILER_NAME=$(CXX_COMPILER_NAME) $(FUSION_CGEN_COMPILER_FLAGS) -noHRESULT -DIN=__in -DOUT=__out
  10. $(O)\winincs2.pp: $(O)\winincs.pp
  11. $(O)\winincs.pp: winincs.cpp cgenhdr.h
  12. $(CXX_COMPILER_NAME) -DMICROSOFT_INTERNAL=0 /C @<<$(O)\cl.rsp /E /FC winincs.cpp >$(O)\winincs2.pp
  13. $(FUSION_CGEN_COMPILER_FLAGS: =
  14. )
  15. <<NOKEEP
  16. idlclean.exe $(O)\winincs2.pp $(O)\winincs2.cpp
  17. $(CXX_COMPILER_NAME) -DMICROSOFT_INTERNAL=0 @<<cl.rsp /E /FC $(O)\winincs2.cpp >$(O)\winincs.pp
  18. $(FUSION_CGEN_COMPILER_FLAGS: =
  19. )
  20. <<NOKEEP
  21. $(O)\winincs2_private.pp: $(O)\winincs_private.pp
  22. $(O)\winincs_private.pp: winincs.cpp cgenhdr.h
  23. $(CXX_COMPILER_NAME) -DMICROSOFT_INTERNAL=1 /C @<<$(O)\cl.rsp /E /FC winincs.cpp >$(O)\winincs2_private.pp
  24. $(FUSION_CGEN_COMPILER_FLAGS: =
  25. )
  26. <<NOKEEP
  27. idlclean.exe $(O)\winincs2_private.pp $(O)\winincs2_private.cpp
  28. $(CXX_COMPILER_NAME) -DMICROSOFT_INTERNAL=1 @<<cl.rsp /E /FC $(O)\winincs2_private.cpp >$(O)\winincs_private.pp
  29. $(FUSION_CGEN_COMPILER_FLAGS: =
  30. )
  31. <<NOKEEP
  32. #
  33. # Use 2 for C++, like for REFGUID, but there are problems with using C++...
  34. #
  35. #$(PPMFILE): $(O)\winincs2.pp
  36. # fusion_sortpp.exe $(SORTPP_FLAGS) -m$(PPMFILE) $(O)\winincs2.pp
  37. #
  38. $(PPMFILE): $(O)\winincs.pp
  39. fusion_sortpp.exe $(SORTPP_FLAGS) -m$@ $(O)\winincs.pp
  40. $(PPMFILE_PRIVATE): $(O)\winincs_private.pp
  41. fusion_sortpp.exe $(SORTPP_FLAGS) -m$@ $(O)\winincs_private.pp
  42. #thunks: (PPMFILE)
  43. #
  44. #cleanfiles:
  45. # -del $(O)\winincs.pp
  46. # -del $(O)\winincs2.pp
  47. # -del $(PPMFILE)
  48. #
  49. #clean: cleanfiles thunks