
#ident	"@(#)Makefile	1.3	94/03/10 SMI"

TOP=../..

include $(TOP)/Makefile.master

CFILES= bst.c
CFLAGS= -D_KERNEL -DBST_DEBUG
CFLAGS += -D$(INST) $(ENVCPPFLAGS1) $(ENVCPPFLAGS2)
HEADERS= bst_def.h
OBJS= bst.o

.KEEP_STATE:

deflt:	bst

bst:	bst.o
	ld -r -o bst bst.o

bst.o:	bst.c $(HEADERS)
	${CC} -c ${CFLAGS} -I. bst.c

clean:
	-@rm -f *% *.BAK $(OBJS)
	-@sccs clean


lint:
	lint ${CFLAGS} -x -u $(CFILES)

DDICT_FILES= ${OBJS:%.o=%.ddict}
DDICTFLAGS += -D_USCSI -q $(K_CFLAGS) -r2.4

ddict: $(DDICT_FILES)
 
${DDICT_FILES}:
	@($(LHEAD) $(DDICT) $(DDICTFLAGS) $(@:%.ddict=%.c)))
