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