
CFLAGS = -g -I/usr/athena/include -I../../src/include -DKERBEROS

OBJS = afs.o server.o sockets.o sfrp.o config.o database.o cmd.o uc.o sauth.o

freeloadd: $(OBJS)
	cc -o freeloadd $(OBJS) -lkrb -ldes -lhesiod -lresolv -L/usr/athena/lib

sauth: sauth.o sauth_test.o
	cc -o sauth_test.o sauth.o -lkrb -ldes -L/usr/athena/lib

links:
	if test -d RCS; then echo "HEY! This is the source directory!"; exit 1; fi; \
	rm -f *.c *.h; \
	for file in ../../src/server/*.c ../../src/server/*.h; do \
 	  ln -s $$file; \
	done

clean:
	rm -f *~ core *.o freeloadd sauth

syslog:
	echo "local4.debug			"`tty` >> /etc/syslog.conf
	kill -HUP `cat /etc/syslog.pid`

unsyslog:
	cp /srvd/etc/syslog.conf /etc/syslog.conf
	kill -HUP `cat /etc/syslog.pid`
