# Makefile for BSMTP programs...
#
# Author: David Herron <david@ms.uky.edu>
#	University of Kentucky, CS Dept.
#	Patterson Office Tower, Room 915
#	Lexington, KY  40506-0027
#
# (C) Copyright 1987,
#     David Herron and the University of Kentucky Computer Science Dept.
# 
# Rights are granted to use, distribute, modify, and distribute
# modifications of this work, provided that you subscribe to
# bsmtp-users@ms.uky.edu and describe there any modifications you 
# make.
#
# Tue Apr 21 15:38:29 EST 1987

DESTDIR=/usr/lib/rscs

all: ibsmtp

install: all $(DESTDIR)/ibsmtp

$(DESTDIR)/ibsmtp: ibsmtp
	rm -f $(DESTDIR)/ibsmtp
	cp ibsmtp $(DESTDIR)/ibsmtp
ibsmtp: ibsmtp.o
	cc ibsmtp.o -o ibsmtp $(LDFLAGS)
ibsmtp.o: ibsmtp.c
	cc -c ibsmtp.c $(CFLAGS)

notes:
	@echo

clean:
	rm -f *.o ibsmtp obsmtp a.out core

uninstall:
	rm -f $(DESTDIR)/ibsmtp

# "addman" is a local command which basically copies the named
# file to /usr/man/manl ... but takes care of doing it right
# when we're doing it from the "wrong" host and it would fail
# due to the NFS.
doc:
	addman ibsmtp.1 1
