home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / postmake.inc < prev    next >
Text File  |  1998-04-25  |  3KB  |  79 lines

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