Makefile revision 0b54b18c5d076675196c58712af460e4e28d9ae0
#
# 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
#
#
#
#
LIBRARY= $(LIBBASENAME:%=%.a)
VERS= .1
# Note that we build libc_pic.a for the benefit of building
# and it must be built in the same workspace as libc.
# include common library definitions
#
# on some architectures, we build multiple libc variants
#
VARBLD64_1= $(MACH:sparc=sparcv9)
VARBLD64= $(VARBLD64_1:i386=)
# definitions for install_h target
# install rules for install_h target
$(INS.file)
@if [ ! -f $(ROOTFS_LIBDIR)/libc_i18n.a -o \
! -f $(ROOTFS_LIBDIR64)/libc_i18n.a ]; 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
$(MACHLIBS64): $(MACH_COMP)
$(VARIANTLIBS): FRC
$(VARIANTLIBS64): FRC
etc \
inslib32 \
$(ROOTFS_LINTLIB) \
$(ROOTFS_LINTLIB64) \
$(ROOTFS_LIB)/%: $(MACH)/%
$(INS.file)
$(INS.liblink)
$(ROOTFS_LIB64)/%: $(MACH64)/%
$(INS.file)
$(INS.liblink)
$(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):
$(MSGDOMAIN):
$(INS.dir)
$(XREF) -x $@
FRC:
# include MACH-specific library targets