#
# 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
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# This makefile drives the production of unix (and unix.o).
#
# i86xpv implementation architecture dependent
#
#
#
UTSBASE = ../..
#
# Define the module and object file sets.
#
#
# Include common rules.
#
#
# Define targets
#
#
# This is UNIX_DIR. Use a short path.
#
UNIX_DIR = .
#
# Overrides
#
CLEANFILES += \
$(UNIX_O) $(MODSTUBS_O) \
$(OBJS_DIR)/dtracestubs.s \
$(DTRACESTUBS_O) $(DTRACESTUBS)
CLEANFILES += \
$(DBOOT_OBJECTS) \
$(DBOOT_BIN)
CLEANFILES += \
$(OBJS_DIR)/fb_swtch_src.o \
$(OBJS_DIR)/fb_swtch_src \
CLEANFILES += \
# instr_size needs a special header
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
# Ensure that lint sees 'struct cpu' containing a fully declared
# embedded 'struct machcpu'
#
#
# Default build targets.
#
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
install: $(INSTALL_DEPS)
$(DTRACESTUBS)
$(POST_PROCESS)
-o $(DBOOT_BIN) $(DBOOT_OBJECTS)
@echo " .data" > $(DBOOT_S)
@echo " .globl dboot_image" >> $(DBOOT_S)
@echo "dboot_image:" >> $(DBOOT_S)
$(DBOOT_OBJS_DIR):
#
# Special rules for generating assym.h for inclusion in assembly files.
#
#
# The global lint target builds the kernel lint library (llib-lunix.ln)
# which is equivalent to a lint of /unix.o. Then all kernel modules for
# this architecture are linted against the kernel lint library.
#
# Note: lint errors in the kernel lint library will be repeated for
# each module. It is important that the kernel lint library
# be clean to keep the textual output to a reasonable level.
#
@pwd
@$(MV) $(@F) $@
@pwd
@$(MV) $(@F) $@
#
# Include common targets.
#