# This line allows NMAKE to work as well

all: bind_col.exe

# Update the resource if necessary

bind_col.res: bind_col.rc bind_col.h
    rc -r bind_col.rc

# Update the object file if necessary

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

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

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

bind_col.exe: bind_col.res
    rc bind_col.res
