home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / controls / drawpic / makefile < prev    next >
Makefile  |  1998-03-26  |  1KB  |  55 lines

  1. # makefile - Handy makefile for command-line use
  2. #
  3. # Usage:
  4. #   nmake [options] [all|clean]
  5. #
  6. # Options:
  7. #   DEBUG=0     Build retail version
  8. #   DEBUG=1     Build debug version (default)
  9. #   UNICODE=0   Build ANSI/DBCS version (default)
  10. #   UNICODE=1   Build Unicode version
  11.  
  12. # This is a part of the Microsoft Foundation Classes C++ library.
  13. # Copyright (C) 1992-1997 Microsoft Corporation
  14. # All rights reserved.
  15. #
  16. # This source code is only intended as a supplement to the
  17. # Microsoft Foundation Classes Reference and related
  18. # electronic documentation provided with the library.
  19. # See these sources for detailed information regarding the
  20. # Microsoft Foundation Classes product.
  21.  
  22. !ifndef UNICODE
  23. UNICODE=0
  24. !endif
  25.  
  26. !ifndef DEBUG
  27. DEBUG=1
  28. !endif
  29.  
  30. !if "$(UNICODE)" == "1"
  31. !if "$(DEBUG)" == "1"
  32. all:
  33.         nmake -f DrawPic.mak CFG="DrawPic - Win32 Unicode Debug"
  34. clean:
  35.         @-if exist UniDebug\*.* echo y | erase UniDebug\*.*
  36. !else
  37. all:
  38.         nmake -f DrawPic.mak CFG="DrawPic - Win32 Unicode Release"
  39. clean:
  40.         @-if exist UniRelease\*.* echo y | erase UniRelease\*.*
  41. !endif
  42. !else
  43. !if "$(DEBUG)" == "1"
  44. all:
  45.         nmake -f DrawPic.mak CFG="DrawPic - Win32 Debug"
  46. clean:
  47.     @-if exist Debug\*.* echo y | erase Debug\*.*
  48. !else
  49. all:
  50.         nmake -f DrawPic.mak CFG="DrawPic - Win32 Release"
  51. clean:
  52.     @-if exist Release\*.* echo y | erase Release\*.*
  53. !endif
  54. !endif
  55.