home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK11 / MFC / SAMPLES / TRACER / MAKEFILE.$ / makefile
Encoding:
Makefile  |  1992-03-05  |  1.1 KB  |  48 lines

  1. # Makefile : Builds the tracer application
  2. #
  3. # Usage:     NMAKE options     (builds the application)
  4. #    or:     NMAKE CLEAN       (erases the compiled files)
  5. #
  6. # Options:   DEBUG=[0|1]       (default is 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=  /DWINVER=0x0300 /AS /W3 /Gsw /Zp
  20. LINKFLAGS=/NOD /ONERROR:NOEXE
  21.  
  22. !if "$(DEBUG)"=="1"
  23. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Odr /Zi /f
  24. LINKFLAGS=$(LINKFLAGS) /COD
  25. LIBS=safxcwd libw slibcew
  26. !else
  27. CPPFLAGS=$(CPPFLAGS) /Oxs
  28. LINKFLAGS=$(LINKFLAGS)  
  29. LIBS=safxcw libw slibcew
  30. !endif 
  31.  
  32. tracer.exe: tracer.obj tracer.def tracer.res
  33.     link $(LINKFLAGS) @<<
  34. tracer,
  35. tracer,
  36. NUL,
  37. $(LIBS),
  38. tracer.def;
  39. <<
  40.     rc -30 /t tracer.res
  41.  
  42. tracer.obj : tracer.cpp
  43.  
  44. clean:
  45.     -erase tracer.exe
  46.     -erase tracer.obj
  47.     -erase tracer.res
  48.