Home | History | Annotate | Download | only in cimserver
      1 #
      2 #
      3 # CDDL HEADER START
      4 #
      5 # The contents of this file are subject to the terms of the
      6 # Common Development and Distribution License (the "License").
      7 # You may not use this file except in compliance with the License.
      8 #
      9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     10 # or http://www.opensolaris.org/os/licensing.
     11 # See the License for the specific language governing permissions
     12 # and limitations under the License.
     13 #
     14 # When distributing Covered Code, include this CDDL HEADER in each
     15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     16 # If applicable, add the following below this CDDL HEADER, with the
     17 # fields enclosed by brackets "[]" replaced with your own identifying
     18 # information: Portions Copyright [yyyy] [name of copyright owner]
     19 #
     20 # CDDL HEADER END
     21 #
     22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
     23 # Use is subject to license terms.
     24 #
     25 #ident	"@(#)Makefile.sfw	1.1	08/11/12 SMI"
     26 
     27 VER=pegasus-2.8.0
     28 
     29 include ../Makefile.cmd
     30 
     31 SFW_PATH="$(SPRO_VROOT)/bin:/usr/ccs/bin:/usr/bin:/usr/sfw/bin:$(PATH)"
     32 SFW_PEG_OPTS=\
     33 	"CXX_COMPILER_COMMAND=$(CCC)" \
     34 	"C_COMPILER_COMMAND=$(CC)" \
     35 	"PEGASUS_ROOT=`pwd`" \
     36 	"PEGASUS_HAS_SSL=true" \
     37 	"PEGASUS_ENABLE_SLP=true" \
     38 	"PEGASUS_USE_EXTERNAL_SLP=solarisslp" \
     39 	"PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER=true" \
     40 	"PEGASUS_PAM_AUTHENTICATION=true" \
     41 	"PEGASUS_USE_PAM_STANDALONE_PROC=true" \
     42 	"PEGASUS_ENABLE_SSL_CRL_VERIFICATION=true" \
     43 	"PEGASUS_USE_RELEASE_DIRS=true" \
     44 	"PEGASUS_SKIP_MOST_TEST_DIRS=true" \
     45 	"PEGASUS_DISABLE_PERFINST=true"
     46 
     47 all: real-all
     48 
     49 all32: all32_${MACH}
     50 
     51 all32_i386: configure
     52 	(cd $(VER)/pegasus; unset ROOT; env \
     53 	    PATH=$(SFW_PATH) \
     54 	    CC=$(CC) \
     55 	    "CFLAGS=$(CFLAGS)" \
     56 	    "PEGASUS_HOME=`pwd`/../build32_${MACH}" \
     57 	    ${SFW_PEG_OPTS} \
     58 	    "PEGASUS_PLATFORM=SOLARIS_IX86_CC" \
     59 	    "PEGASUS_ARCH_LIB=lib" \
     60 	    "PEGASUS_PROVIDER_LIB_DIR=/usr/lib" \
     61 	    "PEGASUS_DEST_LIB_DIR=/usr/lib" \
     62 	    "MAKE=$(GMAKE)" \
     63 	    $(GMAKE) all)
     64 	@find . -name core -exec rm -f {} \;
     65 
     66 all32_sparc: configure
     67 	(cd $(VER)/pegasus; unset ROOT; env \
     68 	    PATH=$(SFW_PATH) \
     69 	    CC=$(CC) \
     70 	    "CFLAGS=$(CFLAGS)" \
     71 	    "PEGASUS_HOME=`pwd`/../build32_${MACH}" \
     72 	    ${SFW_PEG_OPTS} \
     73 	    "PEGASUS_PLATFORM=SOLARIS_SPARC_CC" \
     74 	    "PEGASUS_ARCH_LIB=lib" \
     75 	    "PEGASUS_PROVIDER_LIB_DIR=/usr/lib" \
     76 	    "PEGASUS_DEST_LIB_DIR=/usr/lib" \
     77 	    "MAKE=$(GMAKE)" \
     78 	    $(GMAKE) all)
     79 	@find . -name core -exec rm -f {} \;
     80 
     81 all64: all64_${MACH}
     82 
     83 all64_i386: configure
     84 	(cd $(VER)/pegasus; unset ROOT; env \
     85 	    PATH=$(SFW_PATH) \
     86 	    CC=$(CC) \
     87 	    "CFLAGS=$(CFLAGS)" \
     88 	    "PEGASUS_HOME=`pwd`/../build64_${MACH}" \
     89 	    ${SFW_PEG_OPTS} \
     90 	    "PEGASUS_PLATFORM=SOLARIS_X86_64_CC" \
     91 	    "PEGASUS_ARCH_LIB=lib/amd64" \
     92 	    "PEGASUS_PROVIDER_LIB_DIR=/usr/lib/amd64" \
     93 	    "PEGASUS_DEST_LIB_DIR=/usr/lib/amd64" \
     94 	    "MAKE=$(GMAKE)" \
     95 	    $(GMAKE) all)
     96 	@find . -name core -exec rm -f {} \;
     97 
     98 all64_sparc: configure
     99 	(cd $(VER)/pegasus; unset ROOT; env \
    100 	    PATH=$(SFW_PATH) \
    101 	    CC=$(CC) \
    102 	    "CFLAGS=$(CFLAGS)" \
    103 	    "PEGASUS_HOME=`pwd`/../build64_${MACH}" \
    104 	    ${SFW_PEG_OPTS} \
    105 	    "PEGASUS_PLATFORM=SOLARIS_SPARC_64_CC" \
    106 	    "PEGASUS_ARCH_LIB=lib/sparcv9" \
    107 	    "PEGASUS_PROVIDER_LIB_DIR=/usr/lib/sparcv9" \
    108 	    "PEGASUS_DEST_LIB_DIR=/usr/lib/sparcv9" \
    109 	    "MAKE=$(GMAKE)" \
    110 	    $(GMAKE) all)
    111 	@find . -name core -exec rm -f {} \;
    112 
    113 install: all
    114 	$(SH) ./install-sfw
    115 	MACH64=$(MACH64) $(SH) ./install-sfw-64
    116 
    117 real-all: all32 all64
    118 
    119 configure: $(VER)/configure
    120 
    121 $(VER)/configure: $(VER).tar.gz $(VER)
    122 	(cd $(VER); \
    123 	    $(GTAR) xzpf ../$(VER).tar.gz --no-same-owner; \
    124 	    $(GPATCH) -p1 < ../patch)
    125 	touch $(VER)/configure
    126 
    127 $(VER):
    128 	mkdir -p $@
    129 
    130 clean:
    131 	-rm -rf $(VER)
    132 
    133 include ../Makefile.targ
    134 
    135 FRC:
    136 
    137