usr/src/cmd/cimserver/Makefile.sfw
author Cyril Plisko <cyril.plisko@grigale.com>
Sun, 15 May 2011 10:24:42 -0700
changeset 80 ffd98b71d008
parent 0 b34509ac961f
permissions -rw-r--r--
Import sfw build 166 Bugs Fixed ---------- 7018550 net-snmp needs to support more than 20 configured interfaces 7037071 placement new and delete should be declared inline 7038693 antlr 2.7.7 in the sfw gate incorrectly ships the antlr v3 (BSD) license, s/b the antlr v2 license 7039759 exception specification detection at configure time is broken 7040055 exterminate more things from sfw that transmat'd to userland 7040474 openssl 1.0.0 in SFW does not build on build 164 7041240 with the push of 7040175 quagga SMF manifest file needs an update 7041476 build 164 doesn't like me 7043023 tpmadm init causes SEGV with ssl 1.0.0 7043302 sfw should not deliver common texinfo dir files

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

VER=pegasus-2.8.0

include ../Makefile.cmd

SFW_PATH="$(SPRO_VROOT)/bin:/usr/ccs/bin:/usr/bin:/usr/sfw/bin:$(PATH)"
SFW_PEG_OPTS=\
	"CXX_COMPILER_COMMAND=$(CCC)" \
	"C_COMPILER_COMMAND=$(CC)" \
	"PEGASUS_ROOT=`pwd`" \
	"PEGASUS_HAS_SSL=true" \
	"PEGASUS_ENABLE_SLP=true" \
	"PEGASUS_USE_EXTERNAL_SLP=solarisslp" \
	"PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER=true" \
	"PEGASUS_PAM_AUTHENTICATION=true" \
	"PEGASUS_USE_PAM_STANDALONE_PROC=true" \
	"PEGASUS_ENABLE_SSL_CRL_VERIFICATION=true" \
	"PEGASUS_USE_RELEASE_DIRS=true" \
	"PEGASUS_SKIP_MOST_TEST_DIRS=true" \
	"PEGASUS_DISABLE_PERFINST=true"

all: real-all

all32: all32_${MACH}

all32_i386: configure
	(cd $(VER)/pegasus; unset ROOT; env \
	    PATH=$(SFW_PATH) \
	    CC=$(CC) \
	    "CFLAGS=$(CFLAGS)" \
	    "PEGASUS_HOME=`pwd`/../build32_${MACH}" \
	    ${SFW_PEG_OPTS} \
	    "PEGASUS_PLATFORM=SOLARIS_IX86_CC" \
	    "PEGASUS_ARCH_LIB=lib" \
	    "PEGASUS_PROVIDER_LIB_DIR=/usr/lib" \
	    "PEGASUS_DEST_LIB_DIR=/usr/lib" \
	    "MAKE=$(GMAKE)" \
	    $(GMAKE) all)
	@find . -name core -exec rm -f {} \;

all32_sparc: configure
	(cd $(VER)/pegasus; unset ROOT; env \
	    PATH=$(SFW_PATH) \
	    CC=$(CC) \
	    "CFLAGS=$(CFLAGS)" \
	    "PEGASUS_HOME=`pwd`/../build32_${MACH}" \
	    ${SFW_PEG_OPTS} \
	    "PEGASUS_PLATFORM=SOLARIS_SPARC_CC" \
	    "PEGASUS_ARCH_LIB=lib" \
	    "PEGASUS_PROVIDER_LIB_DIR=/usr/lib" \
	    "PEGASUS_DEST_LIB_DIR=/usr/lib" \
	    "MAKE=$(GMAKE)" \
	    $(GMAKE) all)
	@find . -name core -exec rm -f {} \;

all64: all64_${MACH}

all64_i386: configure
	(cd $(VER)/pegasus; unset ROOT; env \
	    PATH=$(SFW_PATH) \
	    CC=$(CC) \
	    "CFLAGS=$(CFLAGS)" \
	    "PEGASUS_HOME=`pwd`/../build64_${MACH}" \
	    ${SFW_PEG_OPTS} \
	    "PEGASUS_PLATFORM=SOLARIS_X86_64_CC" \
	    "PEGASUS_ARCH_LIB=lib/amd64" \
	    "PEGASUS_PROVIDER_LIB_DIR=/usr/lib/amd64" \
	    "PEGASUS_DEST_LIB_DIR=/usr/lib/amd64" \
	    "MAKE=$(GMAKE)" \
	    $(GMAKE) all)
	@find . -name core -exec rm -f {} \;

all64_sparc: configure
	(cd $(VER)/pegasus; unset ROOT; env \
	    PATH=$(SFW_PATH) \
	    CC=$(CC) \
	    "CFLAGS=$(CFLAGS)" \
	    "PEGASUS_HOME=`pwd`/../build64_${MACH}" \
	    ${SFW_PEG_OPTS} \
	    "PEGASUS_PLATFORM=SOLARIS_SPARC_64_CC" \
	    "PEGASUS_ARCH_LIB=lib/sparcv9" \
	    "PEGASUS_PROVIDER_LIB_DIR=/usr/lib/sparcv9" \
	    "PEGASUS_DEST_LIB_DIR=/usr/lib/sparcv9" \
	    "MAKE=$(GMAKE)" \
	    $(GMAKE) all)
	@find . -name core -exec rm -f {} \;

install: all
	$(SH) ./install-sfw
	MACH64=$(MACH64) $(SH) ./install-sfw-64

real-all: all32 all64

configure: $(VER)/configure

$(VER)/configure: $(VER).tar.gz $(VER)
	(cd $(VER); \
	    $(GTAR) xzpf ../$(VER).tar.gz --no-same-owner; \
	    $(GPATCH) -p1 < ../patch;  \
	    $(GPATCH) -p1 < ../openssl.patch)
	touch $(VER)/configure

$(VER):
	mkdir -p $@

clean:
	-rm -rf $(VER)

include ../Makefile.targ

FRC: