# This line allows NMAKE to work as well

all: form.exe

# Update the resource if necessary

form.res: form.rc form.h
    rc -r form.rc

# Update the object file if necessary

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

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

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

form.exe: form.res
    rc form.res
