author | Lukas Rovensky <Lukas.Rovensky@oracle.com> |
Mon, 29 Oct 2012 09:19:32 -0700 | |
changeset 1032 | 9d55cba1f5fb |
parent 800 | 2ad056ed89ec |
child 1058 | 34d7aaa03423 |
permissions | -rw-r--r-- |
243
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
1 |
# |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
3 |
# |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
7 |
# |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
12 |
# |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
18 |
# |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
20 |
# |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
21 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
22 |
# |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
370
diff
changeset
|
23 |
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
243
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
24 |
# |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
25 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
27 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= gdb |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION= 6.8 |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
800
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
370
diff
changeset
|
32 |
COMPONENT_ARCHIVE_HASH= \ |
2ad056ed89ec
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
370
diff
changeset
|
33 |
sha256:a3c5455f30ffb3e6eeafb9e54598b48f9fbf46e3e99f431120360c183ddcc889 |
243
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/gdb/$(COMPONENT_ARCHIVE) |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
35 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
36 |
include ../../make-rules/prep.mk |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
37 |
include ../../make-rules/configure.mk |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
38 |
include ../../make-rules/ips.mk |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
39 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
40 |
# optimization level lowered to -xO3 to address failures in the |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
41 |
# gdb test suite at -xO4. |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
42 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
43 |
studio_OPT.sparc.32 = -xO3 |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
44 |
studio_OPT.sparc.64 = -xO3 |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
45 |
studio_OPT.i386.32 = -xO3 |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
46 |
studio_OPT.i386.64 = -xO3 |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
47 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
48 |
IPS_COMPONENT_VERSION = 6.8 |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
49 |
COMPONENT_PROJECT_URL = http://www.gnu.org/software/gdb/ |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
50 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
51 |
CURSES_DIR_32 = /usr/gnu/lib |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
52 |
CURSES_DIR_64 = /usr/gnu/lib/$(MACH64) |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
53 |
CURSES_DIR = $(CURSES_DIR_$(BITS)) |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
54 |
LDFLAGS += -L$(CURSES_DIR) -R$(CURSES_DIR) |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
55 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
56 |
# `echo $(CFLAGS)` and `echo $(LDFLAGS)` used to |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
57 |
# work around problem with extra blank characters |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
58 |
# inserted into configrue option strings during |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
59 |
# nested configure invocations within the gdb build. |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
60 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
61 |
CONFIGURE_ENV += CFLAGS="`echo $(CFLAGS)`" |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
62 |
CONFIGURE_ENV += LDFLAGS="`echo $(LDFLAGS)`" |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
63 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
64 |
CONFIGURE_OPTIONS += --with-system-readline |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
65 |
CONFIGURE_OPTIONS += --with-x=no |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
66 |
CONFIGURE_OPTIONS += --with-curses |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
67 |
CONFIGURE_OPTIONS += --with-libexpat-prefix=/usr/lib |
370
db873833a34f
7062891 text/texinfo delivers /usr/info, should be /usr/share/info
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
316
diff
changeset
|
68 |
CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR) |
243
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
69 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
70 |
# common targets |
316
28499cc7ae96
7044847 remove 32 bit executables from developer/debug/gdb on x86
George Vasick <george.vasick@oracle.com>
parents:
243
diff
changeset
|
71 |
build: $(BUILD_64) |
243
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
72 |
|
316
28499cc7ae96
7044847 remove 32 bit executables from developer/debug/gdb on x86
George Vasick <george.vasick@oracle.com>
parents:
243
diff
changeset
|
73 |
install: $(INSTALL_64) |
243
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
74 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
75 |
test: $(NO_TESTS) |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
76 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
77 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
78 |
|
34b34302cac9
7039303 Move gdb 6.8 from SFW to Userland.
George Vasick <george.vasick@oracle.com>
parents:
diff
changeset
|
79 |
include ../../make-rules/depend.mk |