SRCA    = rtAllocRequest.asm rtAllocRequestA.asm rtChangeReqAttr.asm\
          rtChangeReqAttrA.asm rtEZRequest.asm rtEZRequestA.asm\
          rtEZRequestTags.asm rtFileRequest.asm rtFileRequestA.asm\
          rtFontRequest.asm rtFontRequestA.asm rtFreeFileList.asm\
          rtFreeReqBuffer.asm rtFreeRequest.asm rtGetLong.asm\
          rtGetLongA.asm rtGetString.asm rtGetStringA.asm\
          rtGetVScreenSize.asm rtPaletteRequest.asm rtPaletteRequestA.asm\
          rtReqHandler.asm rtReqHandlerA.asm rtScreenToFrontSafely.asm\
          rtSetReqPosition.asm rtSetWaitPointer.asm rtSpread.asm

SRCR    = rtAllocRequest.asm rtAllocRequestAR.asm rtChangeReqAttr.asm\
          rtChangeReqAttrAR.asm rtEZRequest.asm rtEZRequestA.asm\
          rtEZRequestTags.asm rtFileRequest.asm rtFileRequestAR.asm\
          rtFontRequest.asm rtFontRequestAR.asm rtFreeFileListR.asm\
          rtFreeReqBufferR.asm rtFreeRequestR.asm rtGetLong.asm\
          rtGetLongAR.asm rtGetString.asm rtGetStringA.asm\
          rtGetVScreenSizeR.asm rtPaletteRequest.asm rtPaletteRequestAR.asm\
          rtReqHandler.asm rtReqHandlerAR.asm rtScreenToFrontSafelyR.asm\
          rtSetReqPositionR.asm rtSetWaitPointerR.asm rtSpread.asm

OBJS   = $(SRCA:"*.asm":"*.o")
OBJR   = $(SRCR:"*.asm":"*r.o")

all: reqtools reqtool

reqtools : $(OBJS)
    join %(right) to %(left)s.lib
    Delete $(OBJS) quiet

$(OBJS) : $(SRCA)
    Das -o%(left) %(right)

reqtool : $(OBJR)
    join %(right) to %(left)ssr.lib
    Delete $(OBJR) quiet

$(OBJR) : $(SRCR)
    Das -o%(left) %(right)
