Print this page
5166 sendmail package should be replaceable
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sendmail/aux/Makefile
+++ new/usr/src/cmd/sendmail/aux/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
↓ open down ↓ |
19 lines elided |
↑ open up ↑ |
20 20 #
21 21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 24
25 25 # cmd/sendmail/aux/Makefile
26 26 #
27 27 include ../../Makefile.cmd
28 28 include ../Makefile.cmd
29 29
30 -PROG= mailstats mconnect vacation mailcompat praliases mailq
30 +PROG= mailstats mconnect vacation mailcompat praliases
31 31
32 32 LIBPROG= mail.local smrsh
33 33
34 34 USRSBINPROG= etrn makemap editmap
35 35
36 +LIBSMTPSMPROG= mailq
37 +
36 38 # $(PROG) by default
37 39 CLOBBERFILES= $(LIBPROG) $(USRSBINPROG)
38 40
39 41 OBJS= $(PROG:%=%.o)
40 42
41 43 .PARALLEL: $(OBJS) $(PROG) $(LIBPROG) $(USRSBINPROG)
42 44
43 45 SRCS= $(PROG:%=%.c)
44 46
45 47 editmap := LDLIBS += -lldap
46 48 mail.local := LDLIBS += -lsocket -lnsl -lmail -lldap
47 49 mailq := LDLIBS += -lsecdb
48 50 mailstats := LDLIBS += -lldap
49 51 makemap := LDLIBS += -lldap
50 52 mconnect := LDLIBS += -lsocket -lnsl
51 53 praliases := LDLIBS += -lldap
52 54 smrsh := LDLIBS += -lldap
53 55 vacation := LDLIBS += -lldap
54 -$(ROOTBIN)/mailq := FILEMODE = 4555
56 +$(ROOTLIBSMTPSM)/mailq := FILEMODE = 4555
55 57
56 58 INCPATH= -I../src -I../db -I../include
57 59
58 60 ENVDEF= -DNOT_SENDMAIL
59 61 SUNENVDEF= -DSUN_EXTENSIONS -DUSE_VENDOR_CF_PATH
60 62 DBMDEF= -DNDBM -DNEWDB
61 63
62 64 CPPFLAGS = $(INCPATH) $(ENVDEF) $(SUNENVDEF) $(DBMDEF) $(CPPFLAGS.sm)
63 65
64 66 # Nearly every support application provides sleep(). This isn't incompatible
65 67 # with libc, but can be confined to the applications themselves.
66 68 LDFLAGS += $(MAPFILE.NGB:%=-M%)
67 69
68 70 .KEEP_STATE:
69 71
70 -all: $(PROG) $(LIBPROG) $(USRSBINPROG)
72 +all: $(PROG) $(LIBSMTPSMPROG) $(LIBPROG) $(USRSBINPROG)
71 73
72 74 convtime.o: ../src/convtime.c
73 75 $(COMPILE.c) ../src/convtime.c
74 76 $(POST_PROCESS_O)
75 77
76 78 vacation: vacation.o convtime.o rfc2047.o ../libsm/libsm.a
77 79 $(LINK.c) vacation.o convtime.o rfc2047.o -o $@ $(LDLIBS) \
78 80 ../libsm/libsm.a
79 81 $(POST_PROCESS)
80 82
81 83 mail.local: mail.local.o ../libsmutil/libsmutil.a ../libsm/libsm.a
82 84 $(LINK.c) mail.local.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \
83 85 ../libsm/libsm.a
84 86 $(POST_PROCESS)
85 87
86 88 smrsh: smrsh.o ../libsm/libsm.a
87 89 $(LINK.c) smrsh.o -o $@ $(LDLIBS) ../libsm/libsm.a
88 90 $(POST_PROCESS)
89 91
90 92 makemap: makemap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
91 93 ../db/libdb.a ../libsm/libsm.a
92 94 $(LINK.c) makemap.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
93 95 ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
94 96 $(POST_PROCESS)
95 97
96 98 editmap: editmap.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
97 99 ../db/libdb.a ../libsm/libsm.a
98 100 $(LINK.c) editmap.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
99 101 ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
100 102 $(POST_PROCESS)
101 103
102 104 praliases: praliases.o ../libsmutil/libsmutil.a ../libsmdb/libsmdb.a \
103 105 ../libsm/libsm.a
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
104 106 $(LINK.c) praliases.o -o $@ $(LDLIBS) ../libsmdb/libsmdb.a \
105 107 ../libsmutil/libsmutil.a ../db/libdb.a ../libsm/libsm.a
106 108 $(POST_PROCESS)
107 109
108 110 mailstats: mailstats.o ../libsmutil/libsmutil.a ../libsm/libsm.a
109 111 $(LINK.c) mailstats.o -o $@ $(LDLIBS) ../libsmutil/libsmutil.a \
110 112 ../libsm/libsm.a
111 113 $(POST_PROCESS)
112 114
113 115 install: all $(ROOTPROG) $(ROOTLIB)/mail.local $(ROOTLIB)/smrsh \
114 - $(ROOTUSRSBIN)/makemap $(ROOTUSRSBIN)/etrn $(ROOTUSRSBIN)/editmap
116 + $(ROOTLIBSMTPSM)/mailq $(ROOTUSRSBIN)/makemap \
117 + $(ROOTUSRSBIN)/etrn $(ROOTUSRSBIN)/editmap
115 118
116 119 clean:
117 120 $(RM) $(OBJS) *.o
118 121
119 122 lint: lint_PROG
120 123
121 124
122 125 include ../../Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX