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.

41 lines
1.1 KiB

  1. !IF 0
  2. Copyright (c) Microsoft Corporation
  3. !ENDIF
  4. {}.cpp{$(O)\}.pp:
  5. $(CXX_COMPILER_NAME) @<<$(CL_RSP) /E $(USE_FC) $< > $@
  6. $(CXX_COMPILER_FLAGS: =
  7. )
  8. <<NOKEEP
  9. # keep comments in when preprocessing
  10. !ifdef PASS0ONLY
  11. C_PREPROCESSOR_FLAGS=$(C_PREPROCESSOR_FLAGS) -C
  12. CXX_COMPILER_FLAGS=$(CXX_COMPILER_FLAGS) -C
  13. # restore some suffixes for pass0, and add .ppm
  14. .SUFFIXES: .cpp .pp .ppm
  15. !endif
  16. $(O)\cpp.pp: $(O)\idl.h
  17. {$(O)\}.pp{$(O)\}.ppm:
  18. idlclean $< $<.tmp2
  19. perl < $<.tmp2 > $<.tmp3 <<
  20. $$file = join("", <>);
  21. #
  22. # modify a string in commctrl.h that looks like it has a comment
  23. # be sure to do slashslash comments first due to some "confusing"
  24. # text around IInternetSecurityMgrSite
  25. #
  26. $$file =~ s/":\/\/"/"xxx"/gms;
  27. $$file =~ s/\/\/.*?$$/ /gms;
  28. $$file =~ s/\/\*.*?\*\//\n/gs;
  29. $$file =~ s/\WIN\W/ __in /g;
  30. $$file =~ s/\WOUT\W/ __out /g;
  31. print $$file;
  32. <<KEEP
  33. sortpp $(SORTPP_FLAGS) -m$@ $<.tmp3
  34. $(O)\this_is_supposed_to_be.xml : $(O)\$(TARGETNAME).$(TARGETEXT) $(PPMFILE)
  35. $(O)\$(TARGETNAME).$(TARGETEXT) $(PPMFILE) > $@