|
|
1.1 ! root 1: # Makefile : Builds the mdi application ! 2: # ! 3: # This is a part of the Microsoft Foundation Classes C++ library. ! 4: # Copyright (C) 1992 Microsoft Corporation ! 5: # All rights reserved. ! 6: # ! 7: # This source code is only intended as a supplement to the ! 8: # Microsoft Foundation Classes Reference and Microsoft ! 9: # QuickHelp documentation provided with the library. ! 10: # See these sources for detailed information regarding the ! 11: # Microsoft Foundation Classes product. ! 12: # ! 13: # Usage: NMAKE option (build mdi) ! 14: # or: NMAKE clean (erase all compiled files) ! 15: # ! 16: # option: DEBUG=[0|1] (DEBUG not defined is equivalent to DEBUG=0) ! 17: ! 18: PCH=mdi.h ! 19: OBJS=mdi.obj hello.obj bounce.obj ! 20: ! 21: !ifndef NTMFC ! 22: CPPFLAGS= /DWINVER=0x0300 /AM /W3 /Zp /GA /GEs /G2 /Yu$(PCH) ! 23: LINKFLAGS=/NOD /ONERROR:NOEXE ! 24: ! 25: !if "$(DEBUG)"=="1" ! 26: CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f ! 27: LINKFLAGS=$(LINKFLAGS) /COD ! 28: LIBS=mafxcwd libw mlibcew commdlg ! 29: !else ! 30: CPPFLAGS=$(CPPFLAGS) /Oselg /Gs ! 31: LINKFLAGS=$(LINKFLAGS) ! 32: LIBS=mafxcw libw mlibcew commdlg ! 33: !endif ! 34: mdi.exe: $(OBJS) mdi.def mdi.res ! 35: link $(LINKFLAGS) mdi hello bounce, mdi, NUL, $(LIBS), mdi; ! 36: rc -30 /k /t mdi.res ! 37: !else ! 38: !include ..\ntsample.mak ! 39: ! 40: mdi.exe: $(OBJS) mdi.def mdi.res ! 41: $(LINK) $(GUIFLAGS) -out:mdi.exe $(OBJS) mdi.res $(MFCLIB) $(GUILIBS) ! 42: !endif ! 43: ! 44: mdi.obj: resource.h mdi.h hello.h bounce.h common.h ! 45: $(CPP) $(CPPFLAGS) /Yc$(PCH) /c mdi.cpp ! 46: ! 47: hello.obj: resource.h hello.h common.h ! 48: bounce.obj: resource.h bounce.h common.h ! 49: ! 50: mdi.res: resource.h about.dlg mdi.ico hello.ico ! 51: ! 52: clean: ! 53: -erase mdi.exe ! 54: -erase mdi.pch ! 55: -erase mdi.res ! 56: -erase mdi.obj ! 57: -erase hello.obj ! 58: -erase bounce.obj
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.