Makefile revision 783
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# CDDL HEADER START
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# The contents of this file are subject to the terms of the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Common Development and Distribution License (the "License").
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# You may not use this file except in compliance with the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# See the License for the specific language governing permissions
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# and limitations under the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# When distributing Covered Code, include this CDDL HEADER in each
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# If applicable, add the following below this CDDL HEADER, with the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# fields enclosed by brackets "[]" replaced with your own identifying
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# information: Portions Copyright [yyyy] [name of copyright owner]
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# CDDL HEADER END
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# IPS_COMPONENT_VERSION needs update whenever this is changed
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMPONENT_VERSION= R$(COMPONENT_VERSION_MAJOR)$(COMPONENT_VERSION_MINOR)-$(COMPONENT_VERSION_MICRO)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMPONENT_ARCHIVE_HASH= sha1:6c45509acf70d35d5def2cbefd86ada093c1ac3a
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMPONENT_SRC_1= $(COMPONENT_NAME_1)_$(COMPONENT_VERSION)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMPONENT_ARCHIVE_HASH_1= sha1:ae7036bd2afc9d1fca97f0de2eca84f56656def8
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_1)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# HTML documentation
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMPONENT_SRC_2= $(COMPONENT_NAME_2)_$(COMPONENT_VERSION)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMPONENT_ARCHIVE_HASH_2= sha1:0bd369d02051e01bac58c9b8665bd3538e116f51
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCOMPONENT_ARCHIVE_URL_2= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE_2)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# IPS_COMPONENT_VERSION is by default set to $(COMPONENT_VERSION) but it is not
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# enough for us. We need to include the $(COMPONENT_SUBVERSION) somehow.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Because the IPS_COMPONENT_VERSION cannot contain letters we use mapping:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# R(major)(minor)-(micro) - (major).(minor as number).(micro)
9512fe850e98fdd448c638ca63fdd92a8a510255ahlIPS_COMPONENT_VERSION= $(COMPONENT_VERSION_MAJOR).2.$(COMPONENT_VERSION_MICRO)
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Built in SFW with gcc and builds cleanly now only with gcc
9512fe850e98fdd448c638ca63fdd92a8a510255ahlCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS) -I/usr/include/gd2"
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# Use cp(1) instead of cloney because erlang's 'install' target uses 'tar'
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# to copy files and our tar doesn't handle long links by default. Between
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# the use of 'tar' and 'ld', a path adjustment wasn't an option due to the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# need for /usr/bin/ld and /usr/gnu/bin/tar. Perhaps this can be looked
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# at when we upgrade to a more current version.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl# common targets
9512fe850e98fdd448c638ca63fdd92a8a510255ahl # Undelivered useless files:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl # erlang/*/*.bat
9512fe850e98fdd448c638ca63fdd92a8a510255ahl # manpages: start.1 werl.1
9512fe850e98fdd448c638ca63fdd92a8a510255ahl # remove INSTALL_PREFIX from path