author | Stefan Teleman <stefan.teleman@oracle.com> |
Tue, 17 Mar 2015 19:06:56 -0700 | |
changeset 3966 | cca72467a46d |
parent 3823 | 8a78c695182b |
child 4252 | 891a844655c4 |
permissions | -rw-r--r-- |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
1 |
# CDDL HEADER START |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
2 |
# |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
3 |
# The contents of this file are subject to the terms of the |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
4 |
# Common Development and Distribution License (the "License"). |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
5 |
# You may not use this file except in compliance with the License. |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
6 |
# |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
7 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
8 |
# or http://www.opensolaris.org/os/licensing. |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
9 |
# See the License for the specific language governing permissions |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
10 |
# and limitations under the License. |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
11 |
# |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
12 |
# When distributing Covered Code, include this CDDL HEADER in each |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
13 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
14 |
# If applicable, add the following below this CDDL HEADER, with the |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
15 |
# fields enclosed by brackets "[]" replaced with your own identifying |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
16 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
17 |
# |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
18 |
# CDDL HEADER END |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
19 |
# |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
20 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
21 |
# |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
22 |
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
23 |
# |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
24 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
25 |
include ../../make-rules/shared-macros.mk |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
26 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
27 |
PATH=$(dir $(CC)):/usr/bin:/usr/gnu/bin |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
28 |
|
1048
e82fa02a4d16
15863968 Auto-generation of Userland gate list - Phase 1.
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
29 |
COMPONENT_NAME= gnump |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_VERSION= 4.3.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:
219
diff
changeset
|
31 |
COMPONENT_PROJECT_URL= http://gmplib.org/ |
1048
e82fa02a4d16
15863968 Auto-generation of Userland gate list - Phase 1.
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
32 |
COMPONENT_SRC_NAME= gmp |
e82fa02a4d16
15863968 Auto-generation of Userland gate list - Phase 1.
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
33 |
COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION) |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
34 |
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:
774
diff
changeset
|
35 |
COMPONENT_ARCHIVE_HASH= \ |
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
774
diff
changeset
|
36 |
sha256:7be3ad1641b99b17f6a8be6a976f1f954e997c41e919ad7e0c418fe848c13c97 |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
37 |
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gmp/$(COMPONENT_ARCHIVE) |
1058
34d7aaa03423
15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents:
1048
diff
changeset
|
38 |
COMPONENT_BUGDB= library/gnump |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
39 |
|
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
40 |
TPNO= 16955 |
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1434
diff
changeset
|
41 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
42 |
include $(WS_MAKE_RULES)/prep.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
43 |
include $(WS_MAKE_RULES)/configure.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
44 |
include $(WS_MAKE_RULES)/ips.mk |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
45 |
include $(WS_MAKE_RULES)/lint-libraries.mk |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
46 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
47 |
PATCH_LEVEL = 0 |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
48 |
|
774
d0cbca26a17c
7035978 parfait support for userland bits
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
49 |
CLOBBER_PATHS += libgmp.pc libgmpxx.pc |
d0cbca26a17c
7035978 parfait support for userland bits
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
609
diff
changeset
|
50 |
|
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
51 |
CFLAGS += -features=extinl,extensions |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
52 |
CFLAGS += -xustr=ascii_utf16_ushort -xcsi |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
53 |
# -xthreadvar=%all: allow thread-local storage via __thread |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
54 |
# qualifier for all types of variables (global, static and dynamic) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
55 |
CFLAGS += -xthreadvar=%all $(CPP_C99_EXTENDED_MATH) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
56 |
CFLAGS += $(studio_C99_ENABLE) $(CPP_XPG6MODE) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
57 |
CFLAGS += $(studio_PIC) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
58 |
CXXFLAGS = -mt -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic |
3823
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
59 |
CXXFLAGS += -instances=global -template=geninlinefuncs |
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
60 |
CXXFLAGS += -xbuiltin=%none -xinline=%auto -xlibmil |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
61 |
CXXFLAGS += -xustr=ascii_utf16_ushort -xlibmopt |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
62 |
CXXFLAGS += $(studio_cplusplus_C99_ENABLE) $(studio_PIC) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
63 |
CXXFLAGS += $(CPP_XPG5MODE) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
64 |
# -Qoption ccfe -features=zla: allow VLA/ZLA in C++ (like in C99) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
65 |
CXXFLAGS += -Qoption ccfe -features=zla |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
66 |
CXXFLAGS += -xF=%none -xthreadvar=%all |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
67 |
CPPFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
68 |
LDFLAGS += $(LD_Z_REDLOCSYM) $(LD_Z_RESCAN_NOW) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
69 |
|
3823
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
70 |
COMPONENT_TEST_TRANSFORMS += \ |
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
71 |
'-e "/libtool/d"' \ |
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
72 |
'-e "/-m32/d"' \ |
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
73 |
'-e "/-m64/d"' \ |
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
74 |
'-e "/DEPDIR=/d"' \ |
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
75 |
'-e "/ld: warning/d"' \ |
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
76 |
'-e "/creating /d"' \ |
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
77 |
'-e "/gm4 /d"' \ |
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
78 |
'-e "s/^make\[[0-9]\{1,\}\]/make/g"' |
8a78c695182b
20460374 GNUMP should have some master test results to compare against
Stefan Teleman <stefan.teleman@oracle.com>
parents:
3817
diff
changeset
|
79 |
|
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
80 |
# assembler detection for GNU MP and GNU MPFR is done via MPN_PATH |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
81 |
# at ./configure time. GNU MPFR wants to know GNU MP's MPN_PATH. |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
82 |
MPN32_i386 = x86/pentium x86 generic |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
83 |
MPN64_i386 = x86_64/pentium4 x86_64 generic |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
84 |
MPN32_sparc = sparc32/v9 sparc32 generic |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
85 |
MPN64_sparc = sparc64 generic |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
86 |
MPN_32 = $(MPN32_$(MACH)) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
87 |
MPN_64 = $(MPN64_$(MACH)) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
88 |
GM4 = /usr/bin/gm4 |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
89 |
GSED = /usr/bin/gsed |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
90 |
# libgmpxx.so.4 always gets built with unnecessary paths in RUNPATH/RPATH |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
91 |
ELFEDIT = /usr/bin/elfedit |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
92 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
93 |
CONFIGURE_ENV += CC="$(CC)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
94 |
CONFIGURE_ENV += CXX="$(CXX)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
95 |
CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
96 |
CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
97 |
CONFIGURE_ENV += CXXFLAGS="$(CC_BITS) $(CXXFLAGS)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
98 |
CONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
99 |
CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
100 |
CONFIGURE_ENV += CXXLD="$(CXX) $(CC_BITS) $(CXXFLAGS) $(LDFLAGS)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
101 |
CONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
102 |
CONFIGURE_ENV += CPP_FOR_BUILD="$(CC) $(CPPFLAGS) $(CFLAGS) -E" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
103 |
CONFIGURE_ENV += CXXCPP="$(CXX) $(CC_BITS) $(CPPFLAGS) $(CXXFLAGS) -E" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
104 |
CONFIGURE_ENV += INSTALL="$(INSTALL)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
105 |
CONFIGURE_ENV += CC_FOR_BUILD="$(CC) $(CPPFLAGS) $(CFLAGS)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
106 |
CONFIGURE_ENV += M4="$(GM4)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
107 |
CONFIGURE_ENV += SED="$(GSED)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
108 |
CONFIGURE_ENV += ABI="$(BITS)" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
109 |
CONFIGURE_ENV += "MPN_PATH=$(MPN_$(BITS))" |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
110 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
111 |
CONFIGURE_OPTIONS += --includedir=/usr/include/gmp |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
112 |
CONFIGURE_OPTIONS += --localstatedir=/var |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
113 |
CONFIGURE_OPTIONS += --enable-shared |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
114 |
CONFIGURE_OPTIONS += --disable-static |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
115 |
CONFIGURE_OPTIONS += --disable-libtool-lock |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
116 |
CONFIGURE_OPTIONS += --disable-alloca |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
117 |
CONFIGURE_OPTIONS += --enable-cxx |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
118 |
CONFIGURE_OPTIONS += --enable-fft |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
119 |
CONFIGURE_OPTIONS += --enable-mpbsd |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
120 |
CONFIGURE_OPTIONS += --disable-fat |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
121 |
CONFIGURE_OPTIONS += --with-pic |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
122 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
123 |
PROTOUSRSHAREINFODIR = $(PROTOUSRSHAREDIR)/info |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
124 |
PROTOUSRSHAREHTMLDIR = $(PROTOUSRSHAREDIR)/doc/gmp/html |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
125 |
PROTOUSRSHAREMAN3DIR = $(PROTOUSRSHAREDIR)/man/man3 |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
126 |
PROTOUSRINCLUDEDIR = $(PROTOUSRDIR)/include |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
127 |
PROTOPKGCONFIGDIR = $(PROTOUSRLIBDIR)/pkgconfig |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
128 |
PROTOPKGCONFIGDIR64 = $(PROTOUSRLIBDIR64)/pkgconfig |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
129 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
130 |
COMPONENT_POST_INSTALL_ACTION = \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
131 |
( $(MKDIR) $(PROTOUSRSHAREHTMLDIR) ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
132 |
$(MKDIR) $(PROTOUSRSHAREMAN3DIR) ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
133 |
$(MKDIR) $(PROTOPKGCONFIGDIR) ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
134 |
$(MKDIR) $(PROTOPKGCONFIGDIR64) ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
135 |
$(ELFEDIT) -e "dyn:runpath $(USRLIBDIR)" \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
136 |
$(PROTOUSRLIBDIR)/libgmpxx.so.4.1.2 ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
137 |
$(ELFEDIT) -e "dyn:runpath $(USRLIBDIR64)" \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
138 |
$(PROTOUSRLIBDIR64)/libgmpxx.so.4.1.2 ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
139 |
$(ELFEDIT) -e "dyn:rpath $(USRLIBDIR)" \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
140 |
$(PROTOUSRLIBDIR)/libgmpxx.so.4.1.2 ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
141 |
$(ELFEDIT) -e "dyn:rpath $(USRLIBDIR64)" \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
142 |
$(PROTOUSRLIBDIR64)/libgmpxx.so.4.1.2 ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
143 |
$(GSED) -e "s/MACH64/$(MACH64)/g" \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
144 |
$(COMPONENT_DIR)/Solaris/libgmp-64.pc > $(COMPONENT_DIR)/libgmp.pc ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
145 |
$(GSED) -e "s/MACH64/$(MACH64)/g" \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
146 |
$(COMPONENT_DIR)/Solaris/libgmpxx-64.pc > \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
147 |
$(COMPONENT_DIR)/libgmpxx.pc ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
148 |
$(MV) $(PROTOUSRINCLUDEDIR)/gmp.h $(PROTOUSRINCLUDEDIR)/gmp/ ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
149 |
$(MV) $(PROTOUSRINCLUDEDIR)/mp.h $(PROTOUSRINCLUDEDIR)/gmp/ ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
150 |
$(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/index.html \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
151 |
$(PROTOUSRSHAREHTMLDIR)/ ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
152 |
$(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/libgmp.pc \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
153 |
$(PROTOPKGCONFIGDIR) ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
154 |
$(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/libgmpxx.pc \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
155 |
$(PROTOPKGCONFIGDIR) ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
156 |
$(INSTALL) -m 0644 $(COMPONENT_DIR)/libgmp.pc \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
157 |
$(PROTOPKGCONFIGDIR64) ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
158 |
$(INSTALL) -m 0644 $(COMPONENT_DIR)/libgmpxx.pc \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
159 |
$(PROTOPKGCONFIGDIR64) ; \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
160 |
$(INSTALL) -m 0644 $(COMPONENT_DIR)/Solaris/libgmp.3 \ |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
161 |
$(PROTOUSRSHAREMAN3DIR)/ ) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
162 |
|
1434
c782e620dd26
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
1058
diff
changeset
|
163 |
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
|
164 |
|
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
165 |
# common targets |
2225
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
166 |
configure: $(CONFIGURE_32_and_64) |
f064d3d3190d
20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents:
1948
diff
changeset
|
167 |
|
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
168 |
build: $(BUILD_32_and_64) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
169 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
170 |
install: $(INSTALL_32_and_64) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
171 |
|
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
172 |
test: $(TEST_32_and_64) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff
changeset
|
173 |
|
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
174 |
REQUIRED_PACKAGES += system/library |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
175 |
REQUIRED_PACKAGES += system/library/c++-runtime |