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