#
# Lmkfile for boopsi button class and sas/c 6.2
#
# Written by Douglas Keller
#

FILE     = test
CFLAGS   = uchar strmer parm=r data=fo opt
LINKFLAGS= SC SD NOICONS VERBOSE
LIBS     = lib:scnb.lib lib:small.lib lib:debug.lib
OBJS     = test.o buttonclass.o

.c.o:
	@echo "sc dbg=s nostkchk $(CFLAGS) gst=headers.gst $*.c"
	@sc dbg=s nostkchk $(CFLAGS) gst=headers.gst $*.c

.h.gst:
	@echo "sc dbg=s $(CFLAGS) noobjname mgst=headers.gst make_gst.c"
	@sc dbg=s $(CFLAGS) noobjname mgst=headers.gst make_gst.c

$(FILE):  headers.gst $(OBJS) lmkfile
	@SLINK <WITH <
		ND
		TO $(FILE) FROM lib:c.o $(OBJS) LIBRARY $(LIBS) $(LINKFLAGS)
		MAP test.map,h
		<

dist:
	lha a ram:butclass buttonclass.\#? changes.doc headers.h lmkfile make_gst.c test test.c i:buttonclass.h

test.o: test.c i:buttonclass.h
buttonclass.o: buttonclass.c i:buttonclass.h
