17c478bdstevel@tonic-gate#
27c478bdstevel@tonic-gate# CDDL HEADER START
37c478bdstevel@tonic-gate#
47c478bdstevel@tonic-gate# The contents of this file are subject to the terms of the
50ea5e3ajjj# Common Development and Distribution License (the "License").
6445f247jbeck# You may not use this file except in compliance with the License.
77c478bdstevel@tonic-gate#
87c478bdstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bdstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bdstevel@tonic-gate# See the License for the specific language governing permissions
117c478bdstevel@tonic-gate# and limitations under the License.
127c478bdstevel@tonic-gate#
137c478bdstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bdstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bdstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bdstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bdstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bdstevel@tonic-gate#
197c478bdstevel@tonic-gate# CDDL HEADER END
207c478bdstevel@tonic-gate#
21058561cjbeck
227c478bdstevel@tonic-gate#
237c478bdstevel@tonic-gate#  Makefile for configuration files.
247c478bdstevel@tonic-gate#
25d466094jbeck#  Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
267c478bdstevel@tonic-gate#  Use is subject to license terms.
277c478bdstevel@tonic-gate#
287c478bdstevel@tonic-gate#	@(#)Makefile	8.15 (Berkeley) 3/29/98
297c478bdstevel@tonic-gate#
307c478bdstevel@tonic-gate
317c478bdstevel@tonic-gate#
327c478bdstevel@tonic-gate#  Create configuration files using "m4 ../m4/cf.m4 file.mc > file.cf"
337c478bdstevel@tonic-gate#  of "/usr/ccs/bin/make file.cf"; these may be easier than tweaking the
347c478bdstevel@tonic-gate#  Makefile.  Also, updates will over-write any changes to the Makefile.
357c478bdstevel@tonic-gate#  You do need to have a fairly modern M4 available (GNU m4 works).  On
367c478bdstevel@tonic-gate#  Solaris, use /usr/ccs/bin/m4.
377c478bdstevel@tonic-gate#
387c478bdstevel@tonic-gate
397c478bdstevel@tonic-gateM4=	/usr/ccs/bin/m4
407c478bdstevel@tonic-gateCFDIR=	..
417c478bdstevel@tonic-gateMV=	/usr/bin/mv
427c478bdstevel@tonic-gateRM=	/usr/bin/rm -f
437c478bdstevel@tonic-gate
447c478bdstevel@tonic-gate.SUFFIXES:  .mc .cf
457c478bdstevel@tonic-gate
467c478bdstevel@tonic-gate.mc.cf:
477c478bdstevel@tonic-gate	test ! -f $@ || $(MV) $@ $@.prev
487c478bdstevel@tonic-gate	$(M4) ${CFDIR}/m4/cf.m4 $*.mc > $@
497c478bdstevel@tonic-gate
50d466094jbeckALL=	sendmail.cf submit.cf
517c478bdstevel@tonic-gate
527c478bdstevel@tonic-gateall: $(ALL)
537c478bdstevel@tonic-gate
547c478bdstevel@tonic-gateclean cleandir:
55b6805bfGordon Ross	$(RM) $(ALL)
567c478bdstevel@tonic-gate
577c478bdstevel@tonic-gatedepend install: 
587c478bdstevel@tonic-gate
597c478bdstevel@tonic-gate# this is overkill, but....
607c478bdstevel@tonic-gateM4FILES=\
617c478bdstevel@tonic-gate	${CFDIR}/domain/generic.m4 \
627c478bdstevel@tonic-gate	${CFDIR}/domain/solaris-antispam.m4 \
637c478bdstevel@tonic-gate	${CFDIR}/domain/solaris-generic.m4 \
647c478bdstevel@tonic-gate	${CFDIR}/feature/accept_unqualified_senders.m4 \
657c478bdstevel@tonic-gate	${CFDIR}/feature/accept_unresolvable_domains.m4 \
667c478bdstevel@tonic-gate	${CFDIR}/feature/access_db.m4 \
677c478bdstevel@tonic-gate	${CFDIR}/feature/allmasquerade.m4 \
687c478bdstevel@tonic-gate	${CFDIR}/feature/always_add_domain.m4 \
69058561cjbeck	${CFDIR}/feature/badmx.m4 \
707c478bdstevel@tonic-gate	${CFDIR}/feature/bestmx_is_local.m4 \
717c478bdstevel@tonic-gate	${CFDIR}/feature/bitdomain.m4 \
727c478bdstevel@tonic-gate	${CFDIR}/feature/blacklist_recipients.m4 \
73058561cjbeck	${CFDIR}/feature/block_bad_helo.m4 \
747c478bdstevel@tonic-gate	${CFDIR}/feature/compat_check.m4 \
757c478bdstevel@tonic-gate	${CFDIR}/feature/conncontrol.m4 \
767c478bdstevel@tonic-gate	${CFDIR}/feature/delay_checks.m4 \
777c478bdstevel@tonic-gate	${CFDIR}/feature/dnsbl.m4 \
787c478bdstevel@tonic-gate	${CFDIR}/feature/domaintable.m4 \
797c478bdstevel@tonic-gate	${CFDIR}/feature/enhdnsbl.m4 \
807c478bdstevel@tonic-gate	${CFDIR}/feature/generics_entire_domain.m4 \
817c478bdstevel@tonic-gate	${CFDIR}/feature/genericstable.m4 \
827c478bdstevel@tonic-gate	${CFDIR}/feature/greet_pause.m4 \
837c478bdstevel@tonic-gate	${CFDIR}/feature/ldap_routing.m4 \
847c478bdstevel@tonic-gate	${CFDIR}/feature/limited_masquerade.m4 \
857c478bdstevel@tonic-gate	${CFDIR}/feature/local_lmtp.m4 \
867c478bdstevel@tonic-gate	${CFDIR}/feature/local_no_masquerade.m4 \
87445f247jbeck	${CFDIR}/feature/local_procmail.m4 \
887c478bdstevel@tonic-gate	${CFDIR}/feature/lookupdotdomain.m4 \
897c478bdstevel@tonic-gate	${CFDIR}/feature/loose_relay_check.m4 \
907c478bdstevel@tonic-gate	${CFDIR}/feature/mailertable.m4 \
917c478bdstevel@tonic-gate	${CFDIR}/feature/masquerade_entire_domain.m4 \
927c478bdstevel@tonic-gate	${CFDIR}/feature/masquerade_envelope.m4 \
937c478bdstevel@tonic-gate	${CFDIR}/feature/msp.m4 \
947c478bdstevel@tonic-gate	${CFDIR}/feature/mtamark.m4 \
957c478bdstevel@tonic-gate	${CFDIR}/feature/no_default_msa.m4 \
967c478bdstevel@tonic-gate	${CFDIR}/feature/nocanonify.m4 \
977c478bdstevel@tonic-gate	${CFDIR}/feature/notsticky.m4 \
987c478bdstevel@tonic-gate	${CFDIR}/feature/nouucp.m4 \
997c478bdstevel@tonic-gate	${CFDIR}/feature/preserve_local_plus_detail.m4 \
1007c478bdstevel@tonic-gate	${CFDIR}/feature/preserve_luser_host.m4 \
101445f247jbeck	${CFDIR}/feature/promiscuous_relay.m4 \
1027c478bdstevel@tonic-gate	${CFDIR}/feature/queuegroup.m4 \
1037c478bdstevel@tonic-gate	${CFDIR}/feature/ratecontrol.m4 \
1047c478bdstevel@tonic-gate	${CFDIR}/feature/redirect.m4 \
1057c478bdstevel@tonic-gate	${CFDIR}/feature/relay_based_on_MX.m4 \
1067c478bdstevel@tonic-gate	${CFDIR}/feature/relay_entire_domain.m4 \
1077c478bdstevel@tonic-gate	${CFDIR}/feature/relay_hosts_only.m4 \
1087c478bdstevel@tonic-gate	${CFDIR}/feature/relay_local_from.m4 \
1097c478bdstevel@tonic-gate	${CFDIR}/feature/relay_mail_from.m4 \
110058561cjbeck	${CFDIR}/feature/require_rdns.m4 \
1117c478bdstevel@tonic-gate	${CFDIR}/feature/smrsh.m4 \
1127c478bdstevel@tonic-gate	${CFDIR}/feature/stickyhost.m4 \
1137c478bdstevel@tonic-gate	${CFDIR}/feature/use_client_ptr.m4 \
1147c478bdstevel@tonic-gate	${CFDIR}/feature/use_ct_file.m4 \
1157c478bdstevel@tonic-gate	${CFDIR}/feature/use_cw_file.m4 \
1167c478bdstevel@tonic-gate	${CFDIR}/feature/uucpdomain.m4 \
1177c478bdstevel@tonic-gate	${CFDIR}/feature/virtuser_entire_domain.m4 \
1187c478bdstevel@tonic-gate	${CFDIR}/feature/virtusertable.m4 \
1197c478bdstevel@tonic-gate	${CFDIR}/m4/cf.m4 \
1207c478bdstevel@tonic-gate	${CFDIR}/m4/cfhead.m4 \
1217c478bdstevel@tonic-gate	${CFDIR}/m4/proto.m4 \
1227c478bdstevel@tonic-gate	${CFDIR}/m4/version.m4 \
1237c478bdstevel@tonic-gate	${CFDIR}/mailer/local.m4 \
1247c478bdstevel@tonic-gate	${CFDIR}/mailer/smtp.m4 \
1257c478bdstevel@tonic-gate	${CFDIR}/mailer/uucp.m4 \
1267c478bdstevel@tonic-gate	${CFDIR}/ostype/solaris2.m4 \
1277c478bdstevel@tonic-gate	${CFDIR}/ostype/solaris2.ml.m4 \
1287c478bdstevel@tonic-gate	${CFDIR}/ostype/solaris2.pre5.m4 \
1297c478bdstevel@tonic-gate	${CFDIR}/ostype/solaris8.m4
1307c478bdstevel@tonic-gate
1317c478bdstevel@tonic-gate$(ALL):  $(M4FILES)
132