Makefile revision 4337
0N/A#
4597N/A# CDDL HEADER START
1008N/A#
1008N/A# The contents of this file are subject to the terms of the
1008N/A# Common Development and Distribution License (the "License").
1008N/A# You may not use this file except in compliance with the License.
2362N/A#
1008N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
1008N/A# See the License for the specific language governing permissions
1008N/A# and limitations under the License.
1008N/A#
1008N/A# When distributing Covered Code, include this CDDL HEADER in each
1008N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1008N/A# If applicable, add the following below this CDDL HEADER, with the
1008N/A# fields enclosed by brackets "[]" replaced with your own identifying
1008N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1008N/A#
1008N/A# CDDL HEADER END
1008N/A#
2362N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
2362N/A#
2362N/A
1008N/A# Preferred compiler set to gcc and not Studio as on Sparc architecture
1008N/A# some assembler code is required for locking which fails to compile on
1008N/A# solaris, when using gcc this is inlined (see jslock.c)
1008N/ACOMPILER = gcc
0N/A
0N/Ainclude ../../make-rules/shared-macros.mk
1821N/A
1821N/ACOMPONENT_NAME= jsl
1821N/ACOMPONENT_VERSION= 0.3.0
1821N/ACOMPONENT_PROJECT_URL= http://www.javascriptlint.com
1821N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1821N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz
1821N/ACOMPONENT_ARCHIVE_HASH= \
1821N/A sha256:86f16792d71fc59b96f65eca65b1b7466dc046efe6d5ac04c6632f1315e83cfa
1821N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/download/$(COMPONENT_ARCHIVE)
1821N/ACOMPONENT_BUGDB= utility/jsl
2391N/A
1821N/ATPNO= 10774
1821N/A
2391N/Ainclude $(WS_MAKE_RULES)/prep.mk
1821N/Ainclude $(WS_MAKE_RULES)/justmake.mk
1821N/Ainclude $(WS_MAKE_RULES)/ips.mk
1821N/A
2391N/ACOMPONENT_BUILD_ARGS += -f src/Makefile
1821N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
1821N/ACOMPONENT_BUILD_ARGS += COPTFLAGS="$(gcc_OPT)"
1821N/ACOMPONENT_BUILD_TARGETS += all
1821N/A
1821N/ACOMPONENT_INSTALL_ARGS += -f src/Makefile
1821N/ACOMPONENT_INSTALL_ARGS += BINDIR=$(PROTOUSRBINDIR64)
1821N/ACOMPONENT_INSTALL_ARGS += USRSHAREDIR=$(PROTOUSRSHAREDIR)
1821N/ACOMPONENT_INSTALL_ARGS += INSTALL="$(INSTALL)"
1821N/ACOMPONENT_INSTALL_ARGS += MKDIR="$(MKDIR)"
1821N/A
1821N/ACOMPONENT_TEST_DIR = $(COMPONENT_SRC)/tests
1821N/ACOMPONENT_TEST_CMD = $(PERL) ./run_tests.pl
1008N/ACOMPONENT_TEST_TARGETS = $(PROTOUSRBINDIR64)/jsl
1008N/A
1821N/A# Enable ASLR for this component
1008N/AASLR_MODE = $(ASLR_ENABLE)
1008N/A
1008N/Abuild: $(BUILD_64)
1008N/A
1008N/Ainstall: $(INSTALL_64)
1821N/A
1821N/Atest: install $(TEST_64)
1821N/A
1821N/A# Add install dependency as above when system test targets are implemented.
1821N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
1821N/A
1821N/AREQUIRED_PACKAGES += system/library
1821N/AREQUIRED_PACKAGES += system/library/math
2228N/A