#
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "@(#)Makefile.sfw 1.2 09/06/12 SMI"
include ../Makefile.cmd
VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
VER64=$(VER)-64
TARBALL=$(VER).tar.gz
CMPI_HEADERS_DIR=$(SRC)/cmd/cimserver/pegasus-2.8.0/pegasus/src/Pegasus/Provider/CMPI
KONKRET_PATCH=../konkret.patch
# configure options to use
CONFIGURE_OPTIONS += --with-cmpi-headers=$(CMPI_HEADERS_DIR)
CFLAGS += -I$(CMPI_HEADERS_DIR)
CFLAGS64 += -I$(CMPI_HEADERS_DIR)
CXXFLAGS = -xO3 -Qoption ccfe -messages=no%anachronism -features=no%conststrings $(CPPFLAGS) -norunpath -I$(CMPI_HEADERS_DIR)
CXXFLAGS64 = $(CCFLAGS64) $(CPPFLAGS) -norunpath -I$(CMPI_HEADERS_DIR)
all: all32 all64
all32: $(VER)/config.status
(cd $(VER); env - \
"CC=$(CC)" "CXX=$(CCC)" \
"CFLAGS=$(CFLAGS)" \
"CXXFLAGS=$(CXXFLAGS)" \
"PATH=$(SFW_PATH)" \
"MAKE=$(GMAKE)" \
$(GMAKE) all)
all64: $(VER64)/config.status
(cd $(VER64); env - \
"CC=$(CC64)" "CXX=$(CCC)" \
"CFLAGS=$(CFLAGS64)" \
"CXXFLAGS=$(CXXFLAGS64)" \
"PATH=$(SFW_PATH)" \
"MAKE=$(GMAKE)" \
$(GMAKE) all)
install: all
SRCDIR=$(VER) $(SHELL) ./install-sfw
MACH64=$(MACH64) SRCDIR64=$(VER64) $(SHELL) ./install-sfw-64
$(VER)/config.status: $(VER)/configure
(cd $(VER); env - \
"CC=$(CC)" "CXX=$(CCC)" \
"CFLAGS=$(CFLAGS)" \
"CXXFLAGS=$(CXXFLAGS)" \
"PATH=$(SFW_PATH)" \
"MAKE=$(GMAKE)" \
$(SHELL) ./configure $(CONFIGURE_OPTIONS))
$(VER64)/config.status: $(VER64)/configure
(cd $(VER64); env - \
"CC=$(CC64)" "CXX=$(CCC)" \
"CFLAGS=$(CFLAGS64)" \
"CXXFLAGS=$(CXXFLAGS64)" \
"PATH=$(SFW_PATH)" \
"MAKE=$(GMAKE)" \
$(SHELL) ./configure $(CONFIGURE_OPTIONS))
$(VER)/configure: $(TARBALL)
$(GTAR) xzpf $(TARBALL) --no-same-owner;
(cd $(VER); \
$(GPATCH) -p1 < $(KONKRET_PATCH); \
aclocal-1.10; \
autoconf ;)
$(VER64)/configure: $(TARBALL)
mkdir -p tmp;
(cd tmp; $(GTAR) xzpf ../$(TARBALL) --no-same-owner; )
mv tmp/$(VER) $(VER64); rmdir tmp
(cd $(VER64); \
$(GPATCH) -p1 < $(KONKRET_PATCH); \
aclocal-1.10; \
autoconf ;)
clean:
-rm -rf $(VER) $(VER64)
include ../Makefile.targ
FRC: