#
# For now, the LITTLE_ENDIAN lfag is required for SHA
#

DEBUG	= -DDEBUG
CFLAGS	= -Wall -g -DTEST -DLITTLE_ENDIAN $(DEBUG)
CC	= gcc
SRVOBJS	= server.o util.o xdr.o sha.o
CLTOBJS	= client.o util.o xdr.o sha.o

all:	rpc.spwauthd spwauthtest

rpc.spwauthd: $(SRVOBJS)
	$(CC) -o $@ $(SRVOBJS)

spwauthtest: $(CLTOBJS)
	$(CC) -o $@ $(CLTOBJS)

distclean clean::
	rm -f rpc.spwauthd spwauthtest $(CLTOBJS) $(SRVOBJS) core
