#
# 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
# 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
#
#
##
## This Makefile for local usage only.
## The full build will NOT execute this Makefile.
##
# PHP 5.3
#
# Build ordering:
# 1) imap -> install
# 2) php-sapi -> install
# 3) php-nsapi -> install
# 3) php-cgi -> install
# 4) php-sapi -> publish (packages sapi, nsapi, cgi in 1 package)
# 5) APC-zts -> install
# 6) APC -> publish (packages APC-zts, APC in 1 package)
# 5) idn-zts -> install
# 6) idn -> publish (packages idn-zts, idn in 1 package)
# 5) memcache-zts -> install
# 6) memcache -> publish (packages memcache-zts, memcache in 1 pack)
# 5) suhosin-zts -> install
# 6) suhosin -> publish (packages suhosin-zts, suhosin in 1 package)
# 5) tcpwrap-zts -> install
# 6) tcpwrap -> publish (packages tcpwrap-zts, tcpwrap in 1 package)
# 5) xdebug-zts -> install
# 6) xdebug -> publish (packages xdebug-zts, xdebug in 1 package)
#
# The numbers indicate parallelism possible in the build.
# The other way to build this would be:
# 1) imap -> build
# 2) php-sapi -> install
# 3) php-nsapi -> install
# 4) all others -> install (in parallel)
# 5) all -> publish (in parallel)
# So after imap, php-sapi, php-nsapi build serially in that order
# then it doesn't matter.
# PHP is built 3 ways:
# php-sapi - Server API
# php-cgi - CGI
# php-nsapi - Netscape Server API
# This is the Netscape group (aka webstack group)
# that Sun purchased from AOL long ago.
# I believe this Netscape server is still alive
# and offered by Oracle.
# These PHP's are built from the same source, patched the same way,
# but configured differently.
# More relevant to the full USERLAND build is the dependency tree
# for say starting the build down in an extension module:
# To publish the APC extension:
# 1) build imap
# 2) install php-sapi
# 3) install APC
# 4) install php-nsapi
# 5) install APC-zts
# 6) publish APC
# SFW build of php
# 1) build_imap - Because php needs headers and libc-client.a
# Must be built first.
# 2) build_modphp5 - php SAPI
# $(PHP_DIR)/libs/libphp5.so
# $(PHP_DIR)/config.status
# $(PHP_DIR)/configure
# unroll php archive
# patch
# ./buildconf
# edit configure
# unroll webserver7-spi
# [Sun Java System Web Server 7 (formerly known
# [now Oracle iPlanet Web Server 7]
# copy php source tree for php_nsapi build
# $(PHP_NSAPI)/configure
# [stuff...]
# ./configure
# 4) build_nsapi - php nsapi (netscape SAPI - old sun webserver product)
# (still applicable)
# (now known as Oracle iPlanet Web Server 7)
#
# 5) install_php - this is called AFTER php builds and installs
# cd $(PHP_DIR); make install
# cd $(PHP_NSAPI); make libphp5.la install-modules
# ./install-php5
# don't need fix_bin_scripts()
# [paths already correct and some things don't exist.]
# looks like i DO NEED the pear patches
# for now, everything with a Makefile should be built
test: TARGET = test
# declare module dependencies