# This line allows NMAKE to work as well

all: connect.exe

# Update the resource if necessary

connect.res: connect.rc connect.h
    rc -r connect.rc

# Update the object file if necessary

connect.obj: connect.c connect.h
    cl -c -AL -Gsw -Oas -Zpe connect.c

# Update the executable file if necessary, and if so, add the resource back in.

connect.exe: connect.obj connect.def
    link /NOD connect,,, libw llibcew ..\lib\qelib.lib, connect.def
    rc connect.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.

connect.exe: connect.res
    rc connect.res
