components/php-5_2/extensions-zts.mk
changeset 461 edabdd6aff23
child 846 fe258446a1ae
equal deleted inserted replaced
460:aded0f0f9594 461:edabdd6aff23
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 
       
    24 include $(WS_TOP)/make-rules/prep.mk
       
    25 include $(WS_TOP)/make-rules/configure.mk
       
    26 include $(WS_TOP)/make-rules/ips.mk
       
    27 
       
    28 include ../common.mk
       
    29 
       
    30 # NOTE: this phpize-proto comes from nsapi while
       
    31 #       php-config-proto comes from sapi
       
    32 COMPONENT_PRE_CONFIGURE_ACTION = ( \
       
    33 	($(CLONEY) $(SOURCE_DIR) $(@D)); \
       
    34 	$(GSED) -e "s@^builddir=.*@builddir=$(BUILD_DIR_32)@" \
       
    35 		< $(COMPONENT_DIR)/../php-nsapi/phpize-proto.zts \
       
    36 		> $(COMPONENT_DIR)/phpize-proto.zts; \
       
    37 	cd $(BUILD_DIR_32); \
       
    38 	$(ENV) -i $(ZTS_ENVLINE) $(CONFIG_SHELL) \
       
    39 					$(COMPONENT_DIR)/phpize-proto.zts)
       
    40 
       
    41 
       
    42 CONFIGURE_OPTIONS  += \
       
    43 	--with-php-config=$(COMPONENT_DIR)/../php-sapi/php-config-proto.zts
       
    44 
       
    45 CONFIGURE_ENV += $(ZTS_ENVLINE)
       
    46 CONFIGURE_SCRIPT = $(BUILD_DIR_32)/configure
       
    47 CPPFLAGS += -I$(PHP_SAPI_BUILD)/Zend
       
    48 CPPFLAGS += -I$(PHP_SAPI_BUILD)/TSRM
       
    49 CPPFLAGS += -I$(PHP_SAPI_BUILD)/main
       
    50 
       
    51 CLEAN_PATHS += $(COMPONENT_DIR)/phpize-proto.zts package.xml package2.xml
       
    52 
       
    53 # common targets
       
    54 build:		$(BUILD_32)
       
    55 
       
    56 install:	$(INSTALL_32)
       
    57 
       
    58 test:		$(TEST_32)
       
    59 
       
    60 publish:	install
       
    61 
       
    62 # Manual dependency - need both php-sapi and php-nsapi installed
       
    63 # before building a -zts extension.
       
    64 ../php-sapi/build/$(MACH32)/.installed:
       
    65 	(cd ../php-sapi ; $(MAKE) install)
       
    66 
       
    67 ../php-nsapi/build/$(MACH32)/.installed:
       
    68 	(cd ../php-nsapi ; $(MAKE) install)
       
    69 
       
    70 $(BUILD_DIR_32)/.configured:    ../php-sapi/build/$(MACH32)/.installed
       
    71 $(BUILD_DIR_32)/.configured:    ../php-nsapi/build/$(MACH32)/.installed
       
    72 
       
    73 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    74 
       
    75 include $(WS_TOP)/make-rules/depend.mk