author | Craig Mohrman <craig.mohrman@oracle.com> |
Mon, 11 May 2015 10:44:02 -0700 | |
branch | s11u2-sru |
changeset 4270 | 279415c50b97 |
parent 2910 | f8b8cbc43356 |
child 3661 | 47545fb8aed4 |
permissions | -rw-r--r-- |
2657 | 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 |
# |
|
2910
f8b8cbc43356
15801420 SUNBT7180909 tag the Userland consolidation binaries for ASLR
April Chin <april.chin@oracle.com>
parents:
2657
diff
changeset
|
21 |
# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
2657 | 22 |
# |
23 |
include ../../make-rules/shared-macros.mk |
|
24 |
||
25 |
COMPONENT_NAME= pixz |
|
26 |
COMPONENT_VERSION= 1.0 |
|
27 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
28 |
COMPONENT_PROJECT_URL= http://github.com/vasi/pixz/ |
|
29 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 |
COMPONENT_ARCHIVE_HASH= \ |
|
31 |
sha256:912c60de88f7eca2e1c6fe13eec5371f723018dca933796c47cd50bf6a349fc9 |
|
32 |
COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)archive/$(COMPONENT_ARCHIVE) |
|
33 |
COMPONENT_BUGDB= utility/pixz |
|
34 |
||
35 |
include ../../make-rules/prep.mk |
|
36 |
include ../../make-rules/justmake.mk |
|
37 |
include ../../make-rules/ips.mk |
|
38 |
||
39 |
PKG_PROTO_DIRS += $(BUILD_DIR_64) |
|
40 |
PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
|
41 |
||
42 |
# Userland default includes -mt which links with libthread which we don't need. |
|
43 |
studio_MT = |
|
44 |
||
45 |
# pixz's Makefile hard-codes some gcc-only flags in MYCFLAGS and MYLDFLAGS, |
|
46 |
# then appends CFLAGS & LDFLAGS to each. Here we include their preset values |
|
47 |
# minus the gcc-only parts, so we can build with Studio. |
|
48 |
COMPONENT_BUILD_ARGS += CC="$(CC)" |
|
49 |
COMPONENT_BUILD_ARGS += MYCFLAGS='$(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT)' |
|
50 |
COMPONENT_BUILD_ARGS += MYLDFLAGS='$(patsubst %,-L%/lib,$(LIBPREFIX)) $(OPT)' |
|
51 |
COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" |
|
52 |
COMPONENT_BUILD_ARGS += LDFLAGS="$(CC_BITS)" |
|
53 |
||
54 |
# common targets |
|
55 |
build: $(BUILD_64) |
|
56 |
||
57 |
install: $(BUILD_64) |
|
58 |
||
59 |
test: $(NO_TESTS) |
|
60 |
||
61 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
62 |
||
63 |
include ../../make-rules/depend.mk |