Makefile revision 6345
363N/A# The contents of this file are subject to the terms of the 363N/A# Common Development and Distribution License (the "License"). 363N/A# You may not use this file except in compliance with the License. 363N/A# See the License for the specific language governing permissions 363N/A# and limitations under the License. 363N/A# When distributing Covered Code, include this CDDL HEADER in each 363N/A# If applicable, add the following below this CDDL HEADER, with the 363N/A# fields enclosed by brackets "[]" replaced with your own identifying 363N/A# information: Portions Copyright [yyyy] [name of copyright owner] 7161N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. 3996N/A# Userland default includes -mt which links with libthread which we don't need. 363N/A# We prefer openssl over nettle. 363N/A# libarchive's Makefile hard-codes some gcc-only flags in COMMON_CFLAGS, then 695N/A# appends CFLAGS to that. Reset the former here so we can build with Studio. 363N/A# We need GNU awk for the following to work; hence the PATH tweak. 3091N/A# We then convert BSD-style section numbers in the libarchive man pages to 3091N/A# Solaris-style section numbers. 363N/A -e
's/Xr \(malloc\|getpwuid\|getgrgud\|strerror\|printf\|getpwnam\|getgrnam\) 3ARCHIVE/Xr \13C/' \
363N/A -e
's/\(Dt.*LIBARCHIVE.*\)3ARCHIVE/\13LIB/' \
363N/A# Needed for "gmake test" to work successfully. 363N/A# If SHELLOPTS is exported (as it is by the userland makefiles), 363N/A# then all shell options get exported to child invocations of bash, 363N/A# which results in test failures due to nounset and xtrace being 2369N/A# set unexpectedly, and errors such as "$1: unbound variable" and 2369N/A# diffs failing due to script tracing in output files. 363N/A '-e "/Tests run:/p" ' \
363N/A '-e "/Assertions failed:/p" ' \
363N/A '-e "/Skips reported:/p" ' \
363N/A '-e "/Failing tests:/p" ' \