
####################################################################
##### This file is automatically generated -- edit at your own risk
##### Built by root@aegis
##### on Thu Jun 18 22:30:46 GMT+9:00 1998 using template OS/DomainOS
##### in //hilts/win5/PDS/sendmail/sendmail-8.9.0/rmail
####################################################################

#
#  This Makefile is designed to work on the old "make" program.
#
#	@(#)Makefile.m4	8.12	(Berkeley)	5/13/98
#

# C compiler
CC=	cc -A nansi -A,systype,bsd4.3 -A,runtype,bsd4.3

# Shell
SHELL=	/bin/sh

# use O=-O (usual) or O=-g (debugging)
O=	-O

# location of sendmail source directory
SRCDIR=	../../src

# environment definitions (e.g., -D_AIX3)
ENVDEF=	

# see also conf.h for additional compilation flags

# include directories
INCDIRS=-I${SRCDIR} 

# loader options
LDOPTS=	

# library directories
LIBDIRS=

# libraries required on your system
LIBS=	 

# location of rmail binary (usually /usr/sbin or /usr/etc)
BINDIR=	${DESTDIR}/usr/ucb

# additional .o files needed
OBJADD=	



###################  end of user configuration flags  ######################

BUILDBIN=../../BuildTools/bin
COPTS=	-I. ${INCDIRS} ${ENVDEF}
CFLAGS=	$O ${COPTS}

BEFORE= snprintf.c dirent.h
OBJS=	rmail.o snprintf.o ${OBJADD}

ALL=	rmail rmail.0

all: ${ALL}

rmail: ${BEFORE} ${OBJS}
	${CC} -o rmail ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}

snprintf.c: ${SRCDIR}/snprintf.c
	-ln -s ${SRCDIR}/snprintf.c snprintf.c


dirent.h:
	echo "#include <sys/dir.h>" > dirent.h
	echo "#define dirent	direct" >> dirent.h


NROFF=	groff -Tascii
MANDOC=	-mandoc

rmail.0: rmail.8
	${NROFF} ${MANDOC} rmail.8 > rmail.0

INSTALL=install
BINOWN=	bin
BINGRP=	bin
BINMODE=555

MANOWN=	bin
MANGRP=	bin
MANMODE=444

MANROOT=/usr/share/man/cat
MAN8=	${MANROOT}8
MAN8EXT=8
MAN8SRC=0

install: install-rmail install-docs

install-rmail: rmail
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} rmail ${BINDIR}

install-docs: rmail.0
	${INSTALL} -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} rmail.${MAN8SRC} ${MAN8}/rmail.${MAN8EXT}

clean:
	rm -f ${OBJS} rmail rmail.0

################  Dependency scripts
#	@(#)generic.m4	8.2	(Berkeley)	2/9/98
# dependencies
#   gross overkill, and yet still not quite enough....
${OBJS}: ${SRCDIR}/sendmail.h ${SRCDIR}/conf.h

# give a null "depend" list so that the startup script will work
depend:
#	End of generic.m4
################  End of dependency scripts
