Print this page
first pass
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sendmail/src/Makefile
+++ new/usr/src/cmd/sendmail/src/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 # Copyright (c) 2011 Gary Mills
23 23
24 24 #
25 25 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
26 26 # Use is subject to license terms.
27 27 #
28 28 # cmd/sendmail/src/Makefile
29 29 #
30 30
31 31 PROG= sendmail
32 32
33 33 include ../../Makefile.cmd
34 34 include ../Makefile.cmd
35 35
36 36 OBJS= alias.o arpadate.o bf.o collect.o conf.o control.o convtime.o daemon.o \
↓ open down ↓ |
36 lines elided |
↑ open up ↑ |
37 37 deliver.o domain.o envelope.o err.o headers.o macro.o main.o map.o \
38 38 mci.o milter.o mime.o parseaddr.o queue.o ratectrl.o readcf.o \
39 39 recipient.o sasl.o savemail.o sfsasl.o sm_resolve.o srvrsmtp.o stab.o \
40 40 stats.o sysexits.o tls.o trace.o udb.o usersmtp.o util.o version.o
41 41
42 42 SRCS= $(OBJS:%.o=%.c)
43 43
44 44 MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
45 45 LDFLAGS += $(MAPFILES:%=-M%)
46 46
47 -# EXPORT DELETE START
48 -CRYPTOLIBS= -lssl -lcrypto -lsasl
49 -# EXPORT DELETE END
50 47 LDLIBS += ../libsmutil/libsmutil.a ../libsm/libsm.a -lresolv -lsocket \
51 48 -lnsl ../db/libdb.a -lldap -lsldap -lwrap -lumem \
52 - $(CRYPTOLIBS)
49 + -lssl -lcrypto -lsasl
53 50
54 51 INCPATH= -I. -I../include -I../db
55 52
56 -# EXPORT DELETE START
57 -CRYPTOENVDEF= -DSTARTTLS -DSASL=20115
58 -# EXPORT DELETE END
59 -ENVDEF= -DNETINET6 -DTCPWRAPPERS $(CRYPTOENVDEF)
53 +ENVDEF= -DNETINET6 -DTCPWRAPPERS -DSTARTTLS -DSASL=20115
60 54 SUNENVDEF= -DSUN_EXTENSIONS -DVENDOR_DEFAULT=VENDOR_SUN \
61 55 -DSUN_INIT_DOMAIN -DSUN_SIMPLIFIED_LDAP -D_FFR_LOCAL_DAEMON \
62 56 -D_FFR_MAIL_MACRO
63 57
64 58 CPPFLAGS = $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm)
65 59
66 60 FILEMODE= 2555
67 61
68 62 ROOTSYMLINKS= $(ROOTUSRSBIN)/newaliases $(ROOTUSRSBIN)/sendmail
69 63
70 64 # build rule
71 65 #
72 66
73 67 .KEEP_STATE:
74 68 all: $(PROG)
75 69
76 70 .PARALLEL: $(OBJS)
77 71
78 72 $(PROG): $(OBJS) $(MAPFILES) \
79 73 ../libsmutil/libsmutil.a ../libsm/libsm.a ../db/libdb.a
80 74 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
81 75 $(POST_PROCESS)
82 76
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
83 77 install: $(ROOTLIBPROG) $(ROOTSYMLINKS)
84 78
85 79 $(ROOTSYMLINKS):
86 80 $(RM) $@; $(SYMLINK) ../lib/sendmail $@
87 81
88 82 clean:
89 83 $(RM) $(PROG) $(OBJS)
90 84
91 85 lint: lint_SRCS
92 86
93 -# EXPORT DELETE START
94 -EXPORT_SRC:
95 - $(RM) Makefile+
96 - $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
97 - < Makefile > Makefile+
98 - $(MV) Makefile+ Makefile
99 - $(CHMOD) 444 Makefile
100 -# EXPORT DELETE END
101 -
102 87 include ../../Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX