Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License, Version 1.0 only
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# (the "License"). You may not use this file except in compliance
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff# with the License.
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff#
70e5a7403f0e0a3bd292b8287c5fed5772c15270Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# or http://www.opensolaris.org/os/licensing.
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff# See the License for the specific language governing permissions
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff# and limitations under the License.
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff#
4838e5f7c245b4843f59285f99f2d27f1c5d1315James Brister# When distributing Covered Code, include this CDDL HEADER in each
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# If applicable, add the following below this CDDL HEADER, with the
01933e930208da3291de3722cb0d0787636b1e4fMichael Graff# fields enclosed by brackets "[]" replaced with your own identifying
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff# information: Portions Copyright [yyyy] [name of copyright owner]
057393025c3c7fa2176d3d162ebdcad651d2903fMichael Graff#
e61793f0865117ad87a19d6e245bea8f3b712d1bDanny Mayer# CDDL HEADER END
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff#
29747dfe5e073a299b3681e01f5c55540f8bfed7Mark Andrews#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# Use is subject to license terms.
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff#
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# ident "%Z%%M% %I% %E% SMI"
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff#
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff# cmd/sendmail/cf/Makefile
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff#
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeininclude ../../Makefile.cmd
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael GraffCFS= sendmail.cf submit.cf
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael GraffSUBCFS= cf/sendmail.cf cf/submit.cf
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael GraffCOMMONM4FILES= m4/version.m4 m4/cf.m4 m4/cfhead.m4 m4/proto.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff ostype/solaris8.m4 domain/solaris-generic.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein mailer/local.m4 mailer/smtp.m4
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael GraffROOTETCMAIL = $(ROOTETC)/mail
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael GraffROOTETCMAILFILES=$(CFS:%=$(ROOTETCMAIL)/%)
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael GraffROOTETCMAILCF = $(ROOTETCMAIL)/cf
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinBUILDPARTS = $(ROOTETCMAILCF)/README \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/cf/Makefile \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/cf/sendmail.cf \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/cf/sendmail.mc \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/cf/submit.cf \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/cf/submit.mc \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/domain/generic.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/domain/solaris-antispam.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/domain/solaris-generic.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/accept_unqualified_senders.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/accept_unresolvable_domains.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/access_db.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/allmasquerade.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/always_add_domain.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/bestmx_is_local.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/bitdomain.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/blacklist_recipients.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/compat_check.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/conncontrol.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/delay_checks.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/dnsbl.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/domaintable.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/enhdnsbl.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/generics_entire_domain.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/genericstable.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/greet_pause.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/ldap_routing.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/limited_masquerade.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/local_lmtp.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/local_no_masquerade.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/local_procmail.m4 \
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael Graff $(ROOTETCMAILCF)/feature/lookupdotdomain.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/loose_relay_check.m4 \
edcd66a7dd5f2ca73c0396b0983d35a71dd4e189James Brister $(ROOTETCMAILCF)/feature/mailertable.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/masquerade_entire_domain.m4 \
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(ROOTETCMAILCF)/feature/masquerade_envelope.m4 \
58ff88cca7c169f7fbebc9b6e93bbba1fb345157Michael Graff $(ROOTETCMAILCF)/feature/msp.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/mtamark.m4 \
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff $(ROOTETCMAILCF)/feature/no_default_msa.m4 \
43236eb0e13a64c84bb5e2a902fbf1411b487d36Michael Graff $(ROOTETCMAILCF)/feature/nocanonify.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/notsticky.m4 \
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff $(ROOTETCMAILCF)/feature/nouucp.m4 \
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff $(ROOTETCMAILCF)/feature/nullclient.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/feature/preserve_local_plus_detail.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/feature/preserve_luser_host.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/promiscuous_relay.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/queuegroup.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/ratecontrol.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/redirect.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/relay_based_on_MX.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/feature/relay_entire_domain.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/feature/relay_hosts_only.m4 \
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(ROOTETCMAILCF)/feature/relay_local_from.m4 \
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff $(ROOTETCMAILCF)/feature/relay_mail_from.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/smrsh.m4 \
43236eb0e13a64c84bb5e2a902fbf1411b487d36Michael Graff $(ROOTETCMAILCF)/feature/stickyhost.m4 \
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff $(ROOTETCMAILCF)/feature/use_client_ptr.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/use_ct_file.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/feature/use_cw_file.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/uucpdomain.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/feature/virtuser_entire_domain.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/feature/virtusertable.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/m4/cf.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/m4/cfhead.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/m4/proto.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/m4/version.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/mailer/local.m4 \
915723e4007e177b10c0e1c9d1bfe77ac2bfe853Michael Graff $(ROOTETCMAILCF)/mailer/procmail.m4 \
70be3889746884692aa49939833d624ddd432bf0Mark Andrews $(ROOTETCMAILCF)/mailer/smtp.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/mailer/uucp.m4 \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTETCMAILCF)/ostype/solaris2.m4 \
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff $(ROOTETCMAILCF)/ostype/solaris2.ml.m4 \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(ROOTETCMAILCF)/ostype/solaris2.pre5.m4 \
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff $(ROOTETCMAILCF)/ostype/solaris8.m4 \
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff $(ROOTETCMAILCF)/sh/makeinfo.sh
58ff88cca7c169f7fbebc9b6e93bbba1fb345157Michael Graff
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael GraffSCRIPTS= $(ROOTUSRSBIN)/check-hostname \
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(ROOTUSRSBIN)/check-permissions
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff.PARALLEL: $(BUILDPARTS) $(CFS)
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinFILEMODE= 444
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael GraffM4FLAGS= -DSUN_HIDE_INTERNAL_DETAILS
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff
58ff88cca7c169f7fbebc9b6e93bbba1fb345157Michael Graff$(BUILDPARTS) := OWNER=root
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff$(BUILDPARTS) := GROUP=mail
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff.KEEP_STATE:
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graffall: $(CFS)
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff%.cf: cf/%.cf
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(CP) $< $@
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graffcf/%.cf: cf/%.mc $(COMMONM4FILES)
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff cd cf; pwd; $(M4) $(M4FLAGS) ../m4/cf.m4 $(<F) > $(@F)
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeininstall: all $(ROOTETCMAILFILES) $(BUILDPARTS) $(SCRIPTS) .WAIT links
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeinclean:
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(RM) $(CFS) $(SUBCFS)
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graffclobber: clean
58ff88cca7c169f7fbebc9b6e93bbba1fb345157Michael Graff
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Grafflint:
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff$(ROOTETCMAIL)/%.cf: %.cf
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(INS.file)
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff$(ROOTETCMAILCF)/%: %
58ff88cca7c169f7fbebc9b6e93bbba1fb345157Michael Graff $(INS.file)
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff$(ROOTUSRSBIN)/check-%: sh/check-%.sh
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(INS.rename)
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(CHMOD) +x $@
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeinlinks:
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(RM) $(ROOTLIB)/mail
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff $(SYMLINK) ../../etc/mail/cf $(ROOTLIB)/mail
64bed6c54393c2d213db83e9b171fb7c318cfc8eMichael Graff $(RM) $(ROOTETCMAILCF)/sh/check-hostname
57cd0c8166f0e350a21a600eb27e600a7f2c9c7fMichael Graff $(SYMLINK) ../../../../usr/sbin/check-hostname $(ROOTETCMAILCF)/sh/check-hostname
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(RM) $(ROOTETCMAILCF)/sh/check-permissions
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(SYMLINK) ../../../../usr/sbin/check-permissions $(ROOTETCMAILCF)/sh/check-permissions
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(RM) $(ROOTETCMAIL)/main.cf
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(SYMLINK) sendmail.cf $(ROOTETCMAIL)/main.cf
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(RM) $(ROOTETCMAIL)/subsidiary.cf
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(SYMLINK) sendmail.cf $(ROOTETCMAIL)/subsidiary.cf
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(RM) $(ROOTETCMAILCF)/cf/main.cf
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(SYMLINK) sendmail.cf $(ROOTETCMAILCF)/cf/main.cf
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(RM) $(ROOTETCMAILCF)/cf/main.mc
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(SYMLINK) sendmail.mc $(ROOTETCMAILCF)/cf/main.mc
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(RM) $(ROOTETCMAILCF)/cf/subsidiary.cf
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(SYMLINK) sendmail.cf $(ROOTETCMAILCF)/cf/subsidiary.cf
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington $(RM) $(ROOTETCMAILCF)/cf/subsidiary.mc
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein $(SYMLINK) sendmail.mc $(ROOTETCMAILCF)/cf/subsidiary.mc
668728fed845b9db9c1423946df03d5fc69f4eeeBrian Wellington