# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1983 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile.m4 5.9 (Berkeley) 10/24/85
OBJS1= conf.o main.o collect.o parseaddr.o alias.o deliver.o \
savemail.o err.o readcf.o stab.o headers.o recipient.o \
stats.o daemon.o usersmtp.o srvrsmtp.o queue.o \
macro.o util.o clock.o trace.o envelope.o
OBJS2= sysexits.o arpadate.o convtime.o
SRCS1= conf.h sendmail.h \
conf.c deliver.c main.c parseaddr.c err.c alias.c savemail.c \
sysexits.c util.c arpadate.c version.c collect.c \
macro.c headers.c readcf.c stab.c recipient.c stats.c daemon.c \
usersmtp.c srvrsmtp.c queue.c clock.c trace.c envelope.c
SRCS= Version.c $(SRCS1) $(SRCS2)
CCONFIG=-I../include -DVMUNIX
CFLAGS= $O $(COPTS) $(CCONFIG)
ASMSED= ../include/asm.sed
INSTALL=install -c -s -o root
sed -f $(ASMSED) $*.s | as -o $*.o
sendmail: $(OBJS1) $(OBJS2) Version.o
$(CC) $(COPTS) -o sendmail Version.o $(OBJS1) $(OBJS2) $(LIBS)
$(CHMOD) $(OBJMODE) sendmail
size sendmail; ls -l sendmail;
$(INSTALL) -m 4755 sendmail $(DESTDIR)/usr/lib
chgrp kmem $(DESTDIR)/usr/lib/sendmail
$(CP) /dev/null $(DESTDIR)/usr/lib/sendmail.fc
version: newversion $(OBJS) Version.c
@rm -f SCCS/p.version.c version.c
@$(GET) $(REL) -e SCCS/s.version.c
@$(DELTA) -s SCCS/s.version.c
@$(GET) -t -s SCCS/s.version.c
fullversion: $(OBJS) dumpVersion Version.o
sendmail.h util.o: ../include/useful.h
# Auxiliary support entries
rm -f core sendmail rmail usersmtp uucp a.out XREF sendmail.cf
@ls -l | pr -h "sendmail directory"
@$(XREF) *.c | pr -h "cross reference listing"
@size *.o | pr -h "object code sizes"
@pr Makefile *.m4 *.h *.[cs]
$(LINT) $(CCONFIG) $(SRCS1)