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

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

# define the database mechanisms available for map & alias lookups:
#	-DNDBM -- use new DBM
#	-DNEWDB -- use new Berkeley DB
# The really old (V7) DBM library is no longer supported.
#
MAPDEF=	 -DNDBM

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

# 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 makemap binary (usually /usr/sbin or /usr/etc)
BINDIR=	${DESTDIR}/usr/etc

# additional .o files needed
OBJADD=	



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

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

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

LINKS=	${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq

ALL=	makemap makemap.0

all: ${ALL}

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

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

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

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

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

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

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