Makefile revision 586
346N/A#
346N/A# CDDL HEADER START
346N/A#
346N/A# The contents of this file are subject to the terms of the
346N/A# Common Development and Distribution License (the "License").
346N/A# You may not use this file except in compliance with the License.
346N/A#
346N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
346N/A# or http://www.opensolaris.org/os/licensing.
346N/A# See the License for the specific language governing permissions
346N/A# and limitations under the License.
346N/A#
346N/A# When distributing Covered Code, include this CDDL HEADER in each
346N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
346N/A# If applicable, add the following below this CDDL HEADER, with the
346N/A# fields enclosed by brackets "[]" replaced with your own identifying
346N/A# information: Portions Copyright [yyyy] [name of copyright owner]
346N/A#
346N/A# CDDL HEADER END
346N/A#
346N/A
346N/A#
346N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
346N/A#
346N/A
346N/Ainclude ../../make-rules/shared-macros.mk
346N/A
346N/ACOMPONENT_NAME= otp_src
346N/ACOMPONENT_VERSION_MAJOR= 12
346N/ACOMPONENT_VERSION_MINOR= B
346N/ACOMPONENT_VERSION_MICRO= 5
346N/A# IPS_COMPONENT_VERSION needs update whenever this is changed
346N/ACOMPONENT_VERSION= R$(COMPONENT_VERSION_MAJOR)$(COMPONENT_VERSION_MINOR)-$(COMPONENT_VERSION_MICRO)
346N/ACOMPONENT_SRC= $(COMPONENT_NAME)_$(COMPONENT_VERSION)
346N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
346N/ACOMPONENT_ARCHIVE_HASH= sha1:6c45509acf70d35d5def2cbefd86ada093c1ac3a
346N/ACOMPONENT_ARCHIVE_URL= http://www.erlang.org/download/$(COMPONENT_ARCHIVE)
346N/A
346N/A# manpages
346N/ACOMPONENT_NAME_1= otp_doc_man
346N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1)_$(COMPONENT_VERSION)
346N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
346N/ACOMPONENT_ARCHIVE_HASH_1= sha1:ae7036bd2afc9d1fca97f0de2eca84f56656def8
346N/ACOMPONENT_ARCHIVE_URL_1= http://www.erlang.org/download/$(COMPONENT_ARCHIVE_1)
346N/A
346N/A# HTML documentation
346N/ACOMPONENT_NAME_2= otp_doc_html
346N/ACOMPONENT_SRC_2= $(COMPONENT_NAME_2)_$(COMPONENT_VERSION)
346N/ACOMPONENT_ARCHIVE_2= $(COMPONENT_SRC_2).tar.gz
346N/ACOMPONENT_ARCHIVE_HASH_2= sha1:0bd369d02051e01bac58c9b8665bd3538e116f51
346N/ACOMPONENT_ARCHIVE_URL_2= http://www.erlang.org/download/$(COMPONENT_ARCHIVE_2)
346N/A
346N/Ainclude ../../make-rules/prep.mk
346N/Ainclude ../../make-rules/configure.mk
346N/Ainclude ../../make-rules/ips.mk
346N/A
346N/A# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
346N/A# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
346N/A# Because the IPS_COMPONENT_VERSION cannot contain letters we use mapping:
346N/A# R(major)(minor)-(micro) - (major).(minor as number).(micro)
346N/AIPS_COMPONENT_VERSION= $(COMPONENT_VERSION_MAJOR).2.$(COMPONENT_VERSION_MICRO)
346N/A
346N/A# Built in SFW with gcc and builds cleanly now only with gcc
346N/ACOMPILER = gcc
346N/A
346N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
346N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS) -I/usr/include/gd2"
346N/ACONFIGURE_OPTIONS += INSTALL="/usr/ucb/install -c"
346N/ACONFIGURE_OPTIONS += --enable-smp-support
346N/ACONFIGURE_OPTIONS += --enable-threads
346N/ACONFIGURE_OPTIONS += --enable-hipe
346N/ACONFIGURE_OPTIONS += --with-ssl
346N/ACONFIGURE_OPTIONS += --enable-dynamic-ssl-lib
346N/A
346N/ACONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
346N/ACONFIGURE_OPTIONS.64 += LIBS="-m64"
346N/A
351N/A# Use cp(1) instead of cloney because erlang's 'install' target uses 'tar'
351N/A# to copy files and our tar doesn't handle long links by default. Between
351N/A# the use of 'tar' and 'ld', a path adjustment wasn't an option due to the
351N/A# need for /usr/bin/ld and /usr/gnu/bin/tar. Perhaps this can be looked
351N/A# at when we upgrade to a more current version.
346N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
351N/A ($(CP) -rp $(SOURCE_DIR)/. $(@D))
346N/ACONFIGURE_SCRIPT = $(@D)/configure
346N/A
346N/ACOMPONENT_INSTALL_ARGS += INSTALL_PREFIX=$(PROTO_DIR)
346N/A
346N/A# common targets
346N/Abuild: $(BUILD_32_and_64)
346N/A
346N/Ainstall: $(INSTALL_32_and_64)
346N/A # Undelivered useless files:
346N/A # erlang/lib/crypto-*/priv/obj
346N/A # erlang/lib/ssl-*/priv/obj
346N/A # erlang/Install
346N/A # erlang/misc
346N/A # erlang/*/*.bat
346N/A # manpages: start.1 werl.1
346N/A $(RM) -r documentation
346N/A $(MKDIR) documentation && cd documentation && \
346N/A $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_1) && \
346N/A $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_2)
346N/A # remove INSTALL_PREFIX from path
346N/A $(PERL) -pi -e "s|$(PROTO_DIR)||g" $(PROTO_DIR)/usr/lib/erlang/bin/erl \
346N/A $(PROTO_DIR)/usr/lib/$(MACH64)/erlang/bin/erl \
346N/A $(PROTO_DIR)/usr/lib/erlang/releases/RELEASES \
346N/A $(PROTO_DIR)/usr/lib/$(MACH64)/erlang/releases/RELEASES
346N/A
346N/Aclean::
346N/A $(RM) -r documentation
346N/A
346N/Atest: $(NO_TESTS)
346N/A
346N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
346N/A
346N/Ainclude ../../make-rules/depend.mk