# WinQuery - Microsoft Make utility, Make file for winquery.c a SQL Server,
# Microsoft Windows, version 3.0 demo program.
#
#            Copyright (C) 1990 Microsoft Corp.
#
# Standard Windows make file.  The utility NMAKE.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 the executable file if necessary, and if so, add the resource back in.
# The /NOE must be included when linking with Windows libraries.

winquery.exe: winquery.obj winutil.obj winquery.def winquery.res
    link winquery+winutil,,,w3dblib+libw+commdlg+mlibcew /NOE /NOD,winquery.def;
    rc -t winquery.res

# Update the resource if necessary

winquery.res: winquery.rc winquery.h windlg.dlg windlg.h
    rc -r winquery.rc

# Update the object file if necessary

winquery.obj: winquery.c winquery.h
    cl -W3 -AM -c -Gsw -Os -Fowinquery.obj -Zpe winquery.c

winutil.obj: winutil.c winutil.h
    cl -W3 -AM -c -Gsw -Os -Fowinutil.obj -Zpe winutil.c
