Annotation of mstools/mfc/samples/about2/makefile, revision 1.1.1.2

1.1       root        1: # Makefile : Builds the About2 application
                      2: #
                      3: # Usage:     NMAKE option (build About2)
                      4: #    or:     NMAKE 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: # Based on the About2 application by Charles Petzold.
                     19: # The original application appeared in
                     20: # "Programming Windows", Second Edition (pp. 417-423),
                     21: # Copyright (C) 1990 Charles Petzold,
                     22: # published by Microsoft Press. Used with permission.
                     23: 
                     24: 
                     25: OBJS = about2.obj
                     26: 
1.1.1.2 ! root       27: !ifdef WIN16MFC
        !            28: #!message compiling for WIN16
1.1       root       29: 
                     30: CPPFLAGS=  /DWINVER=0x0300 /AS /W3 /Zp /GA /GEs /G2
                     31: LINKFLAGS=/NOD /ONERROR:NOEXE
                     32: 
                     33: !if "$(DEBUG)"=="1"
                     34: CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /f /Zi
                     35: LINKFLAGS=$(LINKFLAGS) /COD
                     36: LIBS=safxcwd libw slibcew
                     37: !else
                     38: CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
                     39: LINKFLAGS=$(LINKFLAGS)
                     40: LIBS=safxcw libw slibcew
                     41: !endif
                     42: 
                     43: 
                     44: about2.exe:    about2.obj about2.def about2.res
                     45:                link $(LINKFLAGS) about2, about2, NUL, $(LIBS), about2.def;
                     46:                rc -30 /t about2.res
                     47: !else
                     48: !include ..\ntsample.mak
                     49: 
                     50: about2.exe:    $(OBJS) about2.def about2.res
                     51:     $(LINK) $(GUIFLAGS) -out:about2.exe $(OBJS) about2.res $(MFCLIB) $(GUILIBS)
                     52: !endif
                     53: 
                     54: about2.res:     resource.h about2.dlg about2.ico
                     55: 
                     56: about2.obj: about2.h resource.h
                     57: 
                     58: clean:
                     59:                -erase about2.exe
                     60:                -erase about2.res
                     61:                -erase about2.obj

unix.superglobalmegacorp.com

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