0
|
1 |
#
|
|
2 |
# CDDL HEADER START
|
|
3 |
#
|
|
4 |
# The contents of this file are subject to the terms of the
|
|
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 |
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
|
|
22 |
# Use is subject to license terms.
|
|
23 |
#
|
|
24 |
#ident "@(#)Makefile.sfw 1.2 08/09/26 SMI"
|
|
25 |
#
|
|
26 |
|
|
27 |
VER=screen-4.0.3
|
|
28 |
|
|
29 |
include ../Makefile.cmd
|
|
30 |
|
|
31 |
# Using some defaults from Makefile.master...
|
|
32 |
#
|
|
33 |
XSTRCONST = -xstrconst
|
|
34 |
ERROFF = -erroff
|
|
35 |
CFLAGS += $(XSTRCONST)
|
|
36 |
CFLAGS += $(ERROFF)
|
|
37 |
CONFIGURE_OPTIONS += --enable-colors256
|
|
38 |
CONFIGURE_OPTIONS += --with-sys-screenrc=/etc/screenrc
|
|
39 |
CONFIGURE_OPTIONS += --disable-socket-dir
|
|
40 |
|
|
41 |
all: $(VER)/config.status $(VER)/terminfo/s/screen
|
|
42 |
(cd $(VER); env -\
|
|
43 |
CC=$(CC) \
|
|
44 |
"CFLAGS=$(CFLAGS)" \
|
|
45 |
LD_OPTIONS="-M $(SRC)/cmd/mapfile_noexstk" \
|
|
46 |
PATH=$(SFW_PATH) \
|
|
47 |
MAKE=$(CCSMAKE) $(CCSMAKE))
|
|
48 |
@find . -name core -exec rm -f {} \;
|
|
49 |
|
|
50 |
install: all
|
|
51 |
$(SHELL) ./install-sfw
|
|
52 |
|
|
53 |
$(VER)/config.status: $(VER)/configure
|
|
54 |
(cd $(VER); env -\
|
|
55 |
CC=$(CC) \
|
|
56 |
PATH=$(SFW_PATH) \
|
|
57 |
MAKE=$(CCSMAKE) \
|
|
58 |
"CFLAGS=$(CFLAGS)" \
|
|
59 |
./configure $(CONFIGURE_OPTIONS))
|
|
60 |
|
|
61 |
$(VER)/configure: $(VER).tar.gz
|
|
62 |
$(GTAR) zxpf $(VER).tar.gz --no-same-owner
|
|
63 |
(cd $(VER); gpatch -p1 < ../patches/misc.c.patch)
|
|
64 |
touch $(VER)/configure
|
|
65 |
find $(VER) -type d -exec /usr/bin/chmod 755 "{}" \;
|
|
66 |
find $(VER) -type f -exec /usr/bin/chmod ugo+r "{}" \;
|
|
67 |
|
|
68 |
$(VER)/terminfo/s/screen: $(VER)/configure
|
|
69 |
( cd $(VER)/terminfo; env -\
|
|
70 |
TERMINFO=$(SRC)/cmd/screen/$(VER)/terminfo \
|
|
71 |
/usr/bin/tic screeninfo.src )
|
|
72 |
clean:
|
|
73 |
-rm -rf $(VER)
|
|
74 |
|
|
75 |
include ../Makefile.targ
|
|
76 |
|
|
77 |
FRC:
|