# Do not edit this file!
# It is autogenerated by "makeconfig" and will be overwritten next time!
# If you want to change some values, so do it in "makeconfig".

all: config.cache .
	cd src; make

install: config.cache .
	sh install SOLARIS2

config: 
	sh ./makeconfig

config.cache: makeconfig
	sh ./makeconfig
	
clean:
	rm -f sendfile-*zip sendfile-*tar.gz config.cache config.log *~ */*~
	cd src; make clean
	
wc:
	@cd src; wc -cl \
	  sendfile.c sendfiled.c sendmsg.c receive.c utf7encode.c \
	  string.[ch] utf7.[ch] pstring.[ch] message.[ch] peername.[ch] \
	  io.[ch] net.[ch] address.[ch] spool.[ch] reply.[ch] \
	  getdate.c snprintf.c bsd.h ../install ../makeconfig \
	  ../etc/check_sendfile ../etc/sf_cleanup ../etc/nosendfile \
	  ../etc/sendfile.cf

dist: clean
	@mkdir sendfile-1.6
	@tar cf - `cat FILES` | (cd sendfile-1.6; tar xf - )
	@cp -r ../support/xhoppel sendfile-1.6/
	@cd sendfile-1.6/xhoppel; make clean
	zip -r sendfile-1.6.zip sendfile-1.6
	tar cvf - sendfile-1.6 | gzip > sendfile-1.6.tar.gz
	@rm -rf sendfile-1.6
	@ls -l sendfile-1.6.tar.gz sendfile-1.6.zip

floppy: clean
	tar cvzf /dev/fd0 .; tar czf /tmp/sf.tgz .
	@echo "insert a new disk and press enter"; read dummy
	mformat a:; mcopy /tmp/sf.tgz a:; rm -f /tmp/sf.tgz

