Home | History | Annotate | Download | only in konkretcmpi
      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 2009 Sun Microsystems, Inc.  All rights reserved.
     23 # Use is subject to license terms.
     24 #
     25 # ident	"@(#)Makefile.sfw	1.2	09/06/12 SMI"
     26 
     27 include ../Makefile.cmd
     28 
     29 VER = $(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
     30 VER64=$(VER)-64
     31 TARBALL=$(VER).tar.gz
     32 CMPI_HEADERS_DIR=$(SRC)/cmd/cimserver/pegasus-2.8.0/pegasus/src/Pegasus/Provider/CMPI
     33 KONKRET_PATCH=../konkret.patch
     34 
     35 # configure options to use
     36 CONFIGURE_OPTIONS += --with-cmpi-headers=$(CMPI_HEADERS_DIR)
     37 
     38 CFLAGS += -I$(CMPI_HEADERS_DIR)
     39 CFLAGS64 += -I$(CMPI_HEADERS_DIR)
     40 CXXFLAGS = -xO3 -Qoption ccfe -messages=no%anachronism  -features=no%conststrings $(CPPFLAGS) -norunpath -I$(CMPI_HEADERS_DIR)
     41 CXXFLAGS64 = $(CCFLAGS64) $(CPPFLAGS) -norunpath -I$(CMPI_HEADERS_DIR)
     42 
     43 
     44 all: all32 all64
     45 
     46 all32: $(VER)/config.status
     47 	(cd $(VER); env - \
     48 	    "CC=$(CC)" "CXX=$(CCC)" \
     49 	    "CFLAGS=$(CFLAGS)" \
     50 	    "CXXFLAGS=$(CXXFLAGS)" \
     51 	    "PATH=$(SFW_PATH)" \
     52 	    "MAKE=$(GMAKE)" \
     53 	    $(GMAKE) all)
     54 
     55 all64: $(VER64)/config.status
     56 	(cd $(VER64); env - \
     57 	    "CC=$(CC64)" "CXX=$(CCC)" \
     58 	    "CFLAGS=$(CFLAGS64)" \
     59 	    "CXXFLAGS=$(CXXFLAGS64)" \
     60 	    "PATH=$(SFW_PATH)" \
     61 	    "MAKE=$(GMAKE)" \
     62 	    $(GMAKE) all)
     63 
     64 install: all
     65 	SRCDIR=$(VER) $(SHELL) ./install-sfw
     66 	MACH64=$(MACH64) SRCDIR64=$(VER64) $(SHELL) ./install-sfw-64
     67 
     68 $(VER)/config.status: $(VER)/configure
     69 	(cd $(VER); env - \
     70 	    "CC=$(CC)" "CXX=$(CCC)" \
     71 	    "CFLAGS=$(CFLAGS)" \
     72 	    "CXXFLAGS=$(CXXFLAGS)" \
     73 	    "PATH=$(SFW_PATH)" \
     74 	    "MAKE=$(GMAKE)" \
     75 	    $(SHELL) ./configure $(CONFIGURE_OPTIONS))
     76 
     77 $(VER64)/config.status: $(VER64)/configure
     78 	(cd $(VER64); env - \
     79 	    "CC=$(CC64)" "CXX=$(CCC)" \
     80 	    "CFLAGS=$(CFLAGS64)" \
     81 	    "CXXFLAGS=$(CXXFLAGS64)" \
     82 	    "PATH=$(SFW_PATH)" \
     83 	    "MAKE=$(GMAKE)" \
     84 	    $(SHELL) ./configure $(CONFIGURE_OPTIONS))
     85 
     86 $(VER)/configure: $(TARBALL)
     87 	$(GTAR) xzpf $(TARBALL) --no-same-owner;
     88 	(cd $(VER); \
     89 	    $(GPATCH) -p1 < $(KONKRET_PATCH); \
     90 	    aclocal-1.10; \
     91 	    autoconf ;)
     92 
     93 $(VER64)/configure: $(TARBALL)
     94 	mkdir -p tmp; 
     95 	(cd tmp; $(GTAR) xzpf ../$(TARBALL) --no-same-owner; )
     96 	mv tmp/$(VER) $(VER64); rmdir tmp
     97 	(cd $(VER64); \
     98 	    $(GPATCH) -p1 < $(KONKRET_PATCH); \
     99 	    aclocal-1.10; \
    100 	    autoconf ;)
    101 	
    102 clean:
    103 	-rm -rf $(VER) $(VER64)
    104 
    105 include ../Makefile.targ
    106 
    107 FRC:
    108