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