Makefile revision 5680
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
6a80c3c6f4b8ea7ba5e89402b8b779b09ce020e0covener# The contents of this file are subject to the terms of the
1c2cab00d988fc48cbe59032cf76cc0bab20d6f7covener# Common Development and Distribution License (the "License").
6a80c3c6f4b8ea7ba5e89402b8b779b09ce020e0covener# You may not use this file except in compliance with the License.
45dffe6c346dd73571ccaead10295fc7d53b59a6covener# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
75a230a728338d84dcfe81edd375352f34de22d0covener# See the License for the specific language governing permissions
75a230a728338d84dcfe81edd375352f34de22d0covener# and limitations under the License.
3694b0116c5729804ed6a5ce119bd8efda116c7fcovener# When distributing Covered Code, include this CDDL HEADER in each
3694b0116c5729804ed6a5ce119bd8efda116c7fcovener# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3694b0116c5729804ed6a5ce119bd8efda116c7fcovener# If applicable, add the following below this CDDL HEADER, with the
3694b0116c5729804ed6a5ce119bd8efda116c7fcovener# fields enclosed by brackets "[]" replaced with your own identifying
1f50dc34ae069adeed20b2986e5ffdefa5c410e0covener# information: Portions Copyright [yyyy] [name of copyright owner]
1f50dc34ae069adeed20b2986e5ffdefa5c410e0covener# CDDL HEADER END
63a5ea80bddcc84a462e40f402b4f330e0e05411covener# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
65a4e663b82f8bce28ac22ab2edfd7502de36998sf sha256:c54a406dddc6c2226779aeb4b5d5b5649c1d3787b39794fbae218f7535a1af63
65a4e663b82f8bce28ac22ab2edfd7502de36998sfCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
df6d5653669f1514b4449aaba99cb950c0013e5fcovener# Needed to make the tests work, now we use configure.mk not justmake.mk.
df6d5653669f1514b4449aaba99cb950c0013e5fcovenerCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
509622419be000045d461ef38fb97df778fdf81djailletc# Userland default includes -mt which links with libthread which we don't need.
509622419be000045d461ef38fb97df778fdf81djailletc# pixz's src/Makefile hard-codes some gcc-only flags in pixz_CFLAGS.
1de839c61281d58dc75715c1ae06b4b00764c4efjorton# Here we exclude the gcc-only parts, so we can build with Studio.
1de839c61281d58dc75715c1ae06b4b00764c4efjorton# PTHREAD_CFLAGS is defined in the pixz .../src/Makefile.
2e1a0fb12bdf1c20064ffe900a8f44979ec946fcminfrinCOMPONENT_BUILD_ARGS += pixz_CFLAGS="$(PTHREAD_CFLAGS)"
441d366a564bc6faa7c1eaffbacf8c4f37862199minfrin# Create a small testball to use with the test script.
441d366a564bc6faa7c1eaffbacf8c4f37862199minfrin (cd $(@D)/src; tar cvf pixz-test-tarball.tar *.c *.o)
441d366a564bc6faa7c1eaffbacf8c4f37862199minfrin (cd $(@D)/src; tar cvf pixz-test-tarball.tar *.c *.o)
0b9de55d178312ec929dbe417dd61199b269991djailletc '-e "/^real/d" ' \
0b9de55d178312ec929dbe417dd61199b269991djailletc '-e "/^user/d" ' \
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin '-e "/^sys/d" '
9e0d78337da0ce66247fc3254b9d5be262cbcea8minfrinCOMPONENT_TEST_ARGS = src/pixz-test-tarball.tar pixz.c
2ae6440d9c0beacb1b2a9726d80b755a8a4a851bjailletcCOMPONENT_SYSTEM_TEST_ENV += PIXZ_BIN=$(USRBINDIR)/pixz