# Update the resource if necessary

demo6.res: demo6.rc demo6.h
    rc -r demo6.rc

# Update the object file if necessary

demo6.obj: demo6.c demo6.h
    cl -Zi -c -AS -Gsw -Oas -Zpe demo6.c

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

demo6.exe: demo6.obj demo6.def
    link /CODEVIEW /NOD demo6,,, penwin libw slibcew, demo6.def
    rc demo6.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.

demo6.exe: demo6.res
    rc demo6.res


