|
|
1.1 root 1: # This is a part of the Microsoft Foundation Classes C++ library.
2: # Copyright (C) 1992 Microsoft Corporation
3: # All rights reserved.
4: #
5: # This source code is only intended as a supplement to the
6: # Microsoft Foundation Classes Reference and Microsoft
7: # QuickHelp documentation provided with the library.
8: # See these sources for detailed information regarding the
9: # Microsoft Foundation Classes product.
10: #
11:
1.1.1.3 ! root 12: !if "$(CPU)" == "MIPS"
! 13: DLLDECORATE =
! 14: PLATFORM = _MIPS_
! 15: !else
! 16: DLLDECORATE = @12
! 17: PLATFORM = _X86_
! 18: !endif
! 19:
! 20: MFCDLLENTRY = AfxLibMain$(DLLDECORATE)
1.1.1.2 root 21:
1.1 root 22: !ifdef CONSOLE
1.1.1.3 ! root 23: MFCFLAGS=/D_NTWIN /D$(PLATFORM)=1
1.1 root 24: !else
1.1.1.3 ! root 25: MFCFLAGS=/D_NTWIN /D$(PLATFORM)=1 /D_WINDOWS /DWINVER=0x0300
1.1 root 26: !endif
27:
28: !ifdef CONSOLE
29: !if "$(DEBUG)" == "1"
1.1.1.2 root 30: MFCLIB = nafxcrd.lib
31: DEBUGFLAGS = /Zi /Od /D_DEBUG
1.1 root 32: !else
1.1.1.2 root 33: MFCLIB = nafxcr.lib
1.1.1.3 ! root 34: DEBUGFLAGS = /Oxt /Gs
1.1 root 35: !endif
36: !else
37: !if "$(DEBUG)" == "1"
1.1.1.2 root 38: MFCLIB = nafxcwd.lib
39: DEBUGFLAGS = /Zi /Od /D_DEBUG
1.1 root 40: !else
1.1.1.2 root 41: MFCLIB = nafxcw.lib
1.1.1.3 ! root 42: DEBUGFLAGS = /Oxt /Gs
1.1 root 43: !endif
44: !endif
45:
1.1.1.3 ! root 46: !if "$(DEBUG)" == "1"
! 47: MFCLIBDLL = nafxdwd.lib
! 48: !else
! 49: MFCLIBDLL = nafxdw.lib
! 50: !endif
1.1 root 51:
1.1.1.3 ! root 52: CC = cl
! 53: CFLAGS = /c /Gd /W3 $(DEBUGFLAGS) $(MFCFLAGS)
! 54:
! 55: CPP = cl
! 56: CPPFLAGS = /c /Gd /W3 $(DEBUGFLAGS) $(MFCFLAGS)
1.1 root 57:
58: !if "$(PCH)" != ""
59: CPPFLAGS=$(CPPFLAGS) /Yu$(PCH)
60: !endif
61:
62: !if "$(DEBUG)" == "1"
1.1.1.2 root 63: LINKDEBUG = -debug:full -debugtype:cv
1.1 root 64: !else
1.1.1.3 ! root 65: LINKDEBUG = -debug:none
1.1 root 66: !endif
1.1.1.3 ! root 67: LINK = link32 $(LINKDEBUG)
! 68: LIB32 = lib32
1.1 root 69:
70: # link flags - must be specified after $(link)
71: #
72: # conflags : creating a character based console application
73: # guiflags : creating a GUI based "Windows" application
1.1.1.3 ! root 74: #
1.1 root 75:
76: CONFLAGS = -subsystem:console -entry:mainCRTStartup
1.1.1.3 ! root 77: GUIFLAGS = -subsystem:windows -entry:WinMainCRTStartup
1.1 root 78:
79: # Link libraries - system import and C runtime libraries
80: #
81: # conlibs : libraries to link with for a console application
82: # guilibs : libraries to link with for a "Windows" application
1.1.1.3 ! root 83: # guilibsdll : libraries to link for an MFC DLL
1.1 root 84: #
85:
1.1.1.3 ! root 86: CONLIBS = libc.lib kernel32.lib netapi32.lib
1.1 root 87:
1.1.1.3 ! root 88: GUILIBS = libc.lib kernel32.lib user32.lib gdi32.lib \
1.1.1.2 root 89: winspool.lib comdlg32.lib advapi32.lib olecli32.lib olesvr32.lib \
90: shell32.lib
1.1 root 91:
1.1.1.3 ! root 92: GUILIBSDLL = $(GUILIBS)
! 93:
! 94: .SUFFIXES: .cpp
! 95:
1.1 root 96: .cpp.obj :
1.1.1.2 root 97: $(CPP) $(CPPFLAGS) $*.cpp
1.1 root 98:
99: .c.obj :
1.1.1.2 root 100: $(CC) $(CFLAGS) $(CVARS) $*.c
1.1 root 101:
102: .rc.res :
1.1.1.2 root 103: rc /r /fo $*.tmp $<
1.1.1.3 ! root 104: cvtres -$(CPU) $*.tmp -o $*.res
1.1 root 105: del $*.tmp
1.1.1.3 ! root 106:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.