##
# Makefile: Directions for building the OPIE library.
#
# Portions of this software are Copyright 1996 by Craig Metz, All Rights
# Reserved. The Inner Net Copyright Notice and License Agreement applies to
# these portions of the software.
#
# Portions of this software are Copyright 1995 by Randall Atkinson and Dan
# McDonald, All Rights Reserved. All Rights under this copyright are assigned
# to the U.S. Naval Research Laboratory (NRL). The NRL Copyright Notice and   
# License Agreement applies to this software.   
#
#	History:
#
#	Modified by cmetz for OPIE 2.22. Added passwd.o and newseed.o.
#	Modified by cmetz for OPIE 2.2. -D_OPIE=1. Pass flags properly.
#	    Renamed all the files to remove ^opie. Many changes in file
#           names. Obseleted a few functions.
#       Created at NRL for OPIE 2.2 from top-level Makefile.source.

LIBOBJS=md4c.o md5c.o atob8.o btoa8.o challenge.o getsequence.o hash.o \
	keycrunch.o lock.o lookup.o newseed.o passcheck.o passwd.o \
	randomchallenge.o readpass.o unlock.o verify.o version.o btoe.o \
	accessfile.o generator.o insecure.o pututmpentry.o getutmpentry.o 

CFLAGS=$(CFL) -I..

all: libopie.a

config: 
	@if test -z "$(CFL)"; then echo "Did you read the README file?"; exit 1; fi

libopie.a: config $(LIBOBJS)
	ar r libopie.a $(LIBOBJS)
	$(RANLIB) libopie.a || /bin/true

clean:
	-rm -f *.o libopie.a

realclean: clean
	-rm -f *~ core* "\#*\#" 
