|
|
1.1 root 1: # Makefile : Builds the application.
2: #
3: # Usage: NMAKE options (builds the application)
4: # or: NMAKE CLEAN (erases the compiled files)
5: #
6: # Options: 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:
20: PCH=fileview.h
21: OBJS=fileview.obj linefile.obj
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 /Yu$(PCH)
27: LINKFLAGS=/NOD /ONERROR:NOEXE
28:
29:
30: !if "$(DEBUG)"=="1"
31: CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /f /Zi
32: LINKFLAGS=$(LINKFLAGS) /COD
33: LIBS=mafxcwd libw mlibcew commdlg
34: !else
35: CPPFLAGS=$(CPPFLAGS) /Gs /Oselg
36: LINKFLAGS=$(LINKFLAGS)
37: LIBS=mafxcw libw mlibcew commdlg
38: !endif
39:
40: fileview.exe: fileview.obj linefile.obj \
41: fileview.res
42: link $(LINKFLAGS) linefile fileview,fileview,nul, \
43: $(LIBS),fileview.def
44: rc -30 /k /t fileview.res
45:
46: !else
47:
48: !include ..\ntsample.mak
49:
50: fileview.exe: $(OBJS) fileview.res fileview.def
51: $(LINK) $(GUIFLAGS) -out:fileview.exe $(OBJS) fileview.res $(MFCLIB) $(GUILIBS)
52: !endif
53:
54: fileview.obj: fileview.cpp $(PCH) resource.h
55: $(CPP) $(CPPFLAGS) /Yc$(PCH) /c fileview.cpp
56:
57: fileview.res: fileview.rc resource.h fileview.ico
58: linefile.obj: linefile.cpp
59:
60:
61: clean:
62: -erase fileview.exe
63: -erase fileview.pch
64: -erase fileview.res
65: -erase fileview.obj
66: -erase linefile.obj
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.