Annotation of mstools/mfc/samples/ntsample.mak, revision 1.1.1.2

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.2 ! root       12: DLLENTRY = @12
        !            13: 
1.1       root       14: !ifdef CONSOLE
                     15: MFCFLAGS=/D_NTWIN /Di386=1
                     16: !else
                     17: MFCFLAGS=/D_NTWIN /D_WINDOWS /DWINVER=0x030a /Di386=1
                     18: !endif
                     19: 
                     20: !ifdef CONSOLE
                     21: !if "$(DEBUG)" == "1"
1.1.1.2 ! root       22: MFCLIB = nafxcrd.lib
        !            23: DEBUGFLAGS = /Zi /Od /D_DEBUG
1.1       root       24: !else
1.1.1.2 ! root       25: MFCLIB = nafxcr.lib
1.1       root       26: DEBUGFLAGS = /Otx /Gs 
                     27: !endif
                     28: !else
                     29: !if "$(DEBUG)" == "1"
1.1.1.2 ! root       30: MFCLIB = nafxcwd.lib
        !            31: DEBUGFLAGS = /Zi /Od /D_DEBUG
1.1       root       32: !else
1.1.1.2 ! root       33: MFCLIB = nafxcw.lib
1.1       root       34: DEBUGFLAGS = /Otx /Gs
                     35: !endif
                     36: !endif
                     37: 
                     38: CC = cl386 
                     39: CFLAGS = /c /G3d /W3 $(DEBUGFLAGS) $(MFCFLAGS)
                     40: 
                     41: CPP = cl386
                     42: CPPFLAGS = /c /G3d /W3 $(DEBUGFLAGS) $(MFCFLAGS)
                     43: 
                     44: !if "$(PCH)" != ""
                     45: CPPFLAGS=$(CPPFLAGS) /Yu$(PCH)
                     46: !endif
                     47: 
                     48: !if "$(DEBUG)" == "1"
1.1.1.2 ! root       49: LINKDEBUG = -debug:full -debugtype:cv
1.1       root       50: !else
                     51: LINKDEBUG = 
                     52: !endif
1.1.1.2 ! root       53: LINK = link $(LINKDEBUG)
1.1       root       54: 
                     55: # link flags - must be specified after $(link)
                     56: #
                     57: # conflags : creating a character based console application
                     58: # guiflags : creating a GUI based "Windows" application
                     59: 
                     60: CONFLAGS =  -subsystem:console -entry:mainCRTStartup
                     61: GUIFLAGS =  -subsystem:windows -entry:WinMainCRTStartup
                     62: 
                     63: # Link libraries - system import and C runtime libraries
                     64: #
                     65: # conlibs : libraries to link with for a console application
                     66: # guilibs : libraries to link with for a "Windows" application
                     67: #
                     68: 
1.1.1.2 ! root       69: CONLIBS = libc.lib ntdll.lib kernel32.lib netapi32.lib
1.1       root       70: 
1.1.1.2 ! root       71: GUILIBS = libc.lib ntdll.lib kernel32.lib user32.lib gdi32.lib \
        !            72:        winspool.lib comdlg32.lib advapi32.lib olecli32.lib olesvr32.lib \
        !            73:        shell32.lib
1.1       root       74: 
                     75: .SUFFIXES : .cpp
                     76: .cpp.obj :
1.1.1.2 ! root       77:        $(CPP) $(CPPFLAGS) $*.cpp
1.1       root       78: 
                     79: .c.obj :
1.1.1.2 ! root       80:        $(CC) $(CFLAGS) $(CVARS) $*.c
1.1       root       81: 
                     82: .rc.res :
1.1.1.2 ! root       83:        rc /r /fo $*.tmp $<
1.1       root       84:     cvtres -i386 $*.tmp -o $*.res
                     85:     del $*.tmp

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.