usr/src/cmd/cimserver/Makefile.sfw
author Jon Tibble <meths@btinternet.com>
Mon, 04 May 2015 14:04:39 +0100
branchoi_151a
changeset 254 9c2a4ac793f0
parent 0 b34509ac961f
child 80 ffd98b71d008
permissions -rw-r--r--
Bash patch catchup including shellshock

#
#
# 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 2008 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"@(#)Makefile.sfw	1.1	08/11/12 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)
	touch $(VER)/configure

$(VER):
	mkdir -p $@

clean:
	-rm -rf $(VER)

include ../Makefile.targ

FRC: