2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A# Copyright (c) 2006, 2011, Oracle
and/or its affiliates. All rights reserved.
2N/A# We build each flavor in a separate make invocation to improve clarity(!) in
2N/A# flavor they're supposed to build. This causes the correct set of source
2N/A# files and compiler and linker flags to be selected.
2N/A# The SPARC library is built from the closed gate. This Makefile is shared
2N/A# between both environments, so all paths must be absolute.
2N/Ainstall: $(TYPES:%=install.%)
2N/Aall: $(TYPES:%=all.%)
2N/A @CURTYPE=$(@:all.%=%) $(MAKE) $@.targ
2N/A$(TYPES:%=install.%):
2N/A @CURTYPE=$(@:install.%=%) $(MAKE) $@.targ
2N/A$(TYPES:%=stubinstall.%):
2N/A @CURTYPE=$(@:stubinstall.%=%) $(MAKE) $@.targ
2N/Astubinstall: $(TYPES:%=stubinstall.%)
2N/Alint: $(TYPES:%=lint.%)
2N/A @CURTYPE=$(@:lint.%=%) $(MAKE) lintcheck
2N/A# Ensure that library does not contain any unnecessary data
2N/A$(STANDLIBRARY): $(OBJS) $(LINKTEST_OBJ)
2N/A $(LD) $(BREDUCE) $(ZDEFS) $(LDFLAGS) -o $@.linktest $(OBJS) \
2N/A $(LD) $(LDFLAGS) -o $@ $(OBJS)
2N/Aclobber: $(TYPES:%=clobber.%)
2N/A$(TYPES:%=clobber.%):
2N/A $(RM) $(CLOBBERTARGFILES)
2N/A# include library targets
2N/Aobjs/%.o pics/%.o: $(ISASRCDIR)/%.c
2N/Aobjs/%.o pics/%.o: $(ISASRCDIR)/%.s
2N/Aobjs/%.o pics/%.o: $(COMDIR)/%.c
2N/A# install rule for lint library target
2N/A$(ROOTLINTDIR)/%: $(COMDIR)/%
2N/A# install rule for x86 common source