home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / activedocument / dfv / makefile < prev    next >
Makefile  |  1997-11-19  |  2KB  |  85 lines

  1. #+---------------------------------------------------------------------------
  2. #
  3. #  Microsoft Windows
  4. #  Copyright (C) Microsoft Corporation, 1994-1995.
  5. #
  6. #  File:        makefile
  7. #
  8. #----------------------------------------------------------------------------
  9.  
  10. !include <olesampl.mak>
  11.  
  12. #
  13. #       Makefile for OLE Sample DFView
  14. #
  15. #       builds DFView.EXE
  16. #
  17.  
  18. OLEFLAGS = -I ..\idl -I ..\winhlprs
  19. LINK = $(link)
  20. LINKFLAGS = $(linkdebug) $(guilflags)
  21. RCFLAGS = -DWIN32
  22.  
  23. OBJS = winmain.obj mwclass.obj strmvwr.obj about.obj bitmaps.obj message.obj
  24. LIBS = $(olelibsmt) ..\..\com\winhlprs\winhlprs.lib
  25.  
  26. all: DFView.exe
  27.  
  28. clean:
  29.     -del *.obj
  30.     -del dfv.res
  31.     -del DFView.map
  32.     -del DFView.exe
  33.  
  34. winmain.obj: winmain.cxx        \
  35.         dfv.h                   \
  36.         mwclass.h               \
  37.         message.h               \
  38.         ..\..\com\winhlprs\cwindow.h
  39.     $(cc) $(cvars) $(cflags) $(UFLAGS) $(cdebug) $(OLEFLAGS) $*.cxx
  40.  
  41. mwclass.obj: mwclass.cxx        \
  42.         dfv.h                   \
  43.         mwclass.h               \
  44.         about.h                 \
  45.         strmvwr.h               \
  46.         bitmaps.h               \
  47.         message.h               \
  48.         ..\..\com\winhlprs\cdialog.h   \
  49.         ..\..\com\winhlprs\cwindow.h
  50.     $(cc) $(cvars) $(cflags) $(UFLAGS) $(cdebug) $(OLEFLAGS) $*.cxx
  51.  
  52. strmvwr.obj: strmvwr.cxx        \
  53.         dfv.h                   \
  54.         strmvwr.h               \
  55.         message.h               \
  56.         mwclass.h               \
  57.         ..\..\com\winhlprs\cwindow.h
  58.     $(cc) $(cvars) $(cflags) $(UFLAGS) $(cdebug) $(OLEFLAGS) $*.cxx
  59.  
  60. about.obj: about.cxx            \
  61.         about.h                 \
  62.         ..\..\com\winhlprs\cdialog.h
  63.     $(cc) $(cvars) $(cflags) $(UFLAGS) $(cdebug) $(OLEFLAGS) $*.cxx
  64.  
  65. bitmaps.obj: bitmaps.cxx        \
  66.         bitmaps.h
  67.     $(cc) $(cvars) $(cflags) $(UFLAGS) $(cdebug) $(OLEFLAGS) $*.cxx
  68.  
  69. message.obj: message.cxx        \
  70.         message.h
  71.     $(cc) $(cvars) $(cflags) $(UFLAGS) $(cdebug) $(OLEFLAGS) $*.cxx
  72.  
  73. dfv.res: dfv.rc dfv.ico dfv.dlg document.bmp folder.bmp dfv.h
  74.     rc $(RCFLAGS) -r -fo$@ $*.rc
  75.  
  76. DFView.exe: $(OBJS) dfv.res
  77.     $(LINK) @<<
  78.         $(LINKFLAGS)
  79.         -out:$@
  80.         -map:$*.map
  81.         $(OBJS)
  82.         dfv.res
  83.         $(LIBS)
  84. <<
  85.