Makefile revision 718
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# CDDL HEADER START
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# The contents of this file are subject to the terms of the
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# Common Development and Distribution License (the "License").
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# You may not use this file except in compliance with the License.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# or http://www.opensolaris.org/os/licensing.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# See the License for the specific language governing permissions
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# and limitations under the License.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# When distributing Covered Code, include this CDDL HEADER in each
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# If applicable, add the following below this CDDL HEADER, with the
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# fields enclosed by brackets "[]" replaced with your own identifying
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# information: Portions Copyright [yyyy] [name of copyright owner]
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# CDDL HEADER END
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockinclude ../../../make-rules/shared-macros.mk
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockCOMPONENT_NAME= libusb
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockCOMPONENT_VERSION= 0.1.8
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockIPS_COMPONENT_VERSION= 0.5.11
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockCOMPONENT_PROJECT_URL= http://libusb.sf.net/
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockCOMPONENT_SRC= src
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockinclude $(WS_TOP)/make-rules/justmake.mk
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockinclude $(WS_TOP)/make-rules/ips.mk
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock$(BUILD_DIR_32)/.built: BITS=32
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock$(BUILD_DIR_64)/.built: BITS=64
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockCOMPONENT_BUILD_ARGS += BITS=$(BITS)
$(BUILD_DIR_32)/.installed: BITS=32
$(BUILD_DIR_64)/.installed: BITS=64
COMPONENT_INSTALL_ARGS += BITS=$(BITS)
# common targets
$(SOURCE_DIR)/.prep:
$(TOUCH) $@
$(BUILD_DIR)/libusb-64.pc: src/libusb-64.pc
/bin/sed -e "s#MACH64#$(MACH64)#g" <$< >$@
download:
clobber: clean
prep: $(SOURCE_DIR)/.prep
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
# enumerates USB devices plugged into your system
test: $(TEST_32_and_64)
CLEAN_PATHS += $(SOURCE_DIR)/.prep
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk