OBJ=tam.obj message.obj play.obj async.obj
COPT=-c -AM -GAs -Od  -Zpei -W4 -I\l\tdk\inc
LIBS=libw mlibcew mmsystem tapi oldnames

all: tam.exe

# Update the resource if necessary

tam.res: tam.rc tam.h
    rc -r tam.rc

# Update the object file if necessary

tam.obj: tam.c tam.h
    cl $(COPT) tam.c

message.obj: message.c tam.h
    cl $(COPT) message.c

play.obj: play.c
    cl $(COPT) play.c

async.obj: async.c
    cl $(COPT) async.c

tam.exe: $(OBJ) tam.def tam.res
    link /NOD /CO $(OBJ),,, $(LIBS), tam.def
    rc tam.res

