0
|
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 |
#
|
|
21 |
|
|
22 |
#
|
|
23 |
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
24 |
# Use is subject to license terms.
|
|
25 |
#
|
|
26 |
#ident "@(#)Makefile.sfw 1.1 09/08/21 SMI"
|
|
27 |
#
|
|
28 |
|
|
29 |
include ../Makefile.cmd
|
|
30 |
|
|
31 |
VER =$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
|
|
32 |
TARBALL =$(VER).tar.gz
|
|
33 |
|
|
34 |
# --prefix and --mandir are set in Makefile.master
|
|
35 |
CONFIGURE_OPTIONS += --with-mysql=$(ROOT)/usr/mysql/5.1
|
|
36 |
CONFIGURE_OPTIONS += --enable-largefile
|
|
37 |
CONFIGURE_OPTIONS += --bindir=/usr/benchmarks/sysbench/bin
|
|
38 |
|
|
39 |
TARGET_ENV += CC="$(CC)"
|
|
40 |
TARGET_ENV += CXX="$(CCC)"
|
|
41 |
TARGET_ENV += CPPFLAGS="$(CPPFLAGS)"
|
|
42 |
TARGET_ENV += LD_OPTIONS="$(LDLIBS)"
|
|
43 |
TARGET_ENV += PATH="$(SFW_PATH)"
|
|
44 |
TARGET_ENV += MAKE="$(CCSMAKE)"
|
|
45 |
TARGET_ENV += CFLAGS="$(CFLAGS) $(XPG6MODE)"
|
|
46 |
TARGET_ENV += DMAKE_CHILD="$(DMAKE_CHILD)"
|
|
47 |
TARGET_ENV += DMAKE_MAX_JOBS="$(DMAKE_MAX_JOBS)"
|
|
48 |
TARGET_ENV += DMAKE_MODE="$(DMAKE_MODE)"
|
|
49 |
TARGET_ENV += echo="/usr/bin/echo"
|
|
50 |
|
|
51 |
all: $(VER)/config.status
|
|
52 |
(cd $(VER) ; env - $(TARGET_ENV) $(MAKE))
|
|
53 |
|
|
54 |
install: all
|
|
55 |
$(SHELL) ./install-sfw $(VER)
|
|
56 |
for pkg in $(COMPONENT_PACKAGES:sh) ; do \
|
|
57 |
$(SRC)/tools/protofix --pkg $$pkg --perm ; \
|
|
58 |
done
|
|
59 |
|
|
60 |
$(VER)/config.status: $(VER)/configure
|
|
61 |
(cd $(VER) ; env - $(TARGET_ENV) $(SHELL) ./configure $(CONFIGURE_OPTIONS))
|
|
62 |
|
|
63 |
$(VER)/configure: $(TARBALL)
|
|
64 |
gzip -dc $(TARBALL) | tar xopf -
|
|
65 |
touch $(VER)/configure
|
|
66 |
|
|
67 |
clean:
|
|
68 |
-rm -rf $(VER)
|
|
69 |
|
|
70 |
include ../Makefile.targ
|
|
71 |
|
|
72 |
FRC:
|