usr/src/cmd/konkretcmpi/Makefile.sfw
author Cyril Plisko <cyril.plisko@grigale.com>
Thu, 16 Jun 2011 03:13:25 -0700
changeset 82 9d61c9ecee9c
parent 0 b34509ac961f
permissions -rw-r--r--
Import sfw build 167 Bugs Fixed ---------- 7017005 OpenSSL PKCS#11 engine not picking up all hardware crypto implementations. 7032822 remove OpenSSL 0.9.8 libraries from S11 7035509 Update S-Lang to version 2.2.4 7045290 next on As The Gate Churns - more things move from sfw to userland/foss 7045728 php build fails frequently now 7046088 sfw doesn't build on 165

#
#
# 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 (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
#
# ident	"@(#)Makefile.sfw	1.3	11/05/16 SMI"

include ../Makefile.cmd

VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
VER64=$(VER)-64
TARBALL=$(VER).tar.gz
CMPI_HEADERS_DIR=/usr/include/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: