author | craig mohrman <craig.mohrman@oracle.com> |
Wed, 01 Jun 2011 14:24:54 -0700 | |
changeset 277 | 12ebd29ad46c |
parent 260 | cc1837bbe69e |
child 279 | c6af843791cd |
permissions | -rw-r--r-- |
2 | 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 |
# |
|
58
d8024c042a00
7011369 gmake complains about fresh userland bits
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
53
diff
changeset
|
21 |
# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. |
2 | 22 |
# |
23 |
||
32
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
31
diff
changeset
|
24 |
PATH=/usr/bin:/usr/gnu/bin |
280a7444e782
automatically generate intercomponent dependencies for build ordering
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
31
diff
changeset
|
25 |
|
127
3e3c266b3a81
7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
120
diff
changeset
|
26 |
# Default to looking for source archives on the internal mirror before we |
3e3c266b3a81
7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
120
diff
changeset
|
27 |
# hammer on the external repositories. |
145
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
142
diff
changeset
|
28 |
export DOWNLOAD_SEARCH_PATH += http://userland.us.oracle.com/source-archives/ |
127
3e3c266b3a81
7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
120
diff
changeset
|
29 |
|
3e3c266b3a81
7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
120
diff
changeset
|
30 |
# The workspace starts at the mercurial root |
3e3c266b3a81
7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
120
diff
changeset
|
31 |
export WS_TOP ?= $(shell hg root) |
3e3c266b3a81
7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
120
diff
changeset
|
32 |
|
177
fd9cb2273c9d
7015392 the build should really fail if the pkg tools fail
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
176
diff
changeset
|
33 |
export SHELLOPTS = pipefail |
fd9cb2273c9d
7015392 the build should really fail if the pkg tools fail
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
176
diff
changeset
|
34 |
SHELL= /bin/bash |
fd9cb2273c9d
7015392 the build should really fail if the pkg tools fail
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
176
diff
changeset
|
35 |
|
2 | 36 |
CONSOLIDATION = userland |
145
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
142
diff
changeset
|
37 |
PUBLISHER ?= $(CONSOLIDATION) |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
16
diff
changeset
|
38 |
|
38
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
34
diff
changeset
|
39 |
ROOT = / |
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
34
diff
changeset
|
40 |
|
29
eb4177698749
Generate the build number from the most recent mercurial tag
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
26
diff
changeset
|
41 |
# get the most recent build number from the last mercurial tag |
93
b579c7b1bb44
7016731 move zsh from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
85
diff
changeset
|
42 |
LAST_HG_TAG = $(shell hg tags -q | grep build- | head -1) |
29
eb4177698749
Generate the build number from the most recent mercurial tag
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
26
diff
changeset
|
43 |
LAST_BUILD_NUM = $(LAST_HG_TAG:build-%=%) |
eb4177698749
Generate the build number from the most recent mercurial tag
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
26
diff
changeset
|
44 |
|
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
16
diff
changeset
|
45 |
OS_VERSION = $(shell uname -r) |
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
16
diff
changeset
|
46 |
SOLARIS_VERSION = $(OS_VERSION:5.%=2.%) |
29
eb4177698749
Generate the build number from the most recent mercurial tag
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
26
diff
changeset
|
47 |
BUILD_NUM = 0.$(shell expr $(LAST_BUILD_NUM) + 1) |
26
8a9f4e791832
packaging changes including canonical manifest support with manifest validation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
16
diff
changeset
|
48 |
BUILD_VERSION = $(OS_VERSION)-$(BUILD_NUM) |
2 | 49 |
|
38
cd00ea74156e
package audits should pass pkglint
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
34
diff
changeset
|
50 |
|
2 | 51 |
COMPILER = studio |
6
20f80c019d73
add compiler date/time chatter reduction tools
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
52 |
BITS = 32 |
2 | 53 |
PYTHON_VERSION = 2.6 |
58
d8024c042a00
7011369 gmake complains about fresh userland bits
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
53
diff
changeset
|
54 |
PYTHON_VERSIONS = 2.6 |
2 | 55 |
|
145
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
142
diff
changeset
|
56 |
WS_LOGS = $(WS_TOP)/$(MACH)/logs |
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
142
diff
changeset
|
57 |
WS_REPO = $(WS_TOP)/$(MACH)/repo |
34
d20b10eba317
prepare for zone based component builds
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
58 |
WS_TOOLS = $(WS_TOP)/tools |
d20b10eba317
prepare for zone based component builds
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
59 |
WS_MAKE_RULES = $(WS_TOP)/make-rules |
d20b10eba317
prepare for zone based component builds
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
60 |
WS_COMPONENTS = $(WS_TOP)/components |
49 | 61 |
WS_INCORPORATIONS = $(WS_TOP)/incorporations |
145
1e2390f5555e
7020836 revert workaround in 7014413 now that pkglint doesn't complain
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
142
diff
changeset
|
62 |
WS_LINT_CACHE = $(WS_TOP)/$(MACH)/pkglint-cache |
2 | 63 |
|
34
d20b10eba317
prepare for zone based component builds
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
64 |
BASS_O_MATIC = $(WS_TOOLS)/bass-o-matic |
d20b10eba317
prepare for zone based component builds
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
65 |
|
94
e2364cad23ff
7019782 move tcsh to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
93
diff
changeset
|
66 |
CLONEY = $(WS_TOOLS)/cloney |
e2364cad23ff
7019782 move tcsh to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
93
diff
changeset
|
67 |
|
156
c2445b73a8b2
6949695 Would like to have perl 5.12 (use CONFIG_SHELL)
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
152
diff
changeset
|
68 |
CONFIG_SHELL = /bin/bash |
c2445b73a8b2
6949695 Would like to have perl 5.12 (use CONFIG_SHELL)
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
152
diff
changeset
|
69 |
|
34
d20b10eba317
prepare for zone based component builds
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
70 |
PKG_REPO = file:$(WS_REPO) |
59
7500d63edb42
7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
58
diff
changeset
|
71 |
|
186
3adedf0f9f4d
7034764 dangling link check fails when links and targets are in different packages
Danek Duvall <danek.duvall@oracle.com>
parents:
181
diff
changeset
|
72 |
# Set a default reference repository against which pkglint is run, in case it |
3adedf0f9f4d
7034764 dangling link check fails when links and targets are in different packages
Danek Duvall <danek.duvall@oracle.com>
parents:
181
diff
changeset
|
73 |
# hasn't been set in the environment. |
3adedf0f9f4d
7034764 dangling link check fails when links and targets are in different packages
Danek Duvall <danek.duvall@oracle.com>
parents:
181
diff
changeset
|
74 |
CANONICAL_REPO ?= http://ipkg.us.oracle.com/solaris11/dev/ |
3adedf0f9f4d
7034764 dangling link check fails when links and targets are in different packages
Danek Duvall <danek.duvall@oracle.com>
parents:
181
diff
changeset
|
75 |
|
72
4c33a310f793
7015633 move gtar to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
70
diff
changeset
|
76 |
COMPONENT_DIR = $(shell pwd) |
4c33a310f793
7015633 move gtar to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
70
diff
changeset
|
77 |
SOURCE_DIR = $(COMPONENT_DIR)/$(COMPONENT_SRC) |
4c33a310f793
7015633 move gtar to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
70
diff
changeset
|
78 |
BUILD_DIR = $(COMPONENT_DIR)/build |
59
7500d63edb42
7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
58
diff
changeset
|
79 |
PROTO_DIR = $(BUILD_DIR)/prototype/$(MACH) |
2 | 80 |
|
85
8098282b503b
7018226 move GNU screen to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
82
diff
changeset
|
81 |
ETCDIR = /etc |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
82 |
USRDIR = /usr |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
83 |
BINDIR = /bin |
220
3ff562b51ff5
7040638 CUPS (Common Unix Printing System) should move to Userland.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents:
219
diff
changeset
|
84 |
SBINDIR = /sbin |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
85 |
LIBDIR = /lib |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
86 |
USRBINDIR = $(USRDIR)/bin |
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
170
diff
changeset
|
87 |
USRSBINDIR = $(USRDIR)/sbin |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
88 |
USRLIBDIR = $(USRDIR)/lib |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
89 |
USRSHAREDIR = $(USRDIR)/share |
220
3ff562b51ff5
7040638 CUPS (Common Unix Printing System) should move to Userland.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents:
219
diff
changeset
|
90 |
USRINCDIR = $(USRDIR)/include |
3ff562b51ff5
7040638 CUPS (Common Unix Printing System) should move to Userland.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents:
219
diff
changeset
|
91 |
USRSHARELOCALEDIR = $(USRSHAREDIR)/locale |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
92 |
USRSHAREMANDIR = $(USRSHAREDIR)/man |
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
170
diff
changeset
|
93 |
USRSHAREDOCDIR = $(USRSHAREDIR)/doc |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
94 |
USRSHAREMAN1DIR = $(USRSHAREMANDIR)/man1 |
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
170
diff
changeset
|
95 |
USRSHAREMAN1MDIR = $(USRSHAREMANDIR)/man1m |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
96 |
USRSHAREMAN3DIR = $(USRSHAREMANDIR)/man3 |
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
151
diff
changeset
|
97 |
USRSHAREMAN4DIR = $(USRSHAREMANDIR)/man4 |
74
7e35801ce8b8
7016379 migrate elinks to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
72
diff
changeset
|
98 |
USRSHAREMAN5DIR = $(USRSHAREMANDIR)/man5 |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
99 |
USRLIBDIR64 = $(USRDIR)/lib/$(MACH64) |
220
3ff562b51ff5
7040638 CUPS (Common Unix Printing System) should move to Userland.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents:
219
diff
changeset
|
100 |
PROTOBINDIR = $(PROTO_DIR)/$(BINDIR) |
85
8098282b503b
7018226 move GNU screen to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
82
diff
changeset
|
101 |
PROTOETCDIR = $(PROTO_DIR)/$(ETCDIR) |
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
170
diff
changeset
|
102 |
PROTOETCSECDIR = $(PROTO_DIR)/$(ETCDIR)/security |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
103 |
PROTOUSRDIR = $(PROTO_DIR)/$(USRDIR) |
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
170
diff
changeset
|
104 |
PROTOLIBDIR = $(PROTO_DIR)/$(LIBDIR) |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
105 |
PROTOUSRBINDIR = $(PROTO_DIR)/$(USRBINDIR) |
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
170
diff
changeset
|
106 |
PROTOUSRSBINDIR = $(PROTO_DIR)/$(USRSBINDIR) |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
107 |
PROTOUSRLIBDIR = $(PROTO_DIR)/$(USRLIBDIR) |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
108 |
PROTOUSRLIBDIR64 = $(PROTO_DIR)/$(USRLIBDIR64) |
220
3ff562b51ff5
7040638 CUPS (Common Unix Printing System) should move to Userland.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents:
219
diff
changeset
|
109 |
PROTOUSRINCDIR = $(PROTO_DIR)/$(USRINCDIR) |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
110 |
PROTOUSRSHAREDIR = $(PROTO_DIR)/$(USRSHAREDIR) |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
111 |
PROTOUSRSHAREMANDIR = $(PROTO_DIR)/$(USRSHAREMANDIR) |
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
170
diff
changeset
|
112 |
PROTOUSRSHAREDOCDIR = $(PROTO_DIR)/$(USRSHAREDOCDIR) |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
113 |
PROTOUSRSHAREMAN1DIR = $(PROTO_DIR)/$(USRSHAREMAN1DIR) |
172
093198acf7d4
7018272 Move NTP to userland
Brian Utterback <Brian.Utterback@Oracle.COM>
parents:
170
diff
changeset
|
114 |
PROTOUSRSHAREMAN1MDIR = $(PROTO_DIR)/$(USRSHAREMAN1MDIR) |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
115 |
PROTOUSRSHAREMAN3DIR = $(PROTO_DIR)/$(USRSHAREMAN3DIR) |
152
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
151
diff
changeset
|
116 |
PROTOUSRSHAREMAN4DIR = $(PROTO_DIR)/$(USRSHAREMAN4DIR) |
f0ba422362c2
7030869 move git from sfw consolidation to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
151
diff
changeset
|
117 |
PROTOUSRSHAREMAN5DIR = $(PROTO_DIR)/$(USRSHAREMAN5DIR) |
220
3ff562b51ff5
7040638 CUPS (Common Unix Printing System) should move to Userland.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents:
219
diff
changeset
|
118 |
PROTOUSRSHARELOCALEDIR = $(PROTO_DIR)/$(USRSHARELOCALEDIR) |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
119 |
|
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
120 |
|
43
9f5ebe30300c
switch to CBE sunstudio12.1 compilers
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
40
diff
changeset
|
121 |
SFWBIN = /usr/sfw/bin |
220
3ff562b51ff5
7040638 CUPS (Common Unix Printing System) should move to Userland.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents:
219
diff
changeset
|
122 |
SFWINCLUDE = /usr/sfw/include |
43
9f5ebe30300c
switch to CBE sunstudio12.1 compilers
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
40
diff
changeset
|
123 |
SFWLIB = /usr/sfw/lib |
120
ef1efc113f13
7021528 move bison/gsed to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
116
diff
changeset
|
124 |
SFWLIB64 = /usr/sfw/lib/$(MACH64) |
64
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
125 |
SFWSHARE = /usr/sfw/share |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
126 |
SFWSHAREMAN = /usr/sfw/share/man |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
127 |
SFWSHAREMAN1 = /usr/sfw/share/man/man1 |
43
9f5ebe30300c
switch to CBE sunstudio12.1 compilers
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
40
diff
changeset
|
128 |
PROTOSFWBIN = $(PROTO_DIR)/$(SFWBIN) |
9f5ebe30300c
switch to CBE sunstudio12.1 compilers
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
40
diff
changeset
|
129 |
PROTOSFWLIB = $(PROTO_DIR)/$(SFWLIB) |
120
ef1efc113f13
7021528 move bison/gsed to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
116
diff
changeset
|
130 |
PROTOSFWLIB64 = $(PROTO_DIR)/$(SFWLIB64) |
64
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
131 |
PROTOSFWSHARE = $(PROTO_DIR)/$(SFWSHARE) |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
132 |
PROTOSFWSHAREMAN = $(PROTO_DIR)/$(SFWSHAREMAN) |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
133 |
PROTOSFWSHAREMAN1 = $(PROTO_DIR)/$(SFWSHAREMAN1) |
220
3ff562b51ff5
7040638 CUPS (Common Unix Printing System) should move to Userland.
Jiri Sasek <Jiri.Sasek@Sun.COM>
parents:
219
diff
changeset
|
134 |
PROTOSFWINCLUDE = $(PROTO_DIR)/$(SFWINCLUDE) |
64
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
135 |
|
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
136 |
GNUBIN = /usr/gnu/bin |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
137 |
GNUSHARE = /usr/gnu/share |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
138 |
GNUSHAREMAN = /usr/gnu/share/man |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
139 |
GNUSHAREMAN1 = /usr/gnu/share/man/man1 |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
140 |
PROTOGNUBIN = $(PROTO_DIR)/$(GNUBIN) |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
141 |
PROTOGNUSHARE = $(PROTO_DIR)/$(GNUSHARE) |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
142 |
PROTOGNUSHAREMAN = $(PROTO_DIR)/$(GNUSHAREMAN) |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
143 |
PROTOGNUSHAREMAN1 = $(PROTO_DIR)/$(GNUSHAREMAN1) |
43
9f5ebe30300c
switch to CBE sunstudio12.1 compilers
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
40
diff
changeset
|
144 |
|
16
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
145 |
# work around _TIME, _DATE, embedded date chatter in component builds |
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
146 |
# to use, set TIME_CONSTANT in the component Makefile and add $(CONSTANT_TIME) |
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
147 |
# to the appropriate {CONFIGURE|BUILD|INSTALL}_ENV |
34
d20b10eba317
prepare for zone based component builds
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
148 |
CONSTANT_TIME = LD_PRELOAD_32=$(WS_TOOLS)/time-$(MACH32).so |
d20b10eba317
prepare for zone based component builds
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
32
diff
changeset
|
149 |
CONSTANT_TIME += LD_PRELOAD_64=$(WS_TOOLS)/time-$(MACH64).so |
16
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
150 |
CONSTANT_TIME += TIME_CONSTANT=$(TIME_CONSTANT) |
6
20f80c019d73
add compiler date/time chatter reduction tools
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2
diff
changeset
|
151 |
|
12
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
152 |
# set MACH from uname -p to either sparc or i386 |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
153 |
MACH = $(shell uname -p) |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
154 |
|
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
155 |
# set MACH32 from MACH to either sparcv7 or i86 |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
156 |
MACH32_1 = $(MACH:sparc=sparcv7) |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
157 |
MACH32 = $(MACH32_1:i386=i86) |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
158 |
|
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
159 |
# set MACH64 from MACH to either sparcv9 or amd64 |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
160 |
MACH64_1 = $(MACH:sparc=sparcv9) |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
161 |
MACH64 = $(MACH64_1:i386=amd64) |
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
162 |
|
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
163 |
BUILD_DIR_32 = $(BUILD_DIR)/$(MACH32) |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
164 |
BUILD_DIR_64 = $(BUILD_DIR)/$(MACH64) |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
165 |
|
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
166 |
BUILD_32 = $(BUILD_DIR_32)/.built |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
167 |
BUILD_64 = $(BUILD_DIR_64)/.built |
12
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
168 |
BUILD_32_and_64 = $(BUILD_32) $(BUILD_64) |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
169 |
$(BUILD_DIR_32)/.built: BITS=32 |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
170 |
$(BUILD_DIR_64)/.built: BITS=64 |
12
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
171 |
|
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
172 |
INSTALL_32 = $(BUILD_DIR_32)/.installed |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
173 |
INSTALL_64 = $(BUILD_DIR_64)/.installed |
12
41aeb1fd8c2d
Fix MACH32/MACH64 so more than one architecture can build in the same workspace
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
7
diff
changeset
|
174 |
INSTALL_32_and_64 = $(INSTALL_32) $(INSTALL_64) |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
175 |
$(BUILD_DIR_32)/.install: BITS=32 |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
176 |
$(BUILD_DIR_64)/.install: BITS=64 |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
177 |
|
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
178 |
# set the default target for installation of the component |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
179 |
COMPONENT_INSTALL_TARGETS = install |
2 | 180 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
181 |
TEST_32 = $(BUILD_DIR_32)/.tested |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
182 |
TEST_64 = $(BUILD_DIR_64)/.tested |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
183 |
TEST_32_and_64 = $(TEST_32) $(TEST_64) |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
184 |
$(BUILD_DIR_32)/.tested: BITS=32 |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
185 |
$(BUILD_DIR_64)/.tested: BITS=64 |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
186 |
|
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
187 |
# set the default target for test of the component |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
188 |
COMPONENT_TEST_TARGETS = check |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
189 |
|
40
84267c1130e9
fix SPRO_ROOT usage to match ON and SFW and not be confusing
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
190 |
# BUILD_TOOLS is the root of all tools not normally installed on the system. |
84267c1130e9
fix SPRO_ROOT usage to match ON and SFW and not be confusing
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
191 |
BUILD_TOOLS = /ws/onnv-tools |
84267c1130e9
fix SPRO_ROOT usage to match ON and SFW and not be confusing
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
192 |
|
84267c1130e9
fix SPRO_ROOT usage to match ON and SFW and not be confusing
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
193 |
SPRO_ROOT = $(BUILD_TOOLS)/SUNWspro |
43
9f5ebe30300c
switch to CBE sunstudio12.1 compilers
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
40
diff
changeset
|
194 |
SPRO_VROOT = $(SPRO_ROOT)/sunstudio12.1 |
40
84267c1130e9
fix SPRO_ROOT usage to match ON and SFW and not be confusing
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
38
diff
changeset
|
195 |
|
127
3e3c266b3a81
7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
120
diff
changeset
|
196 |
GCC_ROOT = /usr/sfw |
2 | 197 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
198 |
CC.studio.32 = $(SPRO_VROOT)/bin/cc |
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
199 |
CXX.studio.32 = $(SPRO_VROOT)/bin/CC |
2 | 200 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
201 |
CC.studio.64 = $(SPRO_VROOT)/bin/cc |
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
202 |
CXX.studio.64 = $(SPRO_VROOT)/bin/CC |
2 | 203 |
|
151
f9e42a3f7095
7030982 hgk is delivered 444, breaks 'hg view'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
148
diff
changeset
|
204 |
CC.gcc.32 = $(GCC_ROOT)/bin/gcc |
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
205 |
CXX.gcc.32 = $(GCC_ROOT)/bin/g++ |
2 | 206 |
|
151
f9e42a3f7095
7030982 hgk is delivered 444, breaks 'hg view'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
148
diff
changeset
|
207 |
CC.gcc.64 = $(GCC_ROOT)/bin/gcc |
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
208 |
CXX.gcc.64 = $(GCC_ROOT)/bin/g++ |
2 | 209 |
|
210 |
CC = $(CC.$(COMPILER).$(BITS)) |
|
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
211 |
CXX = $(CXX.$(COMPILER).$(BITS)) |
2 | 212 |
|
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
213 |
lint.32 = $(SPRO_VROOT)/bin/lint -m32 |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
214 |
lint.64 = $(SPRO_VROOT)/bin/lint -m64 |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
215 |
|
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
216 |
LINT = $(lint.$(BITS)) |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
217 |
|
16
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
218 |
LD = /usr/bin/ld |
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
219 |
|
148
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
146
diff
changeset
|
220 |
PYTHON_VENDOR_PACKAGES.32 = /usr/lib/python$(PYTHON_VERSION)/vendor-packages |
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
146
diff
changeset
|
221 |
PYTHON_VENDOR_PACKAGES.64 = /usr/lib/python$(PYTHON_VERSION)/vendor-packages/64 |
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
146
diff
changeset
|
222 |
PYTHON_VENDOR_PACKAGES = $(PYTHON_VENDOR_PACKAGES.$(BITS)) |
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
146
diff
changeset
|
223 |
|
2 | 224 |
PYTHON.2.6.32 = /usr/bin/python2.6 |
47
28ef4b1fcfb1
64-bit python should use $(MACH64), not amd64
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
43
diff
changeset
|
225 |
PYTHON.2.6.64 = /usr/bin/$(MACH64)/python2.6 |
2 | 226 |
|
227 |
PYTHON.32 = $(PYTHON.$(PYTHON_VERSION).$(BITS)) |
|
228 |
PYTHON.64 = $(PYTHON.$(PYTHON_VERSION).$(BITS)) |
|
148
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
146
diff
changeset
|
229 |
PYTHON = $(PYTHON.$(PYTHON_VERSION).$(BITS)) |
2 | 230 |
|
146
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
145
diff
changeset
|
231 |
# The default is site-packages, but that directory belongs to the end-user. |
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
145
diff
changeset
|
232 |
# Modules which are shipped by the OS but not with the core Python distribution |
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
145
diff
changeset
|
233 |
# belong in vendor-packages. |
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
145
diff
changeset
|
234 |
PYTHON_LIB= /usr/lib/python$(PYTHON_VERSION)/vendor-packages |
8e22ba234817
7027466 Move nmap to Userland
Srinivasa Sarva <srinivasa.sarva@oracle.com>
parents:
145
diff
changeset
|
235 |
|
116
ae6a90899b42
7022452 move ant to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
109
diff
changeset
|
236 |
JAVA_HOME = /usr/jdk/instances/jdk1.6.0 |
ae6a90899b42
7022452 move ant to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
109
diff
changeset
|
237 |
|
260
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
238 |
# This is the default BUILD version of perl |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
239 |
# Not necessarily the system's default version, i.e. /usr/bin/perl |
277
12ebd29ad46c
7050602 userland consolidation should build with perl 5.12 by default
craig mohrman <craig.mohrman@oracle.com>
parents:
260
diff
changeset
|
240 |
PERL_VERSION = 5.12 |
260
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
241 |
|
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
242 |
PERL_VERSIONS = 5.8.4 5.12 |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
243 |
|
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
244 |
PERL.5.8.4 = /usr/perl5/5.8.4/bin/perl |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
245 |
PERL.5.12 = /usr/perl5/5.12/bin/perl |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
246 |
|
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
247 |
PERL = $(PERL.$(PERL_VERSION)) |
127
3e3c266b3a81
7013705 userland build needs local tarball caching
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
120
diff
changeset
|
248 |
|
260
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
249 |
PERL_ARCH = $(shell $(PERL) -e 'use Config; print $$Config{archname}') |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
250 |
# Optimally we should ask perl which C compiler was used but it doesn't |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
251 |
# result in a full path name. Only "c" is being recorded |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
252 |
# inside perl builds while we actually need a full path to |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
253 |
# the studio compiler. |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
254 |
#PERL_CC = $(shell $(PERL) -e 'use Config; print $$Config{cc}') |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
255 |
PERL_OPTIMIZE = $(shell $(PERL) -e 'use Config; print $$Config{optimize}') |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
256 |
|
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
257 |
PKG_MACROS += PERL_ARCH=$(PERL_ARCH) |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
258 |
PKG_MACROS += PERL_VERSION=$(PERL_VERSION) |
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
259 |
|
cc1837bbe69e
7047520 move perl-xml-parser and perl-xml-simple to userland consolidation
Craig Mohrman <craig.mohrman@oracle.com>
parents:
252
diff
changeset
|
260 |
CCSMAKE = /usr/ccs/bin/make |
2 | 261 |
GMAKE = /usr/gnu/bin/make |
262 |
GPATCH = /usr/gnu/bin/patch |
|
82
2f155565730b
7017244 move ggrep to userland (fix mismerge)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
80
diff
changeset
|
263 |
PATCH_LEVEL = 1 |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
264 |
GPATCH_BACKUP = --backup --version-control=numbered |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
265 |
GPATCH_FLAGS = -p$(PATCH_LEVEL) $(GPATCH_BACKUP) |
2 | 266 |
|
105
da9e87a40aec
7021891 repo created by build should be v4, not v3
Danek Duvall <danek.duvall@oracle.com>
parents:
102
diff
changeset
|
267 |
PKGREPO = /usr/bin/pkgrepo |
2 | 268 |
PKGSEND = /usr/bin/pkgsend |
70
c610cf9d3d5d
7016863 userland build fails in parallel
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
64
diff
changeset
|
269 |
PKGLINT = /usr/bin/pkglint |
2 | 270 |
|
160
4eabca2bceee
7032426 hal-cups-utils needs to move to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
156
diff
changeset
|
271 |
ACLOCAL = /usr/bin/aclocal-1.10 |
4eabca2bceee
7032426 hal-cups-utils needs to move to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
156
diff
changeset
|
272 |
AUTOMAKE = /usr/bin/automake-1.10 |
4eabca2bceee
7032426 hal-cups-utils needs to move to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
156
diff
changeset
|
273 |
AUTORECONF = /usr/bin/autoreconf |
4eabca2bceee
7032426 hal-cups-utils needs to move to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
156
diff
changeset
|
274 |
|
165
111c46cade93
7018146 move hplip to userland
sonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
parents:
160
diff
changeset
|
275 |
KSH93 = /usr/bin/ksh93 |
2 | 276 |
TOUCH = /usr/bin/touch |
277 |
MKDIR = /bin/mkdir -p |
|
278 |
RM = /bin/rm -f |
|
7
d42300cb8715
add license/copyright info for ips generation
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
6
diff
changeset
|
279 |
CP = /bin/cp -f |
142
6f1cb90a0ef3
7026996 move tomcat to userland
Petr Sumbera <petr.sumbera@oracle.com>
parents:
138
diff
changeset
|
280 |
MV = /bin/mv -f |
43
9f5ebe30300c
switch to CBE sunstudio12.1 compilers
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
40
diff
changeset
|
281 |
LN = /bin/ln |
9f5ebe30300c
switch to CBE sunstudio12.1 compilers
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
40
diff
changeset
|
282 |
SYMLINK = /bin/ln -s |
16
33aaaec59991
update _DATE/_TIME compiler chatter reduction bits.
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
12
diff
changeset
|
283 |
ENV = /usr/bin/env |
43
9f5ebe30300c
switch to CBE sunstudio12.1 compilers
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
40
diff
changeset
|
284 |
INSTALL = /usr/bin/ginstall |
138
089c2065503f
7016734 move pz7ip from sfw to userland
Danek Duvall <danek.duvall@oracle.com>
parents:
131
diff
changeset
|
285 |
CHMOD = /usr/bin/chmod |
224
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
220
diff
changeset
|
286 |
NAWK = /usr/bin/nawk |
b0ca638fab1b
7017965 Integrate BIND in to userland consolidation
Stacey Marshall <Stacey.Marshall@Oracle.COM>
parents:
220
diff
changeset
|
287 |
TEE = /usr/bin/tee |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
288 |
|
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
289 |
INS.dir= $(INSTALL) -d [email protected] |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
290 |
INS.file= $(INSTALL) -m 444 $< $(@D) |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
291 |
|
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
292 |
PKG_CONFIG_PATH.32 = /usr/lib/pkgconfig |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
293 |
PKG_CONFIG_PATH.64 = /usr/lib/$(MACH64)/pkgconfig |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
294 |
PKG_CONFIG_PATH = PKG_CONFIG_PATH.$(BITS) |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
295 |
|
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
296 |
|
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
297 |
# |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
298 |
# C preprocessor flag sets to ease feature selection. Add the required |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
299 |
# feature to your Makefile with CPPFLAGS += $(FEATURE_MACRO) and add to |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
300 |
# the component build with CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" or |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
301 |
# similiar. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
302 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
303 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
304 |
# Enables visibility of some c99 math functions that aren't visible by default. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
305 |
# What other side-effects are there? |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
306 |
CPP_C99_EXTENDED_MATH = -D_STDC_99 |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
307 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
308 |
# Enables large file support for components that have no other means of doing |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
309 |
# so. Use CPP_LARGEFILES and not the .32/.64 variety directly |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
310 |
CPP_LARGEFILES.32 = $(shell getconf LFS_CFLAGS) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
311 |
CPP_LARGEFILES.64 = $(shell getconf LFS64_CFLAGS) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
312 |
CPP_LARGEFILES = $(CPP_LARGEFILES.$(BITS)) |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
313 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
314 |
# Enables some #pragma redefine_extname to POSIX-compliant Standard C Library |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
315 |
# functions. Also avoids the component's #define _POSIX_C_SOURCE to some value |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
316 |
# we currently do not support. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
317 |
CPP_POSIX = -D_POSIX_C_SOURCE=200112L -D_POSIX_PTHREAD_SEMANTICS |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
318 |
|
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
319 |
# XPG6 mode. This option enables XPG6 conformance, plus extensions. |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
320 |
# Amongst other things, this option will cause system calls like |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
321 |
# popen (3C) and system (3C) to invoke the standards-conforming |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
322 |
# shell, /usr/xpg4/bin/sh, instead of /usr/bin/sh. Add studio_XPG6MODE to |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
323 |
# CFLAGS instead of using this directly |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
324 |
CPP_XPG6MODE= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1 -D_XPG6 |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
325 |
|
200
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
326 |
# XPG5 mode. These options are specific for C++, where _XPG6, |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
327 |
# _XOPEN_SOURCE=600 and C99 are illegal. -D__EXTENSIONS__=1 is legal in C++. |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
328 |
CPP_XPG5MODE= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__=1 -D_XPG5 |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
329 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
330 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
331 |
# Studio C compiler flag sets to ease feature selection. Add the required |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
332 |
# feature to your Makefile with CFLAGS += $(FEATURE_MACRO) and add to the |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
333 |
# component build with CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" or similiar. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
334 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
335 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
336 |
# Generate 32/64 bit objects |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
337 |
CC_BITS = -m$(BITS) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
338 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
339 |
# Code generation instruction set and optimization 'hints'. Use studio_XBITS |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
340 |
# and not the .arch.bits variety directly. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
341 |
studio_XBITS.sparc.32 = -xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
342 |
studio_XBITS.sparc.64 = -xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 |
102
1a8b07a3e826
7020772 userland build should provide more macros for common flags (fix cflags)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
343 |
studio_XBITS.i386.32 = -xchip=pentium |
108
2cfc48b87a85
7020772 userland build should provide more macros for common flags (fix cflags)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
105
diff
changeset
|
344 |
studio_XBITS.i386.64 = -xchip=generic -Ui386 -U__i386 |
102
1a8b07a3e826
7020772 userland build should provide more macros for common flags (fix cflags)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
345 |
studio_XBITS = $(studio_XBITS.$(MACH).$(BITS)) |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
346 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
347 |
# Turn on recognition of supported C99 language features and enable the 1999 C |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
348 |
# standard library semantics of routines that appear in both the 1990 and |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
349 |
# 1999 C standard. To use set studio_C99MODE=$(studio_99_ENABLE) in your |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
350 |
# component Makefile. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
351 |
studio_C99_ENABLE = -xc99=all |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
352 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
353 |
# Turn off recognition of C99 language features, and do not enable the 1999 C |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
354 |
# standard library semantics of routines that appeared in both the 1990 and |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
355 |
# 1999 C standard. To use set studio_C99MODE=$(studio_99_DISABLE) in your |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
356 |
# component Makefile. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
357 |
studio_C99_DISABLE = -xc99=none |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
358 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
359 |
# Use the compiler default 'xc99=all,no_lib' |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
360 |
studio_C99MODE = |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
361 |
|
200
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
362 |
# For C++, compatibility with C99 (which is technically illegal) is |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
363 |
# enabled in a different way. So, we must use a different macro for it. |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
364 |
studio_cplusplus_C99_ENABLE = -xlang=c99 |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
365 |
|
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
366 |
# Turn it off. |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
367 |
studio_cplusplus_C99_DISABLE = |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
368 |
|
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
369 |
# And this is the macro you should actually use |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
370 |
studio_cplusplus_C99MODE = |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
371 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
372 |
# Allow zero-sized struct/union declarations and void functions with return |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
373 |
# statements. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
374 |
studio_FEATURES_EXTENSIONS = -features=extensions |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
375 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
376 |
# Control the Studio optimization level. |
102
1a8b07a3e826
7020772 userland build should provide more macros for common flags (fix cflags)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
377 |
studio_OPT.sparc.32 = -xO4 |
1a8b07a3e826
7020772 userland build should provide more macros for common flags (fix cflags)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
378 |
studio_OPT.sparc.64 = -xO4 |
1a8b07a3e826
7020772 userland build should provide more macros for common flags (fix cflags)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
379 |
studio_OPT.i386.32 = -xO4 |
1a8b07a3e826
7020772 userland build should provide more macros for common flags (fix cflags)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
380 |
studio_OPT.i386.64 = -xO4 |
1a8b07a3e826
7020772 userland build should provide more macros for common flags (fix cflags)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
381 |
studio_OPT = $(studio_OPT.$(MACH).$(BITS)) |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
382 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
383 |
# Studio PIC code generation. Use CC_PIC instead to select PIC code generation. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
384 |
studio_PIC = -KPIC -DPIC |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
385 |
|
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
386 |
# The Sun Studio 11 compiler has changed the behaviour of integer |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
387 |
# wrap arounds and so a flag is needed to use the legacy behaviour |
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
388 |
# (without this flag panics/hangs could be exposed within the source). |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
389 |
# This is used through studio_IROPTS, not the 'sparc' variety. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
390 |
studio_IROPTS.sparc = -W2,-xwrap_int |
102
1a8b07a3e826
7020772 userland build should provide more macros for common flags (fix cflags)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
391 |
studio_IROPTS = $(studio_IROPTS.$(MACH)) |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
392 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
393 |
# Control register usage for generated code. SPARC ABI requires system |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
394 |
# libraries not to use application registers. x86 requires 'no%frameptr' at |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
395 |
# x04 or higher. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
396 |
studio_XREGS.sparc = -xregs=no%appl,float |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
397 |
studio_XREGS.i386 = -xregs=no%frameptr |
102
1a8b07a3e826
7020772 userland build should provide more macros for common flags (fix cflags)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
99
diff
changeset
|
398 |
studio_XREGS = $(studio_XREGS.$(MACH)) |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
399 |
|
109
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
400 |
# Set data alignment on sparc to reasonable values, 8 byte alignment for 32 bit |
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
401 |
# objects and 16 byte alignment for 64 bit objects. This is added to CFLAGS by |
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
402 |
# default. |
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
403 |
studio_ALIGN.sparc.32 = -xmemalign=8s |
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
404 |
studio_ALIGN.sparc.64 = -xmemalign=16s |
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
405 |
studio_ALIGN = $(studio_ALIGN.$(MACH).$(BITS)) |
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
406 |
|
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
407 |
# Studio shorthand for building multi-threaded code, enables -D_REENTRANT and |
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
408 |
# linking with threadin support. This is added to CFLAGS by default, override |
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
409 |
# studio_MT to turn this off. |
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
410 |
studio_MT = -mt |
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
411 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
412 |
# See CPP_XPG6MODE comment above. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
413 |
studio_XPG6MODE = $(studio_C99MODE) $(CPP_XPG6MODE) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
414 |
XPG6MODE = $(studio_XPG6MODE) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
415 |
|
200
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
416 |
# See CPP_XPG5MODE comment above. You can only use this in C++, not in C99. |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
417 |
studio_XPG5MODE = $(studio_cplusplus_C99MODE) $(CPP_XPG5MODE) |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
418 |
XPG5MODE = $(studio_XPG5MODE) |
936900594dba
7031770 libmng needs to move to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
186
diff
changeset
|
419 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
420 |
# Default Studio C compiler flags. Add the required feature to your Makefile |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
421 |
# with CFLAGS += $(FEATURE_MACRO) and add to the component build with |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
422 |
# CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" or similiar. In most cases, it |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
423 |
# should not be necessary to add CFLAGS to any environment other than the |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
424 |
# configure environment. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
425 |
CFLAGS.studio += $(studio_OPT) $(studio_XBITS) $(studio_XREGS) \ |
109
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
426 |
$(studio_IROPTS) $(studio_C99MODE) $(studio_ALIGN) \ |
07cc6a1a08ad
7020772 userland build should provide more macros for common flags (add missing)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
108
diff
changeset
|
427 |
$(studio_MT) |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
428 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
429 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
430 |
# GNU C compiler flag sets to ease feature selection. Add the required |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
431 |
# feature to your Makefile with CFLAGS += $(FEATURE_MACRO) and add to the |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
432 |
# component build with CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" or similiar. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
433 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
434 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
435 |
# GCC Compiler optimization flag |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
436 |
gcc_OPT = -O3 |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
437 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
438 |
# GCC PIC code generation. Use CC_PIC instead to select PIC code generation. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
439 |
gcc_PIC = -fPIC -DPIC |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
440 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
441 |
# Generic macro for PIC code generation. Use this macro instead of the |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
442 |
# compiler specific variant. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
443 |
CC_PIC = $($(COMPILER)_PIC) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
444 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
445 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
446 |
# Default GNU C compiler flags. Add the required feature to your Makefile |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
447 |
# with CFLAGS += $(FEATURE_MACRO) and add to the component build with |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
448 |
# CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" or similiar. In most cases, it |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
449 |
# should not be necessary to add CFLAGS to any environment other than the |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
450 |
# configure environment. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
451 |
CFLAGS.gcc += $(gcc_OPT) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
452 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
453 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
454 |
# Build 32 or 64 bit objects. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
455 |
CFLAGS += $(CC_BITS) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
456 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
457 |
# Add compiler specific 'default' features |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
458 |
CFLAGS += $(CFLAGS.$(COMPILER)) |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
459 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
460 |
|
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
461 |
# Studio C++ requires -norunpath to avoid adding its location into the RUNPATH |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
462 |
# to C++ applications. |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
463 |
studio_NORUNPATH = -norunpath |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
464 |
|
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
465 |
# To link in standard mode (the default mode) without any C++ libraries |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
466 |
# (except libCrun), use studio_LIBRARY_NONE in your component Makefile. |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
467 |
studio_LIBRARY_NONE = -library=%none |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
468 |
|
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
469 |
# Don't link C++ with any C++ Runtime or Standard C++ library |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
470 |
studio_CXXLIB_NONE = -xnolib |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
471 |
|
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
472 |
# Link C++ with the Studio C++ Runtime and Standard C++ library. This is the |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
473 |
# default for "standard" mode. |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
474 |
studio_CXXLIB_CSTD = -library=Cstd,Crun |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
475 |
|
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
476 |
# link C++ with the Studio C++ Runtime and Apache Standard C++ library |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
477 |
studio_CXXLIB_APACHE = -library=stdcxx4,Crun |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
478 |
|
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
479 |
# Add the C++ ABI compatibility flags for older ABI compatibility. The default |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
480 |
# is "standard mode" (-compat=5) |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
481 |
studio_COMPAT_VERSION_4 = -compat=4 |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
482 |
|
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
483 |
# Tell the compiler that we don't want the studio runpath added to the |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
484 |
# linker flags. We never want the Studio location added to the RUNPATH. |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
485 |
CXXFLAGS += $($(COMPILER)_NORUNPATH) |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
486 |
|
219
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
207
diff
changeset
|
487 |
# Build 32 or 64 bit objects in C++ as well. |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
207
diff
changeset
|
488 |
CXXFLAGS += $(CC_BITS) |
22d9e175d379
7041521 GNU MP to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
207
diff
changeset
|
489 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
490 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
491 |
# Solaris linker flag sets to ease feature selection. Add the required |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
492 |
# feature to your Makefile with LDFLAGS += $(FEATURE_MACRO) and add to the |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
493 |
# component build with CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" or similiar. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
494 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
495 |
|
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
496 |
# set the bittedness that we want to link |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
497 |
LD_BITS = -$(BITS) |
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
498 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
499 |
# Reduce the symbol table size, effectively conflicting with -g. We should |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
500 |
# get linker guidance here. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
501 |
LD_Z_REDLOCSYM = -z redlocsym |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
502 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
503 |
# Cause the linker to rescan archive libraries and resolve remaining unresolved |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
504 |
# symbols recursively until all symbols are resolved. Components should be |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
505 |
# linking in the libraries they need, in the required order. This should |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
506 |
# only be required if the component's native build is horribly broken. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
507 |
LD_Z_RESCAN_NOW = -z rescan-now |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
508 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
509 |
LD_Z_TEXT = -z direct |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
510 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
511 |
# make sure all symbols are defined. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
512 |
LD_Z_DEFS = -z defs |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
513 |
|
170
14cadb780400
7033275 userland should default vendor to 'Oracle Corporation'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
514 |
# eliminate unreferenced dynamic dependencies |
14cadb780400
7033275 userland should default vendor to 'Oracle Corporation'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
515 |
LD_Z_IGNORE = -z ignore |
14cadb780400
7033275 userland should default vendor to 'Oracle Corporation'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
516 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
517 |
# use direct binding |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
518 |
LD_B_DIRECT = -Bdirect |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
519 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
520 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
521 |
# More Solaris linker flags that we want to be sure that everyone gets. This |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
522 |
# is automatically added to the calling environment during the 'build' and |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
523 |
# 'install' phases of the component build. Each individual feature can be |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
524 |
# turned off by adding FEATURE_MACRO= to the component Makefile. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
525 |
# |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
526 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
527 |
# Create a non-executable stack when linking. |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
172
diff
changeset
|
528 |
LD_MAP_NOEXSTK.i386 = -M /usr/lib/ld/map.noexstk |
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
172
diff
changeset
|
529 |
LD_MAP_NOEXSTK.sparc = -M /usr/lib/ld/map.noexstk |
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
530 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
531 |
# Create a non-executable bss segment when linking. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
532 |
LD_MAP_NOEXBSS = -M /usr/lib/ld/map.noexbss |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
533 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
534 |
# Create a non-executable data segment when linking. Due to PLT needs, the |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
535 |
# data segment must be executable on sparc, but the bss does not. |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
536 |
# see mapfile comments for more information |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
537 |
LD_MAP_NOEXDATA.i386 = -M /usr/lib/ld/map.noexdata |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
538 |
LD_MAP_NOEXDATA.sparc = $(LD_MAP_NOEXBSS) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
539 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
540 |
# Page alignment |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
541 |
LD_MAP_PAGEALIGN = -M /usr/lib/ld/map.pagealign |
61
7684fe2a9eb5
7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
59
diff
changeset
|
542 |
|
99
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
543 |
# Linker options to add when only building libraries |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
544 |
LD_OPTIONS_SO += $(LD_Z_TEXT) $(LD_Z_DEFS) |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
545 |
|
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
546 |
# Default linker options that everyone should get. Do not add additional |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
547 |
# libraries to this macro, as it will apply to everything linked during the |
c15c9099bb44
6841644 OpenSolaris Python should support gdbm
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
94
diff
changeset
|
548 |
# component build. |
176
11a04b640bf2
7029475 Move gnu-emacs to userland
Ali Bahrami <Ali.Bahrami@Oracle.COM>
parents:
172
diff
changeset
|
549 |
LD_OPTIONS += $(LD_MAP_NOEXSTK.$(MACH)) $(LD_MAP_NOEXDATA.$(MACH)) \ |
170
14cadb780400
7033275 userland should default vendor to 'Oracle Corporation'
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
166
diff
changeset
|
550 |
$(LD_MAP_PAGEALIGN) $(LD_B_DIRECT) $(LD_Z_IGNORE) |
64
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
551 |
|
62
519e6e3788ce
7013265 userland could use a tool to aid in SUNW package generation
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
61
diff
changeset
|
552 |
# Environment variables and arguments passed into the build and install |
64
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
553 |
# environment(s). These are the initial settings. |
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
554 |
COMPONENT_BUILD_ENV= \ |
82
2f155565730b
7017244 move ggrep to userland (fix mismerge)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
80
diff
changeset
|
555 |
LD_OPTIONS="$(LD_OPTIONS)" |
64
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
556 |
COMPONENT_INSTALL_ENV= \ |
82
2f155565730b
7017244 move ggrep to userland (fix mismerge)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
80
diff
changeset
|
557 |
LD_OPTIONS="$(LD_OPTIONS)" |
64
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
558 |
|
a4b12971cf99
7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
62
diff
changeset
|
559 |
# Add any bit-specific settings |
62
519e6e3788ce
7013265 userland could use a tool to aid in SUNW package generation
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
61
diff
changeset
|
560 |
COMPONENT_BUILD_ENV += $(COMPONENT_BUILD_ENV.$(BITS)) |
519e6e3788ce
7013265 userland could use a tool to aid in SUNW package generation
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
61
diff
changeset
|
561 |
COMPONENT_BUILD_ARGS += $(COMPONENT_BUILD_ARGS.$(BITS)) |
519e6e3788ce
7013265 userland could use a tool to aid in SUNW package generation
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
61
diff
changeset
|
562 |
COMPONENT_INSTALL_ENV += $(COMPONENT_INSTALL_ENV.$(BITS)) |
519e6e3788ce
7013265 userland could use a tool to aid in SUNW package generation
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
61
diff
changeset
|
563 |
COMPONENT_INSTALL_ARGS += $(COMPONENT_INSTALL_ARGS.$(BITS)) |
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
564 |
|
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
565 |
# declare these phony so that we avoid filesystem conflicts. |
207
6bd9160c5c3a
7038816 userland makefiles should declare some phony targets. (fix incrementals)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
206
diff
changeset
|
566 |
.PHONY: prep build install publish test clean clobber |
206
a4474882bf60
7010355 python needs to be packaged to separate out non-core dependencies
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
200
diff
changeset
|
567 |
|
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
568 |
# If there are no tests to execute |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
569 |
NO_TESTS = test-nothing |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
570 |
test-nothing: |
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
177
diff
changeset
|
571 |
@echo "There are no tests available at this time." |