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

  1. # This is a part of the Microsoft Foundation Classes C++ library.
  2. # Copyright (C) 1992 Microsoft Corporation
  3. # All rights reserved.
  4. #
  5. # This source code is only intended as a supplement to the
  6. # Microsoft Foundation Classes Reference and Microsoft
  7. # QuickHelp documentation provided with the library.
  8. # See these sources for detailed information regarding the
  9. # Microsoft Foundation Classes product.
  10. #
  11.  
  12. # Build hello1 application and Tracer DLL
  13.  
  14. goal: hello1.exe tracer.dll
  15.  
  16. #############################################################################
  17. # hello1 application is medium model DEBUG
  18.  
  19. hello1.obj: hello1.cpp resource.h traceapi.h
  20.     cl /DWINVER=0x0300 /AM /Zi /Zp /D_DEBUG /c hello1.cpp
  21.  
  22. hello1.exe: hello1.obj hello1.def hello1.res tracer.lib
  23.     link /NOD /CO /ONERROR:NOEXE @<<
  24. hello1,
  25. hello1.exe,
  26. nul,
  27. mafxcwd libw mlibcew tracer,
  28. hello1.def;
  29. <<
  30.     rc -30 /t hello1.res
  31.  
  32. hello1.res: hello1.rc resource.h hello1.ico
  33.  
  34. #############################################################################
  35. # Tracer is a large model DLL built with MFC large model debug DLL support
  36. # library
  37.  
  38. # /GD option automatically defines /D_WINDLL
  39.  
  40. tracer.obj: tracer.cpp traceapi.h
  41.     cl /DWINVER=0x0300 /ALw /Zi /GD /Gs /W3 /Zp /D_DEBUG /c tracer.cpp
  42.  
  43. tracer.dll: tracer.obj tracer.def tracer.res
  44.     link /NOD  /ONERROR:NOEXE /CO /PACKDATA @<<
  45. tracer.obj,
  46. tracer.dll,
  47. nul,
  48. lafxdwd libw ldllcew,
  49. tracer.def;
  50. <<
  51.     rc -30 /t tracer.res tracer.dll
  52.  
  53. # import library
  54. tracer.lib: tracer.dll
  55.     implib tracer.lib tracer.dll 
  56.  
  57. #############################################################################
  58.  
  59. clean:
  60.     -del *.exe
  61.     -del *.dll
  62.     -del *.res
  63.     -del *.obj
  64.     -del *.lib
  65.  
  66. #############################################################################
  67.