Home | History | Annotate | Download | only in SUNWfsu
      1  6429  vs195195 #
      2  6429  vs195195 # CDDL HEADER START
      3  6429  vs195195 #
      4  6429  vs195195 # The contents of this file are subject to the terms of the
      5  6429  vs195195 # Common Development and Distribution License (the "License").
      6  6429  vs195195 # You may not use this file except in compliance with the License.
      7  6429  vs195195 #
      8  6429  vs195195 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9  6429  vs195195 # or http://www.opensolaris.org/os/licensing.
     10  6429  vs195195 # See the License for the specific language governing permissions
     11  6429  vs195195 # and limitations under the License.
     12  6429  vs195195 #
     13  6429  vs195195 # When distributing Covered Code, include this CDDL HEADER in each
     14  6429  vs195195 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15  6429  vs195195 # If applicable, add the following below this CDDL HEADER, with the
     16  6429  vs195195 # fields enclosed by brackets "[]" replaced with your own identifying
     17  6429  vs195195 # information: Portions Copyright [yyyy] [name of copyright owner]
     18  6429  vs195195 #
     19  6429  vs195195 # CDDL HEADER END
     20  6429  vs195195 #
     21  6429  vs195195 
     22  6429  vs195195 #
     23  6429  vs195195 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
     24  6429  vs195195 # Use is subject to license terms.
     25  6429  vs195195 #
     26  6429  vs195195 # ident	"%Z%%M%	%I%	%E% SMI"
     27  6429  vs195195 #
     28  6429  vs195195 
     29  6429  vs195195 include ../Makefile.com
     30  6429  vs195195 
     31  6465  vs195195 FILES += prototype_sparc
     32  6455  vs195195 
     33  6429  vs195195 .KEEP_STATE:
     34  6429  vs195195 
     35  6530  vs195195 all: $(FILES) depend
     36  6429  vs195195 
     37  6455  vs195195 install: prototype_sparc all pkg
     38  6429  vs195195 
     39  6455  vs195195 # FPScrubber consists of a generic SMF managed daemon and a hardware
     40  6455  vs195195 # specific fpu test. Currently the test part is not built under gcc 
     41  6455  vs195195 # compilation due to dependency on SunStudio libraries namely, 
     42  6455  vs195195 # libsunperf.a, libfui.a, libfai.a, libfsu.a and libsunmath.a . So, 
     43  6455  vs195195 # even when the build succeeds, for gcc based builds the test will 
     44  6455  vs195195 # not be there. Therefore we make the package conditionally. 
     45  6455  vs195195 # "proto_cc_sparc" prototype file contains objects for cc package
     46  6455  vs195195 # and "proto_gcc_sparc" contains objects for gcc package.
     47  6429  vs195195 
     48  6429  vs195195 proto:sh = \
     49  6429  vs195195 	if [ -f $ROOT/usr/lib/fps/sun4u/UltraSPARC-III/fptest ]; \
     50  6429  vs195195 	then \
     51  6455  vs195195 	echo "prototype_cc_sparc"; \
     52  6429  vs195195 	else \
     53  6455  vs195195 	echo "prototype_gcc_sparc"; \
     54  6429  vs195195         fi
     55  6429  vs195195 
     56  6465  vs195195 prototype_sparc: prototype_cc_sparc prototype_gcc_sparc
     57  6455  vs195195 	$(RM) prototype_sparc
     58  6455  vs195195 	@$(CP) $(proto) prototype_sparc
     59  6429  vs195195 
     60  6429  vs195195 
     61  6455  vs195195 include ../Makefile.targ
     62  6429  vs195195 
     63