|
|
1.1 root 1: # Makefile : Builds the PHONE BOOK application
2: #
3: # Usage: NMAKE PHBOOK (build PHBOOK.EXE)
4: # or: NMAKE -f phbook 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: DIR=WIN
19:
20: phbook.exe : $(DIR)\phbook.exe
21: copy $** $@
22:
23: !ifndef NTMFC
24: CPPFLAGS= /DWINVER=0x0300 /AM /W3 /Zp /GA /GEs /G2
25: LINKFLAGS=/NOD /ONERROR:NOEXE
26:
27: !if "$(DEBUG)"=="1"
28: CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f /Fo$*.OBJ
29: LINKFLAGS=$(LINKFLAGS) /COD
30: LIBS=mafxcwd libw mlibcew commdlg
31: !else
32: CPPFLAGS=$(CPPFLAGS) /Oselg /Gs /Fo$*.OBJ
33: LINKFLAGS=$(LINKFLAGS)
34: LIBS=mafxcw libw mlibcew commdlg
35: !endif
36:
37:
38: .cpp{$(DIR)}.obj:
39: $(CPP) /c $(CPPFLAGS) $<
40:
41: .rc{$(DIR)}.res:
42: $(RC) $(RFLAGS) /r /fo $@ $<
43:
44: $(DIR)\phbook.exe: $(DIR) $(DIR)\person.obj $(DIR)\view.obj \
45: $(DIR)\database.obj phbook.def $(DIR)\phbook.res
46: link $(LINKFLAGS) @<<
47: $(DIR)\person $(DIR)\view $(DIR)\database,
48: $@,
49: NUL,
50: $(LIBS),
51: phbook.def;
52: <<
53: rc -30 /k /t $(DIR)\phbook.res
54: !else
55:
56: !include ..\ntsample.mak
57:
58:
59: .cpp{$(DIR)}.obj:
60: $(CPP) $(CPPFLAGS) /Fo$*.OBJ /c $<
61:
62: .rc{$(DIR)}.res:
63: rc -r -fo $*.tmp $<
64: cvtres -i386 $*.tmp -o $*.res
65: del $*.tmp
66:
67: !endif
68:
69: $(DIR)\phbook.exe: $(DIR) $(DIR)\person.obj $(DIR)\view.obj \
70: $(DIR)\database.obj phbook.def $(DIR)\phbook.res
71: $(LINK) $(GUIFLAGS) -out:$(DIR)\phbook.exe $(OBJS) \
72: $(DIR)\person.obj $(DIR)\view.obj $(DIR)\database.obj \
73: $(DIR)\phbook.res $(MFCLIB) $(GUILIBS)
74:
75:
76: $(DIR):
77: @IF NOT EXIST $(DIR)\*.* MD $(DIR)
78:
79: person.obj : person.h
80: database.h : person.h
81: database.obj : database.h
82: view.obj : view.h database.h resource.h
83: phbook.res : resource.h phbook.ico phbook.rc phbook.dlg
84:
85: clean:
86: -del $(DIR)\person.obj
87: -del $(DIR)\view.obj
88: -del $(DIR)\phbook.res
89: -del $(DIR)\database.obj
90: -del $(DIR)\phbook.exe
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.