Makefile revision a724c049b7e0dd8612bc3aaec84e96e80511050d
2890N/A#
2890N/A# CDDL HEADER START
2890N/A#
2890N/A# The contents of this file are subject to the terms of the
2890N/A# Common Development and Distribution License (the "License").
2890N/A# You may not use this file except in compliance with the License.
2890N/A#
2890N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2890N/A# or http://www.opensolaris.org/os/licensing.
2890N/A# See the License for the specific language governing permissions
2890N/A# and limitations under the License.
2890N/A#
2890N/A# When distributing Covered Code, include this CDDL HEADER in each
2890N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2890N/A# If applicable, add the following below this CDDL HEADER, with the
2890N/A# fields enclosed by brackets "[]" replaced with your own identifying
2890N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2890N/A#
2890N/A# CDDL HEADER END
2890N/A#
2890N/A
2890N/A#
2890N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2890N/A# Use is subject to license terms.
2890N/A#
2890N/A# cmd/sendmail/src/Makefile
2890N/A#
2890N/A
2890N/APROG= sendmail
2890N/A
2890N/Ainclude ../../Makefile.cmd
2890N/Ainclude ../Makefile.cmd
2890N/A
2890N/AOBJS= alias.o arpadate.o bf.o collect.o conf.o control.o convtime.o daemon.o \
2890N/A deliver.o domain.o envelope.o err.o headers.o macro.o main.o map.o \
2890N/A mci.o milter.o mime.o parseaddr.o queue.o ratectrl.o readcf.o \
2890N/A recipient.o savemail.o sfsasl.o sm_resolve.o srvrsmtp.o stab.o stats.o \
2890N/A sysexits.o tls.o trace.o udb.o usersmtp.o util.o version.o
2890N/A
2890N/ASRCS= $(OBJS:%.o=%.c)
2890N/A
2890N/AMAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
2890N/ALDFLAGS += $(MAPFILES:%=-M%)
2890N/A
2890N/A# EXPORT DELETE START
2890N/ACRYPTOLIBS= -lssl -lcrypto
2890N/A# EXPORT DELETE END
2890N/ALDLIBS += ../libsmutil/libsmutil.a ../libsm/libsm.a -lresolv -lsocket \
2890N/A -lnsl ../db/libdb.a -lldap -lsldap -lwrap -lumem \
2890N/A $(CRYPTOLIBS)
2890N/A
2890N/AINCPATH= -I. -I../include -I../db
2890N/A
2890N/A# EXPORT DELETE START
2890N/ACRYPTOENVDEF= -DSTARTTLS
2890N/A# EXPORT DELETE END
2890N/AENVDEF= -DNETINET6 -DTCPWRAPPERS $(CRYPTOENVDEF)
2890N/ASUNENVDEF= -DSUN_EXTENSIONS -DVENDOR_DEFAULT=VENDOR_SUN \
2890N/A -DSUN_INIT_DOMAIN -DSUN_SIMPLIFIED_LDAP -D_FFR_LOCAL_DAEMON
2890N/A
2890N/ACPPFLAGS = $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm)
2890N/A
2890N/AFILEMODE= 2555
2890N/AOWNER= root
2890N/AGROUP= smmsp
2890N/A
2890N/AROOTSYMLINKS= $(ROOTUSRSBIN)/newaliases $(ROOTUSRSBIN)/sendmail
2890N/A
2890N/A# build rule
2890N/A#
2890N/A
2890N/A.KEEP_STATE:
2890N/Aall: $(PROG)
2890N/A
2890N/A.PARALLEL: $(OBJS)
2890N/A
2890N/A$(PROG): $(OBJS) $(MAPFILES) \
2890N/A ../libsmutil/libsmutil.a ../libsm/libsm.a ../db/libdb.a
2890N/A $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
2890N/A $(POST_PROCESS)
2890N/A
2890N/Ainstall: $(ROOTLIBPROG) $(ROOTSYMLINKS)
2890N/A
2890N/A$(ROOTSYMLINKS):
2890N/A $(RM) $@; $(SYMLINK) ../lib/sendmail $@
2890N/A
2890N/Aclean:
2890N/A $(RM) $(PROG) $(OBJS)
2890N/A
2890N/Alint: lint_SRCS
2890N/A
2890N/A# EXPORT DELETE START
2890N/AEXPORT_SRC:
2890N/A $(RM) Makefile+
2890N/A $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
2890N/A < Makefile > Makefile+
2890N/A $(MV) Makefile+ Makefile
2890N/A $(CHMOD) 444 Makefile
2890N/A# EXPORT DELETE END
2890N/A
2890N/Ainclude ../../Makefile.targ
2890N/A