PostMake.Inc 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #----------------------------------------------------------------------------
  2. #
  3. # Descriptions:
  4. # Generic Make File Postfix for EDK Environment
  5. #
  6. # Copyright:
  7. # Copyright (C) Microsoft Corp. 1993-1999. All Rights Reserved.
  8. #
  9. #----------------------------------------------------------------------------
  10. !ifndef PRIVATE_CLEAN
  11. clean:
  12. !else
  13. generic_clean:
  14. !endif
  15. del $(DIRBLD)\*.obj \
  16. $(DIRBLD)\*.err \
  17. $(DIRBLD)\*.lib \
  18. $(DIRBLD)\*.exe \
  19. $(DIRBLD)\*.dll \
  20. $(DIRBLD)\*.map \
  21. $(DIRBLD)\*.res \
  22. $(DIRBLD)\*.pch \
  23. $(DIRBLD)\*.exp
  24. cleanall: clean
  25. del $(DIRPCH)\*.obj \
  26. $(DIRPCH)\*.pch
  27. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  28. # Disable precompiled headers if NOPCH is defined.
  29. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  30. !ifdef NOPCH
  31. !include "nopch.inc"
  32. !endif
  33. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  34. # Pre-compiled header default #1 used in most .C EDK sources.
  35. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  36. $(DIRPCH)\edk.obj: $(DIRPCHSRC)\edk.c
  37. !if "$(OUTERR)"=="YES"
  38. @echo $(CC) $(CL) $(PCHCR1) $(CFLAGS) $(DIRPCHSRC)\edk.c $(OSYM) $(ERRFILE)
  39. !endif
  40. $(CC) $(CL) $(PCHCR1) $(CFLAGS) $(DIRPCHSRC)\edk.c $(OSYM) $(ERRFILE)
  41. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  42. # Pre-compiled header default #2 used in most .CPP EDK sources.
  43. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  44. $(DIRPCH)\edkx.obj: $(DIRPCHSRC)\edkx.cpp
  45. !if "$(OUTERR)"=="YES"
  46. @echo $(CC) $(CL) $(PCHCR2) $(CFLAGS) $(DIRPCHSRC)\edkx.cpp $(OSYM) $(ERRFILE)
  47. !endif
  48. $(CC) $(CL) $(PCHCR2) $(CFLAGS) $(DIRPCHSRC)\edkx.cpp $(OSYM) $(ERRFILE)
  49. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  50. # Pre-compiled header default #3 used for .CPP and MFC applications.
  51. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  52. $(DIRPCH)\edkafx.obj: $(DIRPCHSRC)\edkafx.cpp
  53. !if "$(OUTERR)"=="YES"
  54. @echo $(CC) $(CL) $(PCHCR3) $(CPPFLAGS) $(DIRPCHSRC)\edkafx.cpp $(OSYM) $(ERRFILE)
  55. !endif
  56. $(CC) $(CL) $(PCHCR3) $(CPPFLAGS) $(DIRPCHSRC)\edkafx.cpp $(OSYM) $(ERRFILE)
  57. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  58. # Pre-compiled header default #4 used in UNICODE .C EDK sources.
  59. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  60. $(DIRPCH)\edku.obj: $(DIRPCHSRC)\edku.c
  61. !if "$(OUTERR)"=="YES"
  62. @echo $(CC) $(CL) $(PCHCR4) $(CFLAGS) $(DIRPCHSRC)\edku.c $(OSYM) $(ERRFILE)
  63. !endif
  64. $(CC) $(CL) $(PCHCR4) $(CFLAGS) $(DIRPCHSRC)\edku.c $(OSYM) $(ERRFILE)
  65. # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -