|
|
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:
1.1.1.2 ! root 20: !ifdef WIN16MFC
! 21: #!message compiling for WIN16
! 22:
1.1 root 23: CPPFLAGS= /DWINVER=0x0300 /AS /W3 /Zp /GA /GEs /G2
24: LINKFLAGS=/NOD /ONERROR:NOEXE
25:
26: !if "$(DEBUG)"=="1"
27: CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f
28: LINKFLAGS=$(LINKFLAGS) /COD
29: LIBS=safxcwd libw slibcew
30: !else
31: CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
32: LINKFLAGS=$(LINKFLAGS)
33: LIBS=safxcw libw slibcew
34: !endif
35:
36: hello.exe: hello.obj hello.def hello.res
37: link $(LINKFLAGS) hello, hello, NUL, $(LIBS),hello.def;
38: rc -30 /t hello.res
39: !else
40:
41: !include ..\ntsample.mak
42:
43: hello.exe: hello.obj hello.def hello.res
44: $(LINK) $(GUIFLAGS) -out:hello.exe hello.res hello.obj $(MFCLIB) $(GUILIBS)
45:
46: !endif
47:
48: hello.obj: hello.h resource.h
49:
50: hello.res: resource.h hello.ico hello.dlg
51:
52:
53: clean:
54: -erase hello.exe
55: -erase hello.res
56: -erase hello.obj
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.