COBJS=filein_utils.o random.o real2string.o strings.o tty_utils.o
OCCOBJS=filein_utils.tco random.tco real2string.tco strings.tco tty_utils.tco
CLIB=libex.a

RANLIB=ranlib

.SUFFIXES: .occ
.occ.o:
	kroc -c $<

all: $(CLIB)

build: $(CLIB)

$(CLIB): $(COBJS)
	-rm -f $(CLIB)
	ar rc $@ $(COBJS)
	@if [ "X$(RANLIB)" != "X" ]; then \
	  echo Running $(RANLIB) on $@; \
	  $(RANLIB) $@; \
	fi

clean:
	-$(RM) -f $(CLIB) $(COBJS) $(OCCOBJS) *.kt8 *.s *.o *.tco *~ core

install:
	@echo "Nothing to install"

