components/gnupth/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Fri, 27 Apr 2012 13:23:29 -0700
changeset 800 2ad056ed89ec
parent 609 775168282b2f
child 1058 34d7aaa03423
permissions -rw-r--r--
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile 7164671 BUILD_TOOLS should point to on11update-tools now
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
250
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     1
#
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     3
#
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     7
#
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    12
#
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    18
#
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    20
#
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    21
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
250
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    22
#
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    24
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		pth
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	2.0.7
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 250
diff changeset
    28
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/pth/
250
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    29
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: 609
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    31
    sha256:72353660c5a2caafd601b20e12e75d865fd88f6cf1a088b306a3963f0bc77232
250
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/pth/$(COMPONENT_ARCHIVE)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    33
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    34
include ../../make-rules/prep.mk
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    35
include ../../make-rules/configure.mk
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    36
include ../../make-rules/ips.mk
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    37
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    38
PATCH_LEVEL = 0
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    39
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    40
# Enable C99 mode + -Xc for its additional warnings.
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    41
studio_C99MODE = -Xc $(studio_C99_ENABLE)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    42
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    43
# -xinline=%auto -- we like inlining where appropriate
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    44
CFLAGS += -xinline=%auto
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    45
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    46
# -xbuiltin=%none -- builtins have been known to be buggy
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    47
CFLAGS += -xbuiltin=%none
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    48
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    49
CFLAGS += $(CPP_LARGEFILES)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    50
CFLAGS += $(XPG6MODE)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    51
CFLAGS += $(CPP_POSIX)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    52
CFLAGS += $(studio_PIC)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    53
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    54
CPPFLAGS += $(CPP_LARGEFILES) $(CPP_POSIX)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    55
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    56
LDFLAGS =	-lpthread -lposix4 -lrt
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    57
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    58
CONFIGURE_OPTIONS  +=	--localstatedir=/var
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    59
CONFIGURE_OPTIONS  +=	--with-pic
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    60
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    61
CONFIGURE_ENV  +=   CC="$(CC)"
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    62
CONFIGURE_ENV  +=   LD="$(CC) $(CFLAGS) $(LDFLAGS)"
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    63
CONFIGURE_ENV  +=   CFLAGS="$(CFLAGS)"
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    64
CONFIGURE_ENV  +=   CPPFLAGS="$(CPPFLAGS)"
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    65
CONFIGURE_ENV  +=   CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    66
CONFIGURE_ENV  +=   LDFLAGS="$(LDFLAGS)"
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    67
CONFIGURE_ENV +=    INSTALL="$(INSTALL)"
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    68
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    69
build: $(BUILD_32_and_64)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    70
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    71
install: $(INSTALL_32_and_64)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    72
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    73
test: $(TEST_32_and_64)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    74
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    75
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    76
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    77
include ../../make-rules/depend.mk
3ec860f369f5 7046183 GNU Pthreads to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    78