Makefile revision 337fc9e235877b459e389f54daf9833bbc645439
0N/A#
2362N/A# CDDL HEADER START
0N/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.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/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#
2362N/A#
2362N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2362N/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
0N/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#
0N/AINTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
0N/A
0N/AINTEL_LINTS = genunix
0N/A
0N/ALINT_LIBS = $(LINT_LIB) \
0N/A $(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: $(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
0N/A
0N/Amodlintlib: $(KMODS) $(CLOSED_KMODS)
0N/A
0N/Agenassym unix $(KMODS): FRC
0N/A @cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
0N/A
0N/Asetup: FRC
0N/A @cd cpu/scripts; pwd; $(MAKE) setup
0N/A
0N/A$(XMODS): FRC
0N/A @if [ -f $@/Makefile ]; then \
0N/A cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET); \
0N/A else \
0N/A true; \
0N/A fi
0N/A
0N/A$(CLOSED_KMODS): FRC
0N/A cd $(CLOSED)/uts/i86pc/$@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
0N/A
0N/A$(CLOSED_XMODS): FRC
0N/A @if [ -f $(CLOSED)/uts/i86pc/$@/Makefile ]; then \
0N/A cd $(CLOSED)/uts/i86pc/$@; pwd; \
0N/A $(MAKE) $(NO_STATE) $(TARGET); \
0N/A else \
0N/A true; \
0N/A fi
0N/A
0N/Ainstall_h check: FRC
0N/A @cd sys; pwd; $(MAKE) $(TARGET)
0N/A
0N/A#
0N/A# For some x86 OEMs that deliver their own platform kernel modules but
# will not deliver anything in usr/platform, they should add their platforms
# here so a symlink will be created to the standard usr/platform/i86pc.
#
OEM_LINKS = ncri86pc
OEM_USR_PLAT_LINKS = $(OEM_LINKS:%=$(USR_PLAT_DIR)/%)
$(OEM_USR_PLAT_LINKS):
$(INS.slink1)
#
# 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)
#
# Work-around to disable acpica global crosscheck lint warnings
#
LGREP.i86pc = grep -v 'i86pc/io/acpica'
#
# 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.i86pc) | $(LGREP.2)
lint: lintlib .WAIT modlintlib .WAIT $(INTEL_LINTS) $(LINT_DEPS)
$(INTEL_LINTS): FRC
@cd $(UTSBASE)/intel/$@; pwd; $(MAKE) modlintlib
FRC:
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 $@