Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
#
# cmd/sendmail/src/Makefile
#
PROG= sendmail
include ../../Makefile.cmd
include ../Makefile.cmd
# additional .o files needed
OBJADD=sun_compat.o
OBJS= alias.o arpadate.o bf.o collect.o conf.o control.o convtime.o daemon.o \
deliver.o domain.o envelope.o err.o headers.o macro.o main.o map.o \
mci.o milter.o mime.o parseaddr.o queue.o ratectrl.o readcf.o \
recipient.o savemail.o sfsasl.o sm_resolve.o srvrsmtp.o stab.o stats.o \
sysexits.o tls.o trace.o udb.o usersmtp.o util.o version.o ${OBJADD}
SRCS= $(OBJS:%.o=%.c)
LDFLAGS += -R$(SFW_ROOT)/lib
# EXPORT DELETE START
CRYPTOLIBS= -lssl -lcrypto
# EXPORT DELETE END
LDLIBS += ../libsmutil/libsmutil.a ../libsm/libsm.a -lresolv -lsocket \
-lnsl ../db/libdb.a -lldap -lsldap -L$(ROOTSFWLIB) -lwrap \
$(CRYPTOLIBS)
INCPATH= -I. -I../include -I../db -I$(ROOTSFWINCLUDE)
# EXPORT DELETE START
CRYPTOENVDEF= -DSTARTTLS
# EXPORT DELETE END
ENVDEF= $(RLS_DEF) -DNETINET6 -DTCPWRAPPERS $(CRYPTOENVDEF)
SUNENVDEF= -DSUN_EXTENSIONS -DVENDOR_DEFAULT=VENDOR_SUN \
-DSUN_INIT_DOMAIN -DSUN_SIMPLIFIED_LDAP
CPPFLAGS = $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.master)
FILEMODE= 2555
OWNER= root
GROUP= smmsp
ROOTSYMLINKS= $(ROOTUSRSBIN)/newaliases $(ROOTUSRSBIN)/sendmail
# build rule
#
.KEEP_STATE:
all: $(PROG)
.PARALLEL: $(OBJS)
$(PROG): $(OBJS) ../libsmutil/libsmutil.a ../libsm/libsm.a ../db/libdb.a
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
$(POST_PROCESS)
install: $(ROOTLIBPROG) $(ROOTSYMLINKS)
$(ROOTSYMLINKS):
$(RM) $@; $(SYMLINK) ../lib/sendmail $@
clean:
$(RM) $(PROG) $(OBJS)
lint: lint_SRCS
# EXPORT DELETE START
EXPORT_SRC:
$(RM) Makefile+
$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile > Makefile+
$(MV) Makefile+ Makefile
$(CHMOD) 444 Makefile
# EXPORT DELETE END
include ../../Makefile.targ