Annotation of mstools/samples/comm/makefile, revision 1.1.1.3

1.1       root        1: # Windows-32 TTY Example
1.1.1.2   root        2: # Copyright (c) 1992 by Microsoft Corporation
1.1       root        3: 
1.1.1.2   root        4: !IF "$(CPU)" != ""
                      5: OS=NT
                      6: ENV=WIN32
                      7: !ELSE
                      8: OS=DOS
                      9: ENV=WIN16
                     10: !ENDIF
                     11: 
                     12: # If this generates the error "Unable to open DOSWIN16.MAK" then you need
                     13: # to put a copy of that file (from the GENERIC sample code directory)
                     14: # into a directory on your INCLUDE environment variable
                     15: 
                     16: !include <$(OS)$(ENV).MAK>
                     17: 
                     18: proj = TTY
                     19: 
                     20: all: $(proj).exe
                     21: 
                     22: # Update the resource if necessary
                     23: $(proj).res: $(proj).rc resource.h
                     24:     rc -r -fo $(proj).res $(cvars) $(proj).rc
                     25: !IFDEF CPUTYPE
                     26:     cvtres -$(CPU) $(proj).res -o $(proj).rbj
                     27: !ENDIF
                     28: 
                     29: 
                     30: # Update the object file if necessary
                     31: $(proj).obj: $(proj).c $(proj).h
                     32:     $(cc) $(cdebug) $(cflags) $(cvars) $(proj).c
                     33: 
                     34: # Since the link line has some severe differences depending on what
                     35: # platform we are running on, we need to special case this so that
                     36: # we execute the correct commands:
                     37: 
                     38: $(proj).exe: $(proj).obj $(proj).res $(proj).def
                     39: !IFDEF CPUTYPE
                     40: # This is for Windows NT:
1.1.1.3 ! root       41:     $(link) $(linkdebug) $(guiflags) $(proj).obj  $(guilibs) VERSION.LIB $(proj).rbj -out:$(proj).exe
1.1.1.2   root       42: !ENDIF
                     43: !IFNDEF CPUTYPE
                     44: # This is for Windows DOS:
                     45:     $(link) $(guiflags) $(proj).obj $(guilibs) $(proj).DEF
                     46:     rc $(proj).res
                     47: !ENDIF
1.1       root       48: !include  <ntwin32.mak>

unix.superglobalmegacorp.com

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