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

#
#  This Makefile is designed to work on the old "make" program.
#
#	@(#)Makefile.m4	8.10	(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=	

# include directories
INCDIRS=-I${SRCDIR} 

# loader options
LDOPTS=	

# library directories
LIBDIRS=

# libraries required on your system
LIBS=	 

# location of smrsh binary (usually /usr/libexec or /usr/etc)
BINDIR=	${DESTDIR}/usr/lib

# additional .o files needed
OBJADD=	



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

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

BEFORE= dirent.h
OBJS=	smrsh.o ${OBJADD}

ALL=	smrsh smrsh.0

all: ${ALL}

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


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


# Which *roff program has -mandoc support
NROFF=	groff -Tascii
MANDOC=	-mandoc

smrsh.0: smrsh.8
	${NROFF} ${MANDOC} smrsh.8 > smrsh.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-smrsh install-docs

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

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

clean:
	rm -f ${OBJS} smrsh smrsh.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
