#
# All of these except Puthead are in lsep, but these are what are needed
# to make non-sep-libbed versions of the program fly if you don't have
# lsep, like on erebus.
#

SFILES= Puthead.c doc.c err.c sepwhere.c
FILES= geth.c getch_.c getpar.c getpar_decode.c\
		getpar_scan.c getpar_string_store.c puth.c alloc.c\
		fsize.c file.c err.c bufpar.c

all: loclib.a tseplib.a

tseplib.a: $(SFILES)
	rm -f *.o
	cc -c $(CFLAGS) $?
	ar cr tseplib.a *.o
	ranlib tseplib.a
	rm -f *.o

loclib.a:  $(FILES)
	rm -f *.o
	cc -c $(CFLAGS) $?
	ar cr loclib.a *.o
	ranlib loclib.a
	rm -f *.o

getpar_scan.c: getpar_scan.l
	lex getpar_scan.l
	mv lex.yy.c getpar_scan.c

clean:
	rm -f *.o getpar_scan.c tseplib.a loclib.a
