# sqlwintm - Microsoft Make utility, Make file for sqlwintm.c a SQL Server,
# Microsoft Windows, version 3.0 demo 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.

# This line allows NMAKE to work as well

all: sqlwintm.res sqlwintm.obj sqlwintm.exe

# Update the resource if necessary

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

# Update the object file if necessary

sqlwintm.obj: sqlwintm.c sqlwintm.h
    cl -Lr -AM -c -Gsw -Oas -Fosqlwintm.obj -Ziple sqlwintm.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.

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

# If the .res file is new and the .exe file is not, update the resource.
# Note that the .rc file can be updated without having to either
# compile or link the file.

sqlwintm.exe: sqlwintm.res
    rc sqlwintm.res
