0
|
1 |
#
|
|
2 |
#
|
|
3 |
# CDDL HEADER START
|
|
4 |
#
|
|
5 |
# The contents of this file are subject to the terms of the
|
|
6 |
# Common Development and Distribution License (the "License").
|
|
7 |
# You may not use this file except in compliance with the License.
|
|
8 |
#
|
|
9 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10 |
# or http://www.opensolaris.org/os/licensing.
|
|
11 |
# See the License for the specific language governing permissions
|
|
12 |
# and limitations under the License.
|
|
13 |
#
|
|
14 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
15 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
17 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
18 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19 |
|
|
20 |
# CDDL HEADER END
|
|
21 |
#
|
11
|
22 |
# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
|
0
|
23 |
# Use is subject to license terms.
|
|
24 |
#
|
11
|
25 |
#ident "@(#)Makefile.sfw 1.3 10/03/16 SMI"
|
0
|
26 |
|
|
27 |
include ../Makefile.cmd
|
|
28 |
|
|
29 |
#
|
|
30 |
# Macros
|
|
31 |
#
|
|
32 |
|
|
33 |
VER = 3.22
|
|
34 |
PROJECT = procmail
|
|
35 |
PROD = $(PROJECT)-$(VER)
|
11
|
36 |
PKG = mail/procmail
|
0
|
37 |
GZFILE = $(PROD).tar.gz
|
|
38 |
|
|
39 |
LDFLAGS += \
|
|
40 |
-L$(ROOT)/usr/lib \
|
|
41 |
-M $(SRC)/cmd/mapfile_noexstk \
|
|
42 |
-z ignore
|
|
43 |
|
|
44 |
POST_PROCESS_BIN = $(SRC)/tools/post_process \
|
|
45 |
$(ROOT)/usr/bin/formail \
|
|
46 |
$(ROOT)/usr/bin/lockfile \
|
|
47 |
$(ROOT)/usr/bin/procmail
|
|
48 |
|
|
49 |
POST_PROCESS_MAN = $(SRC)/tools/sunman \
|
|
50 |
-n "$(PROJECT)" -p "$(PKG)" -s Committed \
|
|
51 |
$(ROOT)/usr/share/man/man1/procmail.1 \
|
|
52 |
$(ROOT)/usr/share/man/man1/formail.1 \
|
|
53 |
$(ROOT)/usr/share/man/man1/lockfile.1 \
|
|
54 |
$(ROOT)/usr/share/man/man5/procmailrc.5 \
|
|
55 |
$(ROOT)/usr/share/man/man5/procmailsc.5 \
|
|
56 |
$(ROOT)/usr/share/man/man5/procmailex.5
|
|
57 |
|
|
58 |
#
|
|
59 |
# Targets
|
|
60 |
#
|
|
61 |
|
|
62 |
all: $(PROD)/Makefile
|
|
63 |
(cd $(PROD); $(CCSMAKE) \
|
|
64 |
MANDIR=/usr/share/man \
|
|
65 |
LOCKINGTEST="/tmp /var/tmp ." \
|
|
66 |
CC="$(CC)" \
|
|
67 |
CFLAGS="$(CFLAGS)" \
|
|
68 |
LDFLAGS="$(LDFLAGS)" \
|
4
|
69 |
BSHELL=$(BASH) \
|
0
|
70 |
MAKE=$(CCSMAKE) \
|
|
71 |
all)
|
|
72 |
|
|
73 |
install: all
|
|
74 |
(cd $(PROD); $(CCSMAKE) install \
|
|
75 |
MAKE=$(CCSMAKE) \
|
|
76 |
BASENAME="$(ROOT)/usr" \
|
4
|
77 |
BSHELL=$(BASH) \
|
0
|
78 |
MANDIR="$(ROOT)/usr/share/man")
|
|
79 |
$(POST_PROCESS_BIN)
|
|
80 |
$(POST_PROCESS_MAN)
|
|
81 |
|
|
82 |
$(PROD)/Makefile: $(GZFILE)
|
|
83 |
gzcat $^ | $(TAR) xopf -
|
4
|
84 |
mv $(PROD)/src/Makefile.0 $(PROD)/src/Makefile.0.orig
|
|
85 |
echo "SHELL=$(BASH)" > $(PROD)/src/Makefile.0
|
|
86 |
cat $(PROD)/src/Makefile.0.orig >> $(PROD)/src/Makefile.0
|
0
|
87 |
$(TOUCH) $@
|
|
88 |
|
|
89 |
clean:
|
|
90 |
-rm -rf $(PROD)
|
|
91 |
|
|
92 |
install_h:
|
|
93 |
|
|
94 |
include ../Makefile.targ
|