|
|
1.1 root 1: # Makefile : Builds the About2 application
2: #
3: # Usage: NMAKE option (build About2)
4: # or: NMAKE clean (erase all compiled files)
5: #
6: # option: DEBUG=[0|1] (DEBUG not defined is equivalent to DEBUG=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: # Based on the About2 application by Charles Petzold.
19: # The original application appeared in
20: # "Programming Windows", Second Edition (pp. 417-423),
21: # Copyright (C) 1990 Charles Petzold,
22: # published by Microsoft Press. Used with permission.
23:
24:
25: OBJS = about2.obj
26:
27: !ifndef NTMFC
28:
29: CPPFLAGS= /DWINVER=0x0300 /AS /W3 /Zp /GA /GEs /G2
30: LINKFLAGS=/NOD /ONERROR:NOEXE
31:
32: !if "$(DEBUG)"=="1"
33: CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /f /Zi
34: LINKFLAGS=$(LINKFLAGS) /COD
35: LIBS=safxcwd libw slibcew
36: !else
37: CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
38: LINKFLAGS=$(LINKFLAGS)
39: LIBS=safxcw libw slibcew
40: !endif
41:
42:
43: about2.exe: about2.obj about2.def about2.res
44: link $(LINKFLAGS) about2, about2, NUL, $(LIBS), about2.def;
45: rc -30 /t about2.res
46: !else
47: !include ..\ntsample.mak
48:
49: about2.exe: $(OBJS) about2.def about2.res
50: $(LINK) $(GUIFLAGS) -out:about2.exe $(OBJS) about2.res $(MFCLIB) $(GUILIBS)
51: !endif
52:
53: about2.res: resource.h about2.dlg about2.ico
54:
55: about2.obj: about2.h resource.h
56:
57: clean:
58: -erase about2.exe
59: -erase about2.res
60: -erase about2.obj
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.