5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25
26
27 BINPROG= mail
28
29 PROG= $(BINPROG)
30
31 GREP= grep
32
33 include ../Makefile.cmd
34
35 CLOBBERFILES= $(PROG)
36 CLEANFILES= $(MAILOBJS)
37
38 MAILOBJS= add_recip.o cat.o ckdlivopts.o \
39 cksaved.o clr_hinfo.o copyback.o copylet.o \
40 copymt.o createmf.o del_recipl.o Dout.o delete.o \
41 done.o doopen.o dumpaff.o dumprcv.o \
42 errmsg.o gendeliv.o getarg.o getcomment.o \
43 gethead.o goback.o init.o \
44 isheader.o isit.o islocal.o istext.o legal.o \
45 lock.o main.o mkdead.o mta_ercode.o \
46 new_recipl.o parse.o pckaffspot.o pckrcvspot.o \
59 ROOTINC= $(ROOT)/usr/include
60
61 # installed modules
62 ROOTBINPROG= $(BINPROG:%=$(ROOTBIN)/%)
63
64 ROOTSYMLINKS= $(ROOTBIN)/rmail
65
66
67 EDITPATH= \
68 sed -e 's!REAL_PATH!/usr/bin!g' \
69 -e 's!USR_SHARE_LIB!/usr/share/lib!g' \
70 -e 's!VAR_MAIL!/var/mail!g' < $? > $@
71
72 CPPFLAGS = -DSVR4 -I. $(CPPFLAGS.master)
73 CERRWARN += -_gcc=-Wno-implicit-function-declaration
74 CERRWARN += -_gcc=-Wno-unused-variable
75 CERRWARN += -_gcc=-Wno-uninitialized
76 CERRWARN += -_gcc=-Wno-clobbered
77 CERRWARN += -_gcc=-Wno-extra
78
79 LDLIBS += -lmail -lsocket
80
81 # mail defines its own delete() - reduce symbols to locals to remove name clash.
82 LDFLAGS += $(MAPFILE.NGB:%=-M%)
83
84 # conditional assignments
85 #
86 all:= TARGET= all
87 install:= TARGET= install
88 clean:= TARGET= clean
89 clobber:= TARGET= clobber
90 lint:= TARGET= lint
91
92 # file modes, owners and groups for the install target
93 #
94
95
96 $(ROOTBIN)/mail := FILEMODE = 02511
97
98
|
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 # Copyright (c) 2018, Joyent, Inc.
26 #
27
28 BINPROG= mail
29
30 PROG= $(BINPROG)
31
32 GREP= grep
33
34 include ../Makefile.cmd
35
36 CLOBBERFILES= $(PROG)
37 CLEANFILES= $(MAILOBJS)
38
39 MAILOBJS= add_recip.o cat.o ckdlivopts.o \
40 cksaved.o clr_hinfo.o copyback.o copylet.o \
41 copymt.o createmf.o del_recipl.o Dout.o delete.o \
42 done.o doopen.o dumpaff.o dumprcv.o \
43 errmsg.o gendeliv.o getarg.o getcomment.o \
44 gethead.o goback.o init.o \
45 isheader.o isit.o islocal.o istext.o legal.o \
46 lock.o main.o mkdead.o mta_ercode.o \
47 new_recipl.o parse.o pckaffspot.o pckrcvspot.o \
60 ROOTINC= $(ROOT)/usr/include
61
62 # installed modules
63 ROOTBINPROG= $(BINPROG:%=$(ROOTBIN)/%)
64
65 ROOTSYMLINKS= $(ROOTBIN)/rmail
66
67
68 EDITPATH= \
69 sed -e 's!REAL_PATH!/usr/bin!g' \
70 -e 's!USR_SHARE_LIB!/usr/share/lib!g' \
71 -e 's!VAR_MAIL!/var/mail!g' < $? > $@
72
73 CPPFLAGS = -DSVR4 -I. $(CPPFLAGS.master)
74 CERRWARN += -_gcc=-Wno-implicit-function-declaration
75 CERRWARN += -_gcc=-Wno-unused-variable
76 CERRWARN += -_gcc=-Wno-uninitialized
77 CERRWARN += -_gcc=-Wno-clobbered
78 CERRWARN += -_gcc=-Wno-extra
79
80 # missing type declarations for old-style functions
81 SMATCH = off
82
83 LDLIBS += -lmail -lsocket
84
85 # mail defines its own delete() - reduce symbols to locals to remove name clash.
86 LDFLAGS += $(MAPFILE.NGB:%=-M%)
87
88 # conditional assignments
89 #
90 all:= TARGET= all
91 install:= TARGET= install
92 clean:= TARGET= clean
93 clobber:= TARGET= clobber
94 lint:= TARGET= lint
95
96 # file modes, owners and groups for the install target
97 #
98
99
100 $(ROOTBIN)/mail := FILEMODE = 02511
101
102
|