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

1.1       root        1: # Makefile : Builds the ctrltest application
                      2: #
                      3: # Usage:     NMAKE option (build Multipad)
                      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: 
                     19: 
                     20: OBJS=ctrltest.obj paredit.obj \
                     21:        dertest.obj wclstest.obj paredit2.obj subtest.obj \
                     22:        bbutton.obj custlist.obj custmenu.obj \
                     23:        spintest.obj spin.obj
                     24: 
1.1.1.2 ! root       25: !ifdef WIN16MFC
        !            26: #!message compiling for WIN16
        !            27: 
1.1       root       28: OBJS = $(OBJS) derpen.obj dlgpen.obj featpen.obj 
                     29: !endif
                     30: 
                     31: PCH=ctrltest.h
                     32: 
1.1.1.2 ! root       33: !ifdef WIN16MFC
        !            34: #!message compiling for WIN16
        !            35: 
1.1       root       36: # program uses Win31 #defines, but not any Win31 library entries (i.e. rc -30)
                     37: CPPFLAGS= /AM /W3 /Zp /GA /GEs /G2 /Yu$(PCH) 
                     38: LINKFLAGS=/NOD /ONERROR:NOEXE
                     39: 
                     40: !if "$(DEBUG)"=="1"
                     41: CPPFLAGS=/D_DEBUG $(CPPFLAGS) /Od /Zi /f
                     42: LINKFLAGS=$(LINKFLAGS) /COD
                     43: LIBS=mafxcwd libw commdlg mlibcew
                     44: !else
                     45: CPPFLAGS=$(CPPFLAGS) /Oselg /Gs
                     46: LINKFLAGS=$(LINKFLAGS)
                     47: LIBS=mafxcw libw commdlg mlibcew
                     48: !endif
                     49: 
                     50: ctrltest.exe: ctrltest.res ctrltest.def $(OBJS)
                     51:        link $(LINKFLAGS) @<<
                     52: $(OBJS),
                     53: ctrltest,
                     54: NUL,
                     55: $(LIBS),
                     56: ctrltest.def;
                     57: <<
                     58:        rc -30 /k /t ctrltest.res
                     59: 
                     60: !else
                     61: 
                     62: !include ..\ntsample.mak
                     63: 
                     64: ctrltest.exe: ctrltest.def ctrltest.res $(OBJS)
                     65:     $(LINK) $(GUIFLAGS) -out:ctrltest.exe $(OBJS) ctrltest.res $(MFCLIB) $(GUILIBS)
                     66: 
                     67: !endif
                     68: 
                     69: ctrltest.obj : ctrltest.cpp ctrltest.h
                     70:        $(CC) $(CPPFLAGS) /Yc$(PCH) /c ctrltest.cpp
                     71: 
                     72: *.obj:  ctrltest.h $(PCH)
                     73: ctrltest.res:  *.ico *.dlg ctrltest.h
                     74: 
                     75: clean:
                     76:        -erase ctrltest.exe
                     77:        -erase ctrltest.res
                     78:        -erase ctrltest.pch
                     79:        -erase *.obj

unix.superglobalmegacorp.com

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