home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / MFC / SAMPLES / MAKEHM / MAKEFILE._ / MAKEFILE.
Encoding:
Text File  |  1993-02-08  |  1.1 KB  |  40 lines

  1. # Makefile : Builds the makehm application
  2. #
  3. # Usage:     NMAKE options (build makehm)
  4. #    or:     NMAKE clean   (erase all compiled files)
  5. #
  6. # options:   DEBUG=[0|1]   (DEBUG not defined is equivalent to DEBUG=0)
  7. #
  8. # This is a part of the Microsoft Foundation Classes C++ library.
  9. # Copyright (C) 1992 Microsoft Corporation
  10. # All rights reserved.
  11. #
  12. # This source code is only intended as a supplement to the
  13. # Microsoft Foundation Classes Reference and Microsoft
  14. # QuickHelp and/or WinHelp documentation provided with the library.
  15. # See these sources for detailed information regarding the
  16. # Microsoft Foundation Classes product.
  17. #
  18.  
  19. CPPFLAGS= /AM /W3 /D_DOS
  20. LINKFLAGS=/NOD /ONERROR:NOEXE
  21.  
  22. !if "$(DEBUG)"=="1"
  23. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi
  24. LINKFLAGS=$(LINKFLAGS) /COD
  25. LIBS=mafxcrd mlibce $(LIBS)
  26. !else
  27. CPPFLAGS=$(CPPFLAGS) /Os /Gs
  28. LINKFLAGS=$(LINKFLAGS)  
  29. LIBS=mafxcr mlibce $(LIBS)
  30. !endif
  31.  
  32. makehm.exe:   makehm.obj
  33.     link $(LINKFLAGS) makehm, makehm, makehm/MAP, $(LIBS);
  34.  
  35. clean:
  36.     -erase makehm.exe
  37.     -erase makehm.obj
  38.     -erase msvc.pdb
  39.     -erase makehm.map
  40.