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