Makefile revision adfcba552dfc70ff685a2e8703fe1761b244f3e8
0N/A#
0N/A# CDDL HEADER START
8N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A#
0N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A# This makefile drives the production of all implementation architecture
0N/A# dependent modules for the i86pc architecture.
0N/A#
0N/A
8N/AUTSBASE = ..
0N/A
0N/Ainclude Makefile.i86pc
0N/A
0N/A#
0N/A# The following are x86 specific (rather than i86pc) specific modules
0N/A# which are required for the i86pc kernel to completely lint. They are
0N/A# not involved in the build in any other way. In order to minimize
0N/A# build time, it is assumed that they are up to date.
0N/A#
8N/AINTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
0N/A
0N/AINTEL_LINTS = genunix
0N/A
0N/ALINT_PARALLEL_KMODS = $(PARALLEL_KMODS:nxge=)
0N/ALINT_LIBS = $(LINT_LIB) \
0N/A $(GENUNIX_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
0N/A $(LINT_PARALLEL_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
0N/A $(CLOSED_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
0N/A $(INTEL_LINTS:%=$(INTEL_LIB_DIR)/llib-l%.ln)
0N/A
0N/A#
0N/A#
0N/A#
0N/Adef := TARGET= def
0N/Aall := TARGET= all
0N/Ainstall := TARGET= install
0N/Aclean := TARGET= clean
0N/Aclobber := TARGET= clobber
0N/Alint := TARGET= lint
0N/Alintlib := TARGET= lintlib
0N/Amachmodlintlib := TARGET= modlintlib
0N/Amodlist := TARGET= modlist
0N/Amodlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
0N/Aclean.lint := TARGET= clean.lint
0N/Acheck := TARGET= check
0N/A
0N/A.KEEP_STATE:
0N/A
0N/A.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
0N/A modlist modlist.intel
0N/A
0N/AINITIAL_TARGETS = \
0N/A genassym \
0N/A unix \
0N/A cpu/scripts
0N/A
0N/Adef all clean clobber clean.lint: setup genassym unix .WAIT \
0N/A $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
0N/A
0N/Ainstall: install_platforms setup genassym unix .WAIT \
0N/A $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
0N/A
0N/A# list the modules under i86pc.
0N/Amodlist: unix $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
0N/A
0N/A# list the modules for Install -k i86pc.
0N/Amodlist.karch: modlist modlist.intel
0N/A
0N/Amodlist.intel:
0N/A @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
0N/A
0N/Alintlib: unix
modlintlib: $(KMODS) $(CLOSED_KMODS)
genassym unix $(KMODS): FRC
@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
setup: FRC
@cd cpu/scripts; pwd; $(MAKE) $(TARGET)
$(XMODS): FRC
@if [ -f $@/Makefile ]; then \
cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
else \
true; \
fi
$(CLOSED_KMODS): FRC
cd $(CLOSED)/uts/i86pc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
$(CLOSED_XMODS): FRC
@if [ -f $(CLOSED)/uts/i86pc/$@/Makefile ]; then \
cd $(CLOSED)/uts/i86pc/$@; pwd; \
$(MAKE) $(NO_STATE) $(TARGET); \
else \
true; \
fi
install_h check: FRC
@cd sys; pwd; $(MAKE) $(TARGET)
#
# Definitions for the /platform directory aliases.
# Currently none for i86pc.
#
PLAT_LINKS =
#
# Make the /platform directories. This is hardwired here because
# the first stage of the project (KBI) only implements the userland
# changes, but the only reasonable place to record the aliases is
# here in kernel land.
#
install_platforms: $(ROOT_PSM_DIR) $(USR_PSM_DIR) \
$(ROOT_PLAT_LINKS) $(USR_PLAT_LINKS) \
$(OEM_USR_PLAT_LINKS)
#
# Full kernel lint target.
#
LINT_TARGET = globallint
# workaround for multiply defined errors
globallint := LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
globallint:
@-$(ECHO) "\nFULL KERNEL: global crosschecks:"
@-$(LINT) $(LINTFLAGS) $(LINT_LIBS) 2>&1 | $(LGREP.2)
lint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS)
$(INTEL_LINTS): FRC
@cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
include ../Makefile.targ
#
# Cross-reference customization: build a cross-reference over all of the
# i86pc-related directories.
#
SHARED_XRDIRS = ../i86pc ../intel ../common
XRDIRS = $(SHARED_XRDIRS)
$(CLOSED_BUILD)XRDIRS = $(SHARED_XRDIRS:../%=../% ../../../closed/uts/%)
XRPRUNE = sun4u sun4
cscope.out tags: FRC
$(XREF) -x $@