# 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	= border.c build.c credb.c id.c maked.c \
	  makei.c maket.c mdump.c nsck.c ssnid.c ssnload.c ssndump.c

OBJS	= \
  border.o build.o credb.o id.o \
  maked.o makei.o maket.o mdump.o \
  nsck.o ssnid.o ssnload.o ssndump.o brute2.o

BINS	= \
  border build credb maked	\
  makei mdump nsck ssnid	\
  ssnload ssndump brute

SCRIPTS = addnickname age aliasassign aliasprepare f.unblock \
	froshlog h.unblock merge3 pg phify phoneaddr qierrs \
	s.unblock sizedb zaplist

ALLLIB = /usr/local/src/net/qi/lib/libqi.a /usr/local/src/net/qi/lib/libu.a
all:$(BINS)
######################################################################
# specific targets
######################################################################
brute: brute2.o
	$(CC) $(CFLAGS) -o brute brute2.o
	
build: build.o maket.o $(ALLLIB)
	$(CC) $(CFLAGS) -o build build.o maket.o $(ALLLIB) -ll -lkrb -ldes
	
maked : maked.o $(ALLLIB)
	$(CC) $(CFLAGS) -o maked  maked.o $(ALLLIB) -ll -lkrb -ldes

mdump : mdump.o $(ALLLIB)
	$(CC) $(CFLAGS) -o mdump  mdump.o $(ALLLIB) -ll -lkrb -ldes

nsck : nsck.o ../qi/conf.o $(ALLLIB)
	$(CC) $(CFLAGS) -o nsck  nsck.o $(ALLLIB) -ll -lkrb -ldes

border : border.o
	$(CC) $(CFLAGS) -o border  border.o

ssnid : ssnid.o id.o
	$(CC) $(CFLAGS) -o ssnid  ssnid.o id.o 

ssndump : ssndump.o id.o
	$(CC) $(CFLAGS) -o ssndump  ssndump.o id.o 

ssnload : ssnload.o id.o
	$(CC) $(CFLAGS) -o ssnload  ssnload.o id.o 

makei : makei.o $(ALLLIB)
	$(CC) $(CFLAGS) -o makei  makei.o $(ALLLIB) -ll -lkrb -ldes

credb :	credb.o
	$(CC) $(CFLAGS) -o credb  credb.o $(ALLLIB) -ll -lkrb -ldes

######################################################################
# standard targets
######################################################################
install:$(BINS) $(SCRIPTS)
	for b in $(BINS) $(SCRIPTS) ; do \
	  install -c -m 0755 -o paul -g  source $$b /var/nameserv/bin; done
	touch install

rcs:	$(SRCS)
	ci $?
	touch rcs

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

