OBJS = addindex.o inplace.o scanpath.o

addindex: $(OBJS) 
	$(CC)  $(LFLAGS) -o addindex $(OBJS) -ll

addindex.c: addindex.lex
	lex  addindex.lex
	mv lex.yy.c addindex.c 

clean:
	-@rm -f core a.out addindex.c *.o addindex *~ *.BAK *.shar

shar: clean
	shar * > addindex.shar