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