# This line allows NMAKE to work as well

all: winplay.exe

# Update the resource if necessary

winplay.res: winplay.rc winplay.h
    rc -r winplay.rc

# Update the object file if necessary

winplay.obj: winplay.c winplay.h
	cl -c -W3 -AS -Gsw -Oas -Zpe winplay.c

#filepen.obj: fileopen.c winplay.h
#	cl -c -W3 -AS -Gsw -Oas -Zpe fileopen.c

# Update the executable file if necessary, and if so, add the resource back in.

winplay.exe: winplay.obj winplay.def
	link /NOD winplay,,, libw slibcew, winplay.def
    rc winplay.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.

winplay.exe: winplay.res
    rc winplay.res
