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