Makefile revision 3477
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater# CDDL HEADER START
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater#
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# The contents of this file are subject to the terms of the
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater# Common Development and Distribution License (the "License").
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# You may not use this file except in compliance with the License.
59dd3b3cd954239d98ef52cd26328856cb6f2975Automatic Updater#
a3b428812703d22a605a9f882e71ed65f0ffdc65Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# and limitations under the License.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater#
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5c0fc20d6e59216d9a142409e5fdb498153aeaa5Automatic Updater# If applicable, add the following below this CDDL HEADER, with the
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
04eba969cb9a54bbda2896db2067c07b2ac5ba16Automatic Updater#
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrewsinclude ../../make-rules/shared-macros.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_NAME= openusb
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_VERSION= 1.0.1
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_SRC_NAME= libopenusb
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_PROJECT_URL= http://openusb.sourceforge.net/
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCOMPONENT_ARCHIVE_HASH= \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews sha256:031098c376f16f6030c4dbd553266e107b39d1f7b3fc366f8f7fd412d3d7c3ad
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/openusb/files/$(COMPONENT_NAME)/libopenusb%201.0.1/$(COMPONENT_ARCHIVE)/download
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterCOMPONENT_BUGDB= library/libopenusb
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
fc3576328379e813ccf6b3a6e66d9bb701a79c83Automatic UpdaterTPNO= 8843
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/prep.mk
bbb069be941f649228760edcc241122933c066d2Automatic Updaterinclude ../../make-rules/configure.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/ips.mk
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterCOMPONENT_PRE_CONFIGURE_ACTION = \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ($(CLONEY) $(SOURCE_DIR) $(@D))
3a6600c8d319275d73c36eb625f77103cd83e824Automatic Updater
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsCOMPILER = gcc
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsPATCH_LEVEL = 1
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsCOMPONENT_POST_BUILD_ACTION = \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews (cd $(@D)/src; $(MAKE) install-sunos-backend)
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
aa1d397c4736cd86540555193d71e55fa3b37b2aMark AndrewsASLR_MODE = $(ASLR_NOT_APPLICABLE)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrewsconfigure: $(CONFIGURE_32_and_64)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonbuild: $(BUILD_32_and_64)
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtoninstall: $(INSTALL_32_and_64)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewstest: $(TEST_32_and_64)
6f046a065e5543f8cd7e2f24991c65d2372f4c8dMark Andrews
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/depend.mk
a8644ebab678a1de66cbfaabb513651a739958afAutomatic Updater