Makefile revision 294
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe#
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# CDDL HEADER START
1a5f954324f2584984fc9cee7a7a8ebe8ef39aeajim#
557b032cb4aa7f7dd009066b660022910b2e78b6pquerna# The contents of this file are subject to the terms of the
557b032cb4aa7f7dd009066b660022910b2e78b6pquerna# Common Development and Distribution License (the "License").
557b032cb4aa7f7dd009066b660022910b2e78b6pquerna# You may not use this file except in compliance with the License.
557b032cb4aa7f7dd009066b660022910b2e78b6pquerna#
b39ba1ea90cd1940dcd9e8d0f18c1ff02c187ac1jim# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6f33babce8f8bc723f0b2c755aef049cd509504fpquerna# or http://www.opensolaris.org/os/licensing.
6f33babce8f8bc723f0b2c755aef049cd509504fpquerna# See the License for the specific language governing permissions
0a12339f39799193ac6866fce812a1deb8f4a1abpquerna# and limitations under the License.
0a12339f39799193ac6866fce812a1deb8f4a1abpquerna#
0a12339f39799193ac6866fce812a1deb8f4a1abpquerna# When distributing Covered Code, include this CDDL HEADER in each
3fb118bc4e1a634f71c1fa509819ceac36c79dcbpquerna# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3fb118bc4e1a634f71c1fa509819ceac36c79dcbpquerna# If applicable, add the following below this CDDL HEADER, with the
3fb118bc4e1a634f71c1fa509819ceac36c79dcbpquerna# fields enclosed by brackets "[]" replaced with your own identifying
fb59af4ce3fcdd314b848359faeddf1e51bb24c5jim# information: Portions Copyright [yyyy] [name of copyright owner]
fb59af4ce3fcdd314b848359faeddf1e51bb24c5jim#
fb59af4ce3fcdd314b848359faeddf1e51bb24c5jim# CDDL HEADER END
fb59af4ce3fcdd314b848359faeddf1e51bb24c5jim#
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna#
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna#
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquernainclude ../../make-rules/shared-macros.mk
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquerna
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquernaCOMPONENT_NAME= aalib
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquernaCOMPONENT_VERSION= 1.4.0
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquernaIPS_COMPONENT_VERSION = 1.4.5
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquernaCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8pquernaCOMPONENT_PROJECT_URL= http://aa-project.sourceforge.net/aalib
19e5deda3a29d71ac1cc4bfecce39f96ea3ab55dcovenerCOMPONENT_ARCHIVE= $(COMPONENT_NAME)-1.4rc5.tar.gz
19e5deda3a29d71ac1cc4bfecce39f96ea3ab55dcovenerCOMPONENT_ARCHIVE_HASH= sha1:a23269e950a249d2ef93625837cace45ddbce03b
19e5deda3a29d71ac1cc4bfecce39f96ea3ab55dcovenerCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/aa-project/$(COMPONENT_ARCHIVE)
19e5deda3a29d71ac1cc4bfecce39f96ea3ab55dcovener
19e5deda3a29d71ac1cc4bfecce39f96ea3ab55dcovenerinclude ../../make-rules/prep.mk
3ec1e3a35106ec4c8bcf8fae6a20cb623aed0b62pquernainclude ../../make-rules/configure.mk
3ec1e3a35106ec4c8bcf8fae6a20cb623aed0b62pquernainclude ../../make-rules/ips.mk
3ec1e3a35106ec4c8bcf8fae6a20cb623aed0b62pquernainclude ../../make-rules/lint-libraries.mk
97f7daaffd9b6c1031302d7e551d5279fa0d0d72pquerna
97f7daaffd9b6c1031302d7e551d5279fa0d0d72pquernaPKG_PROTO_DIRS += $(COMPONENT_SRC)
97f7daaffd9b6c1031302d7e551d5279fa0d0d72pquerna
847db8b2f0188cd9c840acbe4fea77a32748b2edpquerna# We need to reset configure options here because aalib is confused with
97f7daaffd9b6c1031302d7e551d5279fa0d0d72pquerna# CC and CFLAGS definitions as configure parameters.
97f7daaffd9b6c1031302d7e551d5279fa0d0d72pquernaCONFIGURE_OPTIONS = --prefix=/usr
527fc83e2bf315b2026a9ac6b1e6ce83143609bbcovenerCONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
527fc83e2bf315b2026a9ac6b1e6ce83143609bbcovenerCONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
527fc83e2bf315b2026a9ac6b1e6ce83143609bbcovenerCONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
527fc83e2bf315b2026a9ac6b1e6ce83143609bbcovenerCONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
527fc83e2bf315b2026a9ac6b1e6ce83143609bbcovenerCONFIGURE_OPTIONS += --enable-shared
99c8705f69fae71940ad9b091bd2f588a7b9f484minfrinCONFIGURE_OPTIONS += --disable-static
99c8705f69fae71940ad9b091bd2f588a7b9f484minfrinCONFIGURE_OPTIONS += --x-includes=/usr/include
99c8705f69fae71940ad9b091bd2f588a7b9f484minfrinCONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
99c8705f69fae71940ad9b091bd2f588a7b9f484minfrinCONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS))
9376e7dc573bb2721491c79b92f9c06fdfacebe6minfrin
9376e7dc573bb2721491c79b92f9c06fdfacebe6minfrinCONFIGURE_ENV += CC="$(CC)"
9376e7dc573bb2721491c79b92f9c06fdfacebe6minfrinCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
9376e7dc573bb2721491c79b92f9c06fdfacebe6minfrin
edaefb8bf78debc86ef7de441c7983d8b05517e1minfrin
edaefb8bf78debc86ef7de441c7983d8b05517e1minfrin# common targets
edaefb8bf78debc86ef7de441c7983d8b05517e1minfrinbuild: $(BUILD_32_and_64)
edaefb8bf78debc86ef7de441c7983d8b05517e1minfrin
edaefb8bf78debc86ef7de441c7983d8b05517e1minfrininstall: $(INSTALL_32_and_64)
b5cbd7bc65a5c0eda246b0cd32e7d9ed124d66c4niq
b5cbd7bc65a5c0eda246b0cd32e7d9ed124d66c4niq# actually there is a test we put in the demos,
b5cbd7bc65a5c0eda246b0cd32e7d9ed124d66c4niq# but it's 32-bit only and not a target
b5cbd7bc65a5c0eda246b0cd32e7d9ed124d66c4niqtest: $(NO_TESTS)
6ad55f63504cf5fe5205ed9495664519afeadcd9chrisd
6ad55f63504cf5fe5205ed9495664519afeadcd9chrisdBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
6ad55f63504cf5fe5205ed9495664519afeadcd9chrisd
809ec9d7cc8bc12d7dc6fafba24f3acad3e49d81chrisdinclude ../../make-rules/depend.mk
809ec9d7cc8bc12d7dc6fafba24f3acad3e49d81chrisd