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

  1. # Makefile : Builds the 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. PCH=oclient.h
  20. CPPFLAGS=  /DWINVER=0x0300 /AM /W3 /GA /Zp /Yu$(PCH)
  21. LINKFLAGS=/NOD /ONERROR:NOEXE
  22.  
  23. !if "$(DEBUG)"=="1"
  24. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Odr /f /Zi
  25. LINKFLAGS=$(LINKFLAGS) /COD
  26. LIBS=mafxcwd mlibcew libw shell olecli commdlg
  27. !else
  28. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
  29. LINKFLAGS=$(LINKFLAGS)  
  30. LIBS=mafxcw mlibcew libw shell olecli commdlg
  31. !endif
  32.  
  33. OBJS=oclient.obj mainwnd.obj fileio.obj itemwnd.obj
  34.  
  35. all: oclient.exe
  36.  
  37. oclient.obj oclient.pch: oclient.cpp oclient.h resource.h mainwnd.h
  38.     $(CPP) $(CPPFLAGS) /Yc$(PCH) /c oclient.cpp
  39.  
  40.  
  41. oclient.exe: $(OBJS) oclient.def oclient.res
  42.     link $(LINKFLAGS) @<<
  43. $(OBJS),
  44. oclient,
  45. NUL,
  46. $(LIBS), 
  47. oclient.def
  48. <<
  49.     rc -30 -k -t oclient.res
  50.  
  51. oclient.res: oclient.rc resource.h
  52.     rc -r oclient.rc
  53.  
  54. fileio.obj  : oclient.h mainwnd.h itemwnd.h
  55. itemwnd.obj : oclient.h mainwnd.h itemwnd.h
  56. mainwnd.obj : oclient.h mainwnd.h itemwnd.h
  57.  
  58. clean:
  59.     -erase oclient.exe 
  60.     -erase oclient.res 
  61.     -erase oclient.pch
  62.     -erase *.obj 
  63.