author | Rich Burridge <rich.burridge@oracle.com> |
Wed, 04 Feb 2015 20:41:10 -0800 | |
changeset 3733 | ef84d96c9e0e |
parent 2225 | f064d3d3190d |
child 3817 | 30b42c38bbc4 |
permissions | -rw-r--r-- |
131
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
1 |
# |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
3 |
# |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
7 |
# |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
12 |
# |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
18 |
# |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
20 |
# |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
21 |
|
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
22 |
# |
3733
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
23 |
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
131
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
24 |
# |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
25 |
|
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
27 |
|
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= readline |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION= 5.2 |
609
775168282b2f
7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents:
181
diff
changeset
|
30 |
COMPONENT_PROJECT_URL= http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html |
131
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
618
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
618
diff
changeset
|
34 |
sha256:12e88d96aee2cd1192500356f0535540db499282ca7f76339fb4228c31249f45 |
131
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
35 |
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/readline/$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
36 |
COMPONENT_BUGDB= library/readline |
131
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
37 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
38 |
TPNO= 9042 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
39 |
|
131
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
40 |
include ../../make-rules/prep.mk |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
41 |
include ../../make-rules/configure.mk |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
42 |
include ../../make-rules/ips.mk |
618
9eb376524c7b
6992087 Missing lint library for libreadline.so
Rich Burridge <rich.burridge@oracle.com>
parents:
609
diff
changeset
|
43 |
include ../../make-rules/lint-libraries.mk |
9eb376524c7b
6992087 Missing lint library for libreadline.so
Rich Burridge <rich.burridge@oracle.com>
parents:
609
diff
changeset
|
44 |
|
9eb376524c7b
6992087 Missing lint library for libreadline.so
Rich Burridge <rich.burridge@oracle.com>
parents:
609
diff
changeset
|
45 |
LINT_FLAGS += -I$(PROTO_DIR)/usr/include |
131
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
46 |
|
3733
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
47 |
CC += $(CC_BITS) |
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
48 |
|
131
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
49 |
# readline likes to use ld directly and this is the easiest |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
50 |
# way to get it to add -lc |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
51 |
LDFLAGS += -lc |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
52 |
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
53 |
CONFIGURE_OPTIONS += --enable-shared |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
54 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
55 |
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
56 |
|
3733
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
57 |
# Build the readline examples as well. |
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
58 |
COMPONENT_BUILD_TARGETS = everything |
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
59 |
|
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
60 |
COMPONENT_TEST_DIR = $(@D)/examples |
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
61 |
COMPONENT_TEST_CMD = $(CAT) $(SOURCE_DIR)/examples/Inputrc | ./rlcat |
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
62 |
COMPONENT_TEST_TARGETS = |
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
63 |
|
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
64 |
# Master test results are the same for 32-bit and 64-bit, so override |
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
65 |
# here, rather than create multiple identical master files. |
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
66 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
ef84d96c9e0e
20461085 READLINE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents:
2225
diff
changeset
|
67 |
|
1434
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
68 |
ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
69 |
|
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
70 |
configure: $(CONFIGURE_32_and_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
71 |
|
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
131
diff
changeset
|
72 |
build: $(BUILD_32_and_64) |
131
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
73 |
|
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
131
diff
changeset
|
74 |
install: $(INSTALL_32_and_64) |
131
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
75 |
|
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
131
diff
changeset
|
76 |
test: $(TEST_32_and_64) |
131
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
77 |
|
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
78 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
79 |
|
651976f969f6
7027351 move readline/gm4 to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
diff
changeset
|
80 |
include ../../make-rules/depend.mk |