#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
#
# Note that we build libc_pic.a for the benefit of building ld.so.1. Only
# ld.so.1 needs it and it must be built in the same workspace as libc.
# Since we do not deliver it, we install it in the stub proto rather than
# the real one.
# include common library definitions
#
# on some architectures, we build multiple libc variants
#
# definitions for install_h target
# install rules for install_h target
$(INS.file)
@if [ ! -f $(LIBC_I18N) -o \
! -f $(LIBC_I18N64) ]; then \
if [ "$$CLOSED_IS_PRESENT" = no ]; then \
$(ECHO) "Warning: closed binaries not" \
"properly unpacked." >&2;\
exit 1; \
else \
$(ECHO) "Warning: libc_i18n.a must be built" \
"before libc can be built." >&2; \
exit 1; \
fi \
fi
$(ECHO) "Error: Invalid reference to environ" ; \
$(ECHO) "Error: See comments in port/gen/env_data.c" ; \
exit 1; \
fi
$(ECHO) "Error: Invalid reference to environ" ; \
$(ECHO) "Error: See comments in port/gen/env_data.c" ; \
exit 1; \
fi
$(VARIANTLIBS): FRC
$(VARIANTLIBS64): FRC
all \
etc \
inslib32 \
$(ROOTFS_LINTLIB) \
$(ROOTVARIANTLIBS) \
$(STUBROOTFS_LIB)/$(LIB_PIC)
$(ROOTFS_LINTLIB64) \
$(ROOTVARIANTLIBS64) \
$(STUBROOTFS_LIB64)/$(LIB_PIC)
$(ROOTFS_LIB)/%: $(MACH)/%
$(INS.file)
$(INS.liblink)
$(ROOTFS_LIB64)/%: $(MACH64)/%
$(INS.file)
$(INS.liblink)
$(STUBROOTFS_LIB)/%: $(MACH)/%
$(INS.file)
$(STUBROOTFS_LIB64)/%: $(MACH64)/%
$(INS.file)
$(ROOTVARIANTDIR): $(ROOTLIB)
$(INS.dir)
$(INS.file)
$(INS.file)
$(INS.file)
$(ROOTVARIANTDIR64): $(ROOTLIB64)
$(INS.dir)
$(INS.file)
# install rule for lint library target
$(ROOTFS_LINTDIR)/%: port/%
$(INS.file)
$(ROOTFS_LINTDIR64)/%: port/%
$(INS.file)
$(ROOTFS_LINTDIR)/%: $(MACH)/%
$(INS.file)
$(ROOTFS_LINTDIR64)/%: $(MACH64)/%
$(INS.file)
$(LINTLIB):
$(LINTLIB64):
# Only build stubs for the generic variants
$(MSGDOMAIN):
$(INS.dir)
$(XREF) -x $@
FRC:
# include MACH-specific library targets