home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK8 / MFC / SAMPLES / TEMPLDEF / MAKEFILE.$ / makefile
Encoding:
Makefile  |  1992-03-06  |  1.0 KB  |  38 lines

  1. # Makefile : Builds the templdef application
  2. #
  3. # Usage:     NMAKE options (build templdef)
  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 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 /Zp /D_DOS
  20. LINKFLAGS=/NOD /ONERROR:NOEXE
  21.  
  22. !if "$(DEBUG)"=="1"
  23. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f
  24. LINKFLAGS=$(LINKFLAGS) /COD
  25. LIBS=mafxcrd mlibce $(LIBS)
  26. !else
  27. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
  28. LINKFLAGS=$(LINKFLAGS)  
  29. LIBS=mafxcr mlibce $(LIBS)
  30. !endif
  31.  
  32. templdef.exe:   templdef.obj
  33.     link $(LINKFLAGS) templdef, templdef, NUL, $(LIBS);
  34.  
  35. clean:
  36.     -erase templdef.exe
  37.     -erase templdef.obj
  38.