Makefile revision 837
792N/A#
792N/A# CDDL HEADER START
792N/A#
792N/A# The contents of this file are subject to the terms of the
1097N/A# Common Development and Distribution License (the "License").
792N/A# You may not use this file except in compliance with the License.
792N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/A
919N/Ainclude ../make-rules/shared-macros.mk
792N/A
792N/Adownload setup prep build install publish \
792N/Avalidate: links time-$(MACH32).so time-$(MACH64).so
792N/A
792N/A# generate wrappers for parfait. we need to generate them
792N/A# with the correct compiler variables from the common makefiles because
970N/A# some things reset the environment which causes lovely infinite
970N/A# loops
970N/Alinks:
970N/A $(MKDIR) parfait
792N/A @for i in cc CC gcc g++ ld ; do \
792N/A $(MKDIR) parfait ; \
792N/A $(RM) parfait/$$i ; \
911N/A echo "#!/bin/ksh" > parfait/$$i ; \
911N/A echo "IFS=" >> parfait/$$i ; \
911N/A echo "export PARFAIT_NATIVESUNCC=$(SPRO_VROOT)/bin/cc" >> parfait/$$i ; \
911N/A echo "export PARFAIT_NATIVESUNCXX=$(SPRO_VROOT)/bin/CC" >> parfait/$$i ; \
792N/A echo "export PARFAIT_NATIVEGCC=$(GCC_ROOT)/bin/gcc" >> parfait/$$i ; \
792N/A echo "export PARFAIT_NATIVEGXX=$(GCC_ROOT)/bin/g++" >> parfait/$$i ; \
792N/A echo "export PARFAIT_CLANG="$(PARFAIT_CLANG) >> parfait/$$i ; \
792N/A echo "exec" $(PARFAIT_ROOT)/bin/parfait-$$i '$$*' >> parfait/$$i ; \
792N/A chmod +x parfait/$$i ; \
930N/A done
924N/A
792N/A
792N/Atime-$(MACH64).o: BITS=64
792N/Atime-$(MACH32).o time-$(MACH64).o: CFLAGS += -Kpic
792N/A
792N/Atime-$(MACH32).o time-$(MACH64).o: time.c
792N/A $(CC) $(CFLAGS) -c -o $@ $<
792N/A
792N/Atime-%.so: time-%.o
792N/A $(LD) -G -o $@ $<
792N/A
792N/Aclean:
792N/A $(RM) time-*.o time*.bc
792N/A
792N/Aclobber: clean
792N/A $(RM) time-*.so python/pkglint/*.pyc
792N/A $(RM) -r parfait
792N/A
792N/A