components/visual-panels/examples/Makefile
branchs11-update
changeset 3038 1a97ff5e830d
parent 3037 ef46824e0e76
child 3039 bf667aad6d27
equal deleted inserted replaced
3037:ef46824e0e76 3038:1a97ff5e830d
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../../make-rules/shared-macros.mk
       
    27 
       
    28 GMAKE =				/usr/bin/make
       
    29 
       
    30 COMPONENT_NAME =		visual-panels-example
       
    31 COMPONENT_VERSION =		0.5.11
       
    32 COMPONENT_SRC =			src
       
    33 COMPONENT_BUGDB=		utility/vpanels
       
    34 
       
    35 include $(WS_MAKE_RULES)/justmake.mk
       
    36 include $(WS_MAKE_RULES)/ips.mk
       
    37 
       
    38 COMPONENT_BUILD_TARGETS = 	build
       
    39 COMPONENT_BUILD_ENV +=		ROOT=$(BUILD_DIR)/prototype/$(MACH)
       
    40 COMPONENT_BUILD_ENV +=		SRC=$(WS_COMPONENTS)/visual-panels
       
    41 COMPONENT_BUILD_ENV +=		WS_JAVA=$(BUILD_DIR_32)/java
       
    42 COMPONENT_BUILD_ENV +=		JAVA_HOME=$(JAVA_HOME)
       
    43 COMPONENT_BUILD_ENV +=		PATH=$(dir $(CC)):/usr/bin
       
    44 COMPONENT_BUILD_ENV +=		MACH32=$(MACH32)
       
    45 
       
    46 COMPONENT_INSTALL_TARGETS =	install
       
    47 COMPONENT_INSTALL_ENV =		$(COMPONENT_BUILD_ENV)
       
    48 
       
    49 COMPONENT_TEST_TARGETS =  	test
       
    50 COMPONENT_TEST_ENV =	  	$(COMPONENT_BUILD_ENV)
       
    51 
       
    52 # Do not apply the standard licence transforms for this component.
       
    53 LICENSE_TRANSFORMS =
       
    54 
       
    55 # common targets
       
    56 $(SOURCE_DIR)/.prep:
       
    57 	$(TOUCH) $@
       
    58 
       
    59 prep:				$(SOURCE_DIR)/.prep
       
    60 
       
    61 build:				$(BUILD_32)
       
    62 
       
    63 install:			$(INSTALL_32)
       
    64 
       
    65 download::
       
    66 	@echo 'No downloads for this component'
       
    67 
       
    68 clobber::	clean
       
    69 
       
    70 clean:: 
       
    71 	rm -f $(SOURCE_DIR)/.prep
       
    72 
       
    73 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    74 
       
    75 include $(WS_MAKE_RULES)/depend.mk