Makefile revision 4957
0N/A#
3909N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A
2362N/A#
2362N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= aalib
0N/ACOMPONENT_VERSION= 1.4.0
0N/AHUMAN_VERSION= 1.4rc5
0N/AIPS_COMPONENT_VERSION = 1.4.5
0N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0N/ACOMPONENT_PROJECT_URL= http://aa-project.sourceforge.net/aalib/
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(HUMAN_VERSION).tar.gz
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:fbddda9230cf6ee2a4f5706b4b11e2190ae45f5eda1f0409dc4f99b35e0a70ee
0N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/aa-project/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_BUGDB= library/aalib
0N/A
0N/ATPNO= 6118
0N/A
0N/Ainclude $(WS_MAKE_RULES)/prep.mk
0N/Ainclude $(WS_MAKE_RULES)/configure.mk
0N/Ainclude $(WS_MAKE_RULES)/ips.mk
0N/Ainclude $(WS_MAKE_RULES)/lint-libraries.mk
0N/A
1460N/ALINT_FLAGS += -I$(SOURCE_DIR)/src
1460N/A
1460N/APKG_PROTO_DIRS += $(COMPONENT_SRC)
1460N/A
1460N/A# We need to reset configure options here because aalib is confused with
1460N/A# CC and CFLAGS definitions as configure parameters.
0N/ACONFIGURE_OPTIONS = --prefix=/usr
0N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
1460N/ACONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
1460N/ACONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
1460N/ACONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
1460N/ACONFIGURE_OPTIONS += --enable-shared
1460N/ACONFIGURE_OPTIONS += --disable-static
0N/ACONFIGURE_OPTIONS += --x-includes=/usr/include
0N/ACONFIGURE_OPTIONS += --x-libraries=$(CONFIGURE_LIBDIR.$(BITS))
0N/ACONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS))
0N/A
0N/ACONFIGURE_ENV += CC="$(CC)"
1460N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
1460N/A
1460N/ACOMPONENT_TEST_DIR = $(@D)/src
1460N/ACOMPONENT_TEST_CMD = perl -E 'say "\n" x 40' | ./aatest
1460N/ACOMPONENT_TEST_ARGS = -kbddriver stdin -driver stdout
1460N/ACOMPONENT_TEST_TARGETS =
1460N/A
1460N/ACOMPONENT_SYSTEM_TEST_DIR = $(SOURCE_DIR)/src
1460N/ACOMPONENT_SYSTEM_TEST_CMD = perl -E 'say "\n" x 40' | /usr/demo/aalib/aatest
1460N/ACOMPONENT_SYSTEM_TEST_ARGS = -kbddriver stdin -driver stdout
1460N/ACOMPONENT_SYSTEM_TEST_TARGETS =
0N/A
1460N/A# Master test results are the same for both 32-bit and 64-bit, so override
1460N/A# here, rather than create multiple identical master files.
1460N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
0N/A
0N/AASLR_MODE = $(ASLR_ENABLE)
0N/A
1460N/A# common targets
0N/Aconfigure: $(CONFIGURE_32_and_64)
1460N/A
0N/Abuild: $(BUILD_32_and_64)
1460N/A
0N/Ainstall: $(INSTALL_32_and_64)
1460N/A
1460N/Atest: $(TEST_32_and_64)
1460N/Asystem-test: $(SYSTEM_TEST_32_and_64)
1460N/A
1460N/A
1460N/AREQUIRED_PACKAGES += library/slang
0N/AREQUIRED_PACKAGES += shell/ksh93
0N/AREQUIRED_PACKAGES += system/library
0N/AREQUIRED_PACKAGES += system/library/math
1460N/AREQUIRED_PACKAGES += x11/library/libx11
1460N/A