CFLAGS	= -g #-Wall 
KFLAGS 	= -R
OBJS	= local.o

INCLUDES = $(INC_PATH)
LIBS	= $(LIB_PATH)

all: build archive

build: kobjs objs

$(KOBJS):
	$(KLIC) -c $(KFLAGS) $(INCLUDES) $(KSRCS);

kobjs: $(KOBJS)

objs: local.c local.h
	$(CC) -c $(CFLAGS) $(INCLUDES) $(LIBS) local.c

test:	

archive:
	ar rcv $(ROOT)/lib/libbss.a $(OBJS);\
        cp ./*.h $(ROOT)/include;

clean:
	rm -f *.o  atom.[ch] funct.[ch]  *.db  core
