17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 54abb9673Sjbeck# Common Development and Distribution License (the "License"). 64abb9673Sjbeck# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 214abb9673Sjbeck 22d0fccfcdSGary Mills# Copyright (c) 2011 Gary Mills 23d0fccfcdSGary Mills 247c478bd9Sstevel@tonic-gate# 25a724c049SJohn.Zolnowsky@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 267c478bd9Sstevel@tonic-gate# Use is subject to license terms. 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gate# cmd/sendmail/src/Makefile 297c478bd9Sstevel@tonic-gate# 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gatePROG= sendmail 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateinclude ../../Makefile.cmd 347c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gateOBJS= alias.o arpadate.o bf.o collect.o conf.o control.o convtime.o daemon.o \ 377c478bd9Sstevel@tonic-gate deliver.o domain.o envelope.o err.o headers.o macro.o main.o map.o \ 387c478bd9Sstevel@tonic-gate mci.o milter.o mime.o parseaddr.o queue.o ratectrl.o readcf.o \ 39d0fccfcdSGary Mills recipient.o sasl.o savemail.o sfsasl.o sm_resolve.o srvrsmtp.o stab.o \ 40d0fccfcdSGary Mills stats.o sysexits.o tls.o trace.o udb.o usersmtp.o util.o version.o 417c478bd9Sstevel@tonic-gate 427c478bd9Sstevel@tonic-gateSRCS= $(OBJS:%.o=%.c) 437c478bd9Sstevel@tonic-gate 4424da5b34SrieMAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB) 4585f4cb87SRichard LoweLDFLAGS += $(MAPFILES:%=-Wl,-M%) 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gateLDLIBS += ../libsmutil/libsmutil.a ../libsm/libsm.a -lresolv -lsocket \ 48d4660949Sjbeck -lnsl ../db/libdb.a -lldap -lsldap -lwrap -lumem \ 49694c35faSJosef 'Jeff' Sipek -lssl -lcrypto -lsasl 505801b0f0SToomas SoomeNATIVE_LIBS += libssl.so libcrypto.so 517c478bd9Sstevel@tonic-gate 52257873cfSJohn.Zolnowsky@Sun.COMINCPATH= -I. -I../include -I../db 537c478bd9Sstevel@tonic-gate 54694c35faSJosef 'Jeff' SipekENVDEF= -DNETINET6 -DTCPWRAPPERS -DSTARTTLS -DSASL=20115 557c478bd9Sstevel@tonic-gateSUNENVDEF= -DSUN_EXTENSIONS -DVENDOR_DEFAULT=VENDOR_SUN \ 56e9af4bc0SJohn Beck -DSUN_INIT_DOMAIN -DSUN_SIMPLIFIED_LDAP -D_FFR_LOCAL_DAEMON \ 57e9af4bc0SJohn Beck -D_FFR_MAIL_MACRO 587c478bd9Sstevel@tonic-gate 594abb9673SjbeckCPPFLAGS = $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm) 607c478bd9Sstevel@tonic-gate 61*109018f8SMarcel Telka# The tls.c file is not ported to the OpenSSL 3.x API yet and so we need to 62*109018f8SMarcel Telka# make sure the deprecated 1.x API is fully available for it. Once the tls.c 63*109018f8SMarcel Telka# file is adapted for OpenSSL 3.x this should be updated or removed. 64*109018f8SMarcel Telka# See also https://www.illumos.org/issues/16918 65*109018f8SMarcel TelkaCPPFLAGS += -DOPENSSL_API_COMPAT=10101 66*109018f8SMarcel Telka 677c478bd9Sstevel@tonic-gateFILEMODE= 2555 687c478bd9Sstevel@tonic-gate 69287247a8SAlexander PyhalovROOTSYMLINKS= $(ROOTLIBSMTPSM)/newaliases 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate# build rule 727c478bd9Sstevel@tonic-gate# 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gate.KEEP_STATE: 757c478bd9Sstevel@tonic-gateall: $(PROG) 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gate.PARALLEL: $(OBJS) 787c478bd9Sstevel@tonic-gate 7924da5b34Srie$(PROG): $(OBJS) $(MAPFILES) \ 8024da5b34Srie ../libsmutil/libsmutil.a ../libsm/libsm.a ../db/libdb.a 817c478bd9Sstevel@tonic-gate $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 827c478bd9Sstevel@tonic-gate $(POST_PROCESS) 837c478bd9Sstevel@tonic-gate 84287247a8SAlexander Pyhalovinstall: $(ROOTLIBSMTPSM)/sendmail $(ROOTSYMLINKS) 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate$(ROOTSYMLINKS): 87287247a8SAlexander Pyhalov $(RM) $@; $(SYMLINK) sendmail $@ 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gateclean: 907c478bd9Sstevel@tonic-gate $(RM) $(PROG) $(OBJS) 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gateinclude ../../Makefile.targ 93