# Update the resource if necessary

demo7.res: demo7.rc demo7.h
    rc -r demo7.rc

# Update the object file if necessary

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

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

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

demo7.exe: demo7.res
    rc demo7.res


