Makefile revision 5425
1185N/A#
1185N/A# CDDL HEADER START
1185N/A#
1185N/A# The contents of this file are subject to the terms of the
1185N/A# Common Development and Distribution License (the "License").
1185N/A# You may not use this file except in compliance with the License.
1185N/A#
1185N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1185N/A# or http://www.opensolaris.org/os/licensing.
1185N/A# See the License for the specific language governing permissions
1185N/A# and limitations under the License.
1185N/A#
1185N/A# When distributing Covered Code, include this CDDL HEADER in each
1185N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1185N/A# If applicable, add the following below this CDDL HEADER, with the
1185N/A# fields enclosed by brackets "[]" replaced with your own identifying
1185N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1185N/A#
1220N/A# CDDL HEADER END
1185N/A#
1185N/A
1458N/A#
1185N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
1185N/A#
1185N/A
1185N/A# Built in SFW with gcc and builds cleanly now only with gcc
1185N/ACOMPILER = gcc
1185N/A
1185N/Ainclude ../../make-rules/shared-macros.mk
1185N/A
1185N/APATH=$(JAVA_HOME)/bin:/usr/bin
1185N/A
1244N/ACOMPONENT_NAME= erlang
1244N/ACOMPONENT_VERSION= 17.5
1185N/ACOMPONENT_PROJECT_URL= http://www.erlang.org/
1198N/ACOMPONENT_SRC_NAME= otp_src
1213N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)_$(COMPONENT_VERSION)
1185N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1194N/ACOMPONENT_ARCHIVE_HASH= \
1194N/A sha256:3c28820c981b30c50df8ac2a4a238e5813454fa3ed2ad530bc7948a282846474
1185N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
1185N/ACOMPONENT_BUGDB= utility/erlang
1367N/A
1185N/A# manpages
1185N/ACOMPONENT_NAME_1= otp_doc_man
1185N/ACOMPONENT_SRC_1= $(COMPONENT_NAME_1)_$(COMPONENT_VERSION)
1185N/ACOMPONENT_ARCHIVE_1= $(COMPONENT_SRC_1).tar.gz
1185N/ACOMPONENT_ARCHIVE_HASH_1= \
1185N/A sha256:85b1b2a1011fc01af550f1fe9e5a599a4c5f2a35d264d2804af1d05590a857c3
1185N/ACOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_1)
1185N/AUNPACK_ARGS_1= -r $(COMPONENT_SRC_1)
1470N/APKG_PROTO_DIRS += $(COMPONENT_SRC_1)
1185N/A
1185N/A# HTML documentation
1185N/ACOMPONENT_NAME_2= otp_doc_html
1185N/ACOMPONENT_SRC_2= $(COMPONENT_NAME_2)_$(COMPONENT_VERSION)
1185N/ACOMPONENT_ARCHIVE_2= $(COMPONENT_SRC_2).tar.gz
1185N/ACOMPONENT_ARCHIVE_HASH_2= \
1194N/A sha256:baba1d373c1faacf4a1a6ec1220d57d0cb2b977edb74f32cd58dc786361c6cf5
1185N/ACOMPONENT_ARCHIVE_URL_2= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_2)
1185N/AUNPACK_ARGS_2= -r $(COMPONENT_SRC_2)
1190N/APKG_PROTO_DIRS += $(COMPONENT_SRC_2)
1367N/A
1367N/ATPNO= 18548
1367N/A
1185N/Ainclude $(WS_MAKE_RULES)/prep.mk
1190N/Ainclude $(WS_MAKE_RULES)/configure.mk
1190N/Ainclude $(WS_MAKE_RULES)/ips.mk
1190N/A
1185N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1190N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS) -I/usr/include/gd2"
1185N/ACONFIGURE_OPTIONS += --enable-smp-support
1185N/ACONFIGURE_OPTIONS += --enable-threads
1185N/A# The HiPE portion is a bit sensitive, and only seems to work 64-bit on
1185N/A# amd64 (thus the variant.arch tagging in erlang.p5m). erts/config.log
1190N/A# can be very interesting if issues occur.
1185N/ACONFIGURE_OPTIONS += --enable-hipe
1185N/ACONFIGURE_OPTIONS += --with-ssl
1185N/ACONFIGURE_OPTIONS += --enable-dynamic-ssl-lib
1210N/A
1185N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
1185N/A
1185N/ACONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
1470N/ACONFIGURE_OPTIONS.64 += LIBS="-m64"
1185N/A
1185N/A# Use cp(1) instead of cloney because erlang's 'install' target uses 'tar'
1185N/A# to copy files and our tar doesn't handle long links by default. Between
1185N/A# the use of 'tar' and 'ld', a path adjustment wasn't an option due to the
1185N/A# need for /usr/bin/ld and /usr/gnu/bin/tar. This is still the case with
1185N/A# erlang version 17.5.
1185N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
1185N/A ($(CP) -rp $(SOURCE_DIR)/. $(@D))
1185N/ACONFIGURE_SCRIPT = $(@D)/configure
1185N/A
1185N/A# Always show the build and link lines for easier debugging.
1185N/ACOMPONENT_BUILD_ARGS += V=1
1185N/A
1185N/ACOMPONENT_INSTALL_ARGS += INSTALL_PREFIX=$(PROTO_DIR)
1185N/A
1185N/ACOMPONENT_TEST_ENV += ERL_TOP=$(BUILD_DIR_64)
1213N/ACOMPONENT_TEST_TARGETS = tests
1185N/A
1244N/A# Remove the two lines which contains the tester's username.
1185N/ACOMPONENT_TEST_TRANSFORMS += \
1185N/A '-e "s|/ldisk/tests|XXX_UID_XXX|g" ' \
1185N/A '-e "/XXX_UID_XXX/d" '
1211N/A
1211N/ACOMPONENT_SYSTEM_TEST_ENV += ERL_TOP=$(BUILD_DIR_64)
1185N/ACOMPONENT_SYSTEM_TEST_TARGETS = tests
1190N/A
1185N/AASLR_MODE = $(ASLR_ENABLE)
1190N/A
1185N/Aconfigure: $(CONFIGURE_64)
1185N/A
1185N/Abuild: $(BUILD_64)
1185N/A
1185N/Ainstall: $(INSTALL_64)
1185N/A # remove INSTALL_PREFIX from path
1185N/A $(PERL) -pi -e "s|$(PROTO_DIR)||g" \
1185N/A $(PROTO_DIR)/usr/lib/$(MACH64)/erlang/bin/erl \
1185N/A $(PROTO_DIR)/usr/lib/$(MACH64)/erlang/releases/RELEASES
1185N/A
1185N/Atest: $(TEST_64)
1185N/A
1185N/Asystem-test: configure $(SYSTEM_TEST_64)
1190N/A
1185N/AREQUIRED_PACKAGES += library/ncurses
1185N/AREQUIRED_PACKAGES += library/security/openssl
1185N/AREQUIRED_PACKAGES += library/zlib
1185N/AREQUIRED_PACKAGES += shell/ksh93
1185N/AREQUIRED_PACKAGES += system/core-os
1185N/AREQUIRED_PACKAGES += system/library
1185N/AREQUIRED_PACKAGES += system/library/math
1185N/A