# MAKEFILE for BTN-TAPE v3.0 using SAS/C v6
#
# This makefile is for both the BTN handler and TAPEMON.
# To make BTN-HANDLER, type: "smake"
# To make TAPEMON,     type: "smake tapemon"

CFLAGS= nostkchk saveds data=near cpu=any ansi strmer uchar parm=r noicons
LIBS= LIB:sc.lib
# DEB= define=DBUG

#-------------------------------- BTN ---------------------------------------

btn-handler : btn.o btnio.o
   slink FROM btn.o+btnio.o TO $@ SC SD LIB $(LIBS)

btn.o : btn.c btn.h tplink.h
    sc $(CFLAGS) $(DEB) btn.c

btnio.o : btnio.c btn.h
    sc $(CFLAGS) $(DEB) btnio.c

#------------------------------- TAPEMON ------------------------------------

tapemon : tapemon.o
    slink FROM LIB:c.o+tapemon.o TO $@ SC SD LIB $(LIBS)

tapemon.o : tapemon.c tplink.h
    sc ansi strmer uchar   tapemon.c

#
