# remove these if you use dmake.
AR=wlib
ARFLAGS=-b -c

#crypt() and getpass() are now found in unix.lib
#and have been removed from this archive

libobj=newsalt.o shadow.o

sample: sample.o pw.a
	$(LD) $(LDFLAGS) -o $@ sample.o -lunix -l pw.a
	@echo "Changing permissions for sample"
	su root -c "chown root $@; chmod a+s $@"

pw.a: $(libobj)
	$(AR) $(ARFLAGS) $@ $?

clean:
	rm -f pw.a sample *.o

ship:
	pax -w < MANIFEST > $@.tar
	echo "$@.tar is the archive"
