home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / controls / smiley / smilectl / makefile next >
Encoding:
Makefile  |  1998-03-27  |  1.4 KB  |  56 lines

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