home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c480 / 20.ddi / MFC / SAMPLES / DLLTRACE / MAKEFILE._ / MAKEFILE.
Encoding:
Text File  |  1993-02-08  |  1.9 KB  |  71 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 and/or WinHelp 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. WINLIBS=libw commdlg shell
  17.  
  18. #############################################################################
  19. # hello1 application is medium model DEBUG
  20.  
  21. hello1.obj: hello1.cpp resource.h traceapi.h
  22.     cl /DWINVER=0x0300 /AM /Zi /Zp /F 1000 /D_DEBUG /c hello1.cpp
  23.  
  24. hello1.exe: hello1.obj hello1.def hello1.res tracer.lib
  25.     link /NOD /CO /ONERROR:NOEXE /STACK:10240 @<<
  26. hello1,
  27. hello1.exe,
  28. hello1.map,
  29. mafxcwd mlibcew tracer $(WINLIBS),
  30. hello1.def;
  31. <<
  32.     rc -30 /t hello1.res
  33.  
  34. hello1.res: hello1.rc resource.h hello1.ico
  35.  
  36. #############################################################################
  37. # Tracer is a large model DLL built with MFC large model USRDLL version
  38. # of the debug library
  39.  
  40. # /GD option automatically defines /D_WINDLL
  41.  
  42. tracer.obj: tracer.cpp traceapi.h
  43.     cl /DWINVER=0x0300 /ALw /Zi /GD /D_USRDLL /Gsy /W3 /Zp /D_DEBUG /c tracer.cpp
  44.  
  45. tracer.dll: tracer.obj tracer.def tracer.res
  46.     link /NOD  /ONERROR:NOEXE /CO /PACKDATA /MAP:FULL @<<
  47. tracer.obj,
  48. tracer.dll,
  49. tracer.map,
  50. lafxdwd ldllcew $(WINLIBS),
  51. tracer.def;
  52. <<
  53.     rc -30 /t /k tracer.res tracer.dll
  54.  
  55. # import library
  56. tracer.lib: tracer.dll
  57.     implib tracer.lib tracer.dll 
  58.  
  59. #############################################################################
  60.  
  61. clean:
  62.     -del *.exe
  63.     -del *.dll
  64.     -del *.res
  65.     -del *.obj
  66.     -del *.lib
  67.     -del *.pdb
  68.     -del *.map
  69.  
  70. #############################################################################
  71.