usr/src/cmd/iozone/Makefile.sfw
author Jon Tibble <meths@btinternet.com>
Mon May 04 14:04:39 2015 +0100 (2015-05-04)
branchoi_151a
changeset 254 9c2a4ac793f0
permissions -rw-r--r--
Bash patch catchup including shellshock
cyril@0
     1
#
cyril@0
     2
# CDDL HEADER START
cyril@0
     3
#
cyril@0
     4
# The contents of this file are subject to the terms of the
cyril@0
     5
# Common Development and Distribution License (the "License").
cyril@0
     6
# You may not use this file except in compliance with the License.
cyril@0
     7
#
cyril@0
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cyril@0
     9
# or http://www.opensolaris.org/os/licensing.
cyril@0
    10
# See the License for the specific language governing permissions
cyril@0
    11
# and limitations under the License.
cyril@0
    12
#
cyril@0
    13
# When distributing Covered Code, include this CDDL HEADER in each
cyril@0
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cyril@0
    15
# If applicable, add the following below this CDDL HEADER, with the
cyril@0
    16
# fields enclosed by brackets "[]" replaced with your own identifying
cyril@0
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
cyril@0
    18
#
cyril@0
    19
# CDDL HEADER END
cyril@0
    20
#
cyril@0
    21
cyril@0
    22
#
cyril@0
    23
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
cyril@0
    24
# Use is subject to license terms.
cyril@0
    25
#
cyril@0
    26
# ident	"@(#)Makefile.sfw	1.1	09/06/19 SMI"
cyril@0
    27
#
cyril@0
    28
cyril@0
    29
VER =		$(COMPONENT_NAME:sh)$(COMPONENT_VERSION:sh)
cyril@0
    30
TARBALL=	$(VER).tar.bz2
cyril@0
    31
SRC_ROOT=$(VER)/src/current
cyril@0
    32
cyril@0
    33
include ../Makefile.cmd
cyril@0
    34
cyril@0
    35
# If CFLAGS doesn't contain "-m64" flag, we will build a 32-bit binary.
cyril@0
    36
all: $(SRC_ROOT)/makefile
cyril@0
    37
	(cd $(SRC_ROOT); env - \
cyril@0
    38
	    CC=$(CC) \
cyril@0
    39
	    S10CCFLAGS="$(CFLAGS)" \
cyril@0
    40
	    LDFLAGS="$(LDFLAGS)" \
cyril@0
    41
	    $(CCSMAKE) -e -f makefile Solaris10cc-64)
cyril@0
    42
cyril@0
    43
install: all
cyril@0
    44
	PKGDIR=$(VER) $(SHELL) ./install-sfw
cyril@0
    45
cyril@0
    46
$(SRC_ROOT)/makefile: $(TARBALL)
cyril@0
    47
	/usr/bin/bzip2 -dc $(TARBALL) | $(GTAR) xpf - --no-same-owner
cyril@0
    48
	touch $(SRC_ROOT)/makefile
cyril@0
    49
cyril@0
    50
clean:
cyril@0
    51
	-rm -rf $(VER)
cyril@0
    52
cyril@0
    53
include ../Makefile.targ