# MAKEFILE - Microsoft Make utility, Make file for WinPipe.c, a named-pipe,
# Microsoft Windows, version 3.0 test program.
#
#	     Copyright (C) 1990 Microsoft Corp.
#
# Standard Windows make file.  The utility MAKE.EXE compares the
# creation date of the file to the left of the colon with the file(s)
# to the right of the colon.  If the file(s) on the right are newer
# then the file on the left, Make will execute all of the command lines
# following this line that are indented by at least one tab or space.
# Any valid MS-DOS command line may be used.

UPDATE: winpipe.exe

# Update the resource if necessary

winpipe.res: winpipe.rc winpipe.h
    rc -r winpipe.rc

# Update the object file if necessary

winpipe.obj: winpipe.c winpipe.h
    cl -Lr -AM -c -Gsw -Ox -NT_winpipe -Zple winpipe.c

# Update the executable file if necessary, and if so, add the resource back in.
# The /NOE must be included when linking with Windows libraries.

winpipe.exe: winpipe.obj winpipe.def winpipe.res
    link winpipe,,,libw+mlibcew+doslan /CO /NOE,winpipe.def;
    rc winpipe.res
