Makefile revision 6047
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# CDDL HEADER START
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# The contents of this file are subject to the terms of the
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Common Development and Distribution License (the "License").
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# You may not use this file except in compliance with the License.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# See the License for the specific language governing permissions
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# and limitations under the License.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# When distributing Covered Code, include this CDDL HEADER in each
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# If applicable, add the following below this CDDL HEADER, with the
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# fields enclosed by brackets "[]" replaced with your own identifying
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# information: Portions Copyright [yyyy] [name of copyright owner]
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# CDDL HEADER END
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved.
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleevalidate: links pkglint time-$(MACH32).so time-$(MACH64).so
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# generate wrappers for parfait. we need to generate them
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# with the correct compiler variables from the common makefiles because
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee# some things reset the environment which causes lovely infinite
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee echo "export PARFAIT_NATIVESUNCC=$(SPRO_VROOT)/bin/cc" >> $(PARFAIT_TOOLS)/$$i ; \
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee echo "export PARFAIT_NATIVESUNCXX=$(SPRO_VROOT)/bin/CC" >> $(PARFAIT_TOOLS)/$$i ; \
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee echo "export PARFAIT_NATIVEGCC=$(GCC_ROOT)/bin/gcc" >> $(PARFAIT_TOOLS)/$$i ; \
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee echo "export PARFAIT_NATIVEGXX=$(GCC_ROOT)/bin/g++" >> $(PARFAIT_TOOLS)/$$i ; \
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee echo "export PARFAIT_NATIVELD=/usr/bin/ld" >> $(PARFAIT_TOOLS)/$$i ; \
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee echo "exec" $(PARFAIT_ROOT)/$(MACH)/parfait-$$i '$$*' >> $(PARFAIT_TOOLS)/$$i ; \
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlcleetime-%.so: time-%.o
3ccda6479cf240cd732ac4b7a8a82fcc1716496dlclee @$(LD) -G -o $@ $<