Makefile revision 618
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# CDDL HEADER START
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# or http://www.opensolaris.org/os/licensing.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# See the License for the specific language governing permissions
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# CDDL HEADER END
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt#
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Huntinclude ../../../make-rules/shared-macros.mk
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntCOMPONENT_NAME= libusbugen
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntCOMPONENT_VERSION= 0.1.8
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntIPS_COMPONENT_VERSION= 0.5.11
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntCOMPONENT_PROJECT_URL= http://libusb.sf.net/
b66b333f59cf51ef87f973084a5023acd9317fb2Evan HuntCOMPONENT_SRC= src
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Huntinclude $(WS_TOP)/make-rules/justmake.mk
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude $(WS_TOP)/make-rules/ips.mk
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User$(BUILD_DIR_32)/.built: BITS=32
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt$(BUILD_DIR_64)/.built: BITS=64
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_BUILD_ARGS += BITS=$(BITS)
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User$(BUILD_DIR_32)/.installed: BITS=32
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt$(BUILD_DIR_64)/.installed: BITS=64
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_INSTALL_ARGS += BITS=$(BITS)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userdownload:
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userclobber: clean
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# common targets
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt$(SOURCE_DIR)/.prep:
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(TOUCH) $@
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Huntprep: $(SOURCE_DIR)/.prep
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userbuild: $(BUILD_32_and_64)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
7e71f05d8643aca84914437c900cb716444507e4Tinderbox Userinstall: $(INSTALL_32_and_64)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt# enumerates USB devices plugged into your system
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Usertest: $(TEST_32_and_64)
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCLEAN_PATH += $(SOURCE_DIR)/.prep
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Huntinclude $(WS_TOP)/make-rules/depend.mk
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt