home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK11 / MFC / SAMPLES / TUTORIAL / DMTEST.$ / dmtest
Encoding:
Text File  |  1992-03-08  |  1.3 KB  |  53 lines

  1. # Makefile : Builds DMTEST
  2. #
  3. # Usage:     NMAKE dmtest         (build dmtest application)
  4. #    or:     NMAKE -f dmtest clean (erase all compiled files)
  5. #            DEBUG=[0|1]          (DEBUG not defined is equivalent to DEBUG=0)
  6.  
  7. # This is a part of the Microsoft Foundation Classes C++ library.
  8. # Copyright (C) 1992 Microsoft Corporation
  9. # All rights reserved.
  10. #
  11. # This source code is only intended as a supplement to the
  12. # Microsoft Foundation Classes Reference and Microsoft
  13. # QuickHelp documentation provided with the library.
  14. # See these sources for detailed information regarding the
  15. # Microsoft Foundation Classes product.
  16.  
  17. CPPFLAGS=/D_DOS /AM /W3 /Zp
  18. LINKFLAGS=/NOD /ONERROR:NOEXE
  19.  
  20. DIR=CHAR
  21.  
  22. !if "$(DEBUG)"=="1"
  23. CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f /Fo$*.OBJ
  24. LINKFLAGS=$(LINKFLAGS) /COD
  25. LIBS=mafxcrd mlibce
  26. !else
  27. CPPFLAGS=$(CPPFLAGS) /Oselg /Gs /Fo$*.OBJ
  28. LINKFLAGS=$(LINKFLAGS)  /EXE 
  29. LIBS=mafxcr mlibce
  30. !endif
  31.  
  32. .cpp{$(DIR)}.obj:
  33.     $(CPP) /c $(CPPFLAGS) $<
  34.  
  35. dmtest.exe : $(DIR)\dmtest.exe
  36.     copy $** $@
  37.  
  38. $(DIR)\dmtest.exe: $(DIR) $(DIR)\dmtest.obj $(DIR)\person.obj
  39.     link $(LINKFLAGS) $(DIR)\dmtest $(DIR)\person, $*,NUL, $(LIBS);
  40.  
  41.  
  42. $(DIR):
  43.     @IF NOT EXIST $(DIR)\*.* MD $(DIR)
  44.  
  45.  
  46. dmtest.obj: person.h
  47. person.obj: person.h
  48.  
  49. clean:
  50.     -del $(DIR)\person.obj
  51.     -del $(DIR)\dmtest.obj
  52.     -del $(DIR)\dmtest.exe
  53.