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