include ../Makefile.config

# define NOSPAM if you use nospam! patch

CFLAGS= -I.. $(COPT) -DNOSPAM

MAILHUB=mail

LACKING= # For SunOS 4.1.1, SPARCs and 3/60s

BASEFLAGS=${LOGGING} ${LACKING} -DREWRITE_DOMAIN

# (End of tuning section).

# Uncomment this if you have defined LACKING
#SRCS= ssmtp.c string_ext.c
SRCS= ssmtp.c newio.c

OBJS=$(SRCS:.c=.o)

all: ssmtp

ssmtp: ${OBJS} ../libfwall.a
	$(CC) $(LDFL) -o $@ ssmtp.o newio.o ../libfwall.a $(AUXLIB)
	chmod 755 $@

clean:
	rm -f ssmtp *.o core

install: all
	if [ -f $(DEST)/ssmtp ]; then \
		mv $(DEST)/ssmtp $(DEST)/ssmtp.old; \
	fi
	$(CP) ssmtp $(DEST)
	chmod 755 $(DEST)/ssmtp
