# This Makefile is automatically generated.  Do NOT edit it here.
######################################################################
# variables set by Configure
######################################################################
CC	= gcc
CFLAGS	= -I/usr/local/src/net/qi/include  -g -I/usr/include/kerberosIV -g
LFLAGS	= 
######################################################################
# other variables
######################################################################
SRCS	=\
    add.c auth.c bintree.c change.c commands.c conf.c cryptit.c \
    dbd.c dbi.c dbm.c field.c help.c lock.c lookup.c \
    phoneme.c qi.c query.c rules.c set.c version.c
OBJS	=\
    add.o auth.o bintree.o change.o commands.o conf.o cryptit.o \
    dbd.o dbi.o dbm.o field.o help.o lex.yy.o lock.o lookup.o \
    phoneme.o qi.o query.o rules.o set.o version.o
BINS	= qi

all:$(BINS) /usr/local/src/net/qi/lib/libqi.a
######################################################################
# specific targets
######################################################################
qi	: $(OBJS) main.o /usr/local/src/net/qi/lib/libu.a
	$(CC) $(LFLAGS) -o qi main.o $(OBJS) /usr/local/src/net/qi/lib/libu.a -ll -lkrb -ldes
	chmod 770 $@

/usr/local/src/net/qi/lib/libqi.a : $(OBJS)
	rm -f $@
	ar crv $@ $(OBJS)
	ranlib $@

lex.yy.c: language.l
	cp language.l temp.l  
	/usr/old/lex temp.l
	perl -i -p -e 's/YYLMAX 200/YYLMAX 4096/;' lex.yy.c
lex.yy.o: ../include/commands.h
######################################################################
# standard targets
######################################################################
install:$(BINS)
	for b in $? ; do \
	  install -c -m 0755 -o paul -g  source $$b /var/nameserv/bin; done
	touch install

rcs:	$(SRCS) language.l
	ci $?
	touch rcs

clean:
	rm -f $(BINS) $(OBJS) /usr/local/src/net/qi/lib/libqi.a tags LINT lex.yy.c temp.l main.o install

depend: 
	perl -i -e 'while(<>){print;if (/^# DO NOT DELETE/) {last;}}' Makefile
	$(CC) -M $(CFLAGS) $(SRCS) >> Makefile
# DO NOT DELETE THIS LINE.

