# makefile for library

OBJS		= readline.o writen.o
LIB		= liblineio.a
ARCH		= ar
CFLAGS		= -O -DONE_AT_A_TIME
AFLAGS		= rvs

.c.o:
	$(CC) -c $(CFLAGS) $<

$(LIB):		$(OBJS)
	$(ARCH) $(AFLAGS) $(LIB) $?

$(OBJS):	../inet.h
#
#	overhead stuff
#
tidy:
	rm -f *.o

clean:
	rm -f *.[ao]
#
#	o/s dependent rules
#
# Linux - Slackware 2.3, 1.2.13 kernel
linux:
	$(MAKE) $(LIB) CFLAGS="-O2 -fno-strength-reduce"
