!include <ntwin32.MAK>

my_lib = winmm.lib

all: playsnd.exe

# Update the help file if necessary
playsnd.hlp : playsnd.rtf
    $(hc) $(hcopts) playsnd.hpj

# Update the resource if necessary
playsnd.res: playsnd.rc sounddlg.dlg sounddlg.h about.dlg playsnd.ico
    $(rc) $(rcvars) -r playsnd.rc

# Update the object files if necessary

playsnd.obj: playsnd.c playsnd.h
    $(cc) $(scall) $(cflags) $(cvars) $(cdebug) playsnd.c

sound.obj: sound.c playsnd.h
    $(cc) $(scall) $(cflags) $(cvars) $(cdebug) sound.c

res.obj: res.c playsnd.h
    $(cc) $(scall) $(cflags) $(cvars) $(cdebug) res.c

init.obj: init.c playsnd.h
    $(cc) $(scall) $(cflags) $(cvars) $(cdebug) init.c

help.obj: help.c playsnd.h
    $(cc) $(scall) $(cflags) $(cvars) $(cdebug) help.c

file.obj: file.c playsnd.h
    $(cc) $(scall) $(cflags) $(cvars) $(cdebug) file.c

debug.obj: debug.c playsnd.h
    $(cc) $(scall) $(cflags) $(cvars) $(cdebug) debug.c

about.obj: about.c playsnd.h
    $(cc) $(scall) $(cflags) $(cvars) $(cdebug) about.c

playsnd.exe: playsnd.obj playsnd.res playsnd.def playsnd.hlp sound.obj res.obj init.obj help.obj file.obj debug.obj about.obj
    $(link) $(linkdebug) $(conflags) playsnd.obj playsnd.res sound.obj res.obj init.obj help.obj file.obj debug.obj about.obj $(my_lib) $(guilibs) -out:playsnd.exe
