Makefile revision eb0cc229f19c437a6b538d3ac0d0443268290b7e
70N/A#
70N/A# CDDL HEADER START
286N/A#
70N/A# The contents of this file are subject to the terms of the
70N/A# Common Development and Distribution License (the "License").
70N/A# You may not use this file except in compliance with the License.
70N/A#
70N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70N/A# or http://www.opensolaris.org/os/licensing.
70N/A# See the License for the specific language governing permissions
70N/A# and limitations under the License.
70N/A#
70N/A# When distributing Covered Code, include this CDDL HEADER in each
70N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
70N/A# If applicable, add the following below this CDDL HEADER, with the
70N/A# fields enclosed by brackets "[]" replaced with your own identifying
70N/A# information: Portions Copyright [yyyy] [name of copyright owner]
70N/A#
70N/A# CDDL HEADER END
70N/A#
70N/A#
70N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
70N/A# Use is subject to license terms.
70N/A#
70N/A# ident "%Z%%M% %I% %E% SMI"
70N/A#
70N/A# This makefile drives the production of all implementation architecture
70N/A# dependent modules for the i86pc architecture.
70N/A#
70N/A
319N/AUTSBASE = ..
70N/A
70N/Ainclude Makefile.i86pc
70N/A
98N/A#
213N/A# The following are x86 specific (rather than i86pc) specific modules
304N/A# which are required for the i86pc kernel to completely lint. They are
231N/A# not involved in the build in any other way. In order to minimize
98N/A# build time, it is assumed that they are up to date.
310N/A#
316N/AINTEL_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
290N/A
304N/AINTEL_LINTS = genunix
309N/A
210N/ALINT_LIBS = $(LINT_LIB) \
128N/A $(GENUNIX_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
70N/A $(PARALLEL_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
294N/A $(CLOSED_KMODS:%=$(LINT_LIB_DIR)/llib-l%.ln) \
98N/A $(INTEL_LINTS:%=$(INTEL_LIB_DIR)/llib-l%.ln)
277N/A
289N/A#
290N/A#
286N/A#
90N/Adef := TARGET= def
295N/Aall := TARGET= all
70N/Ainstall := TARGET= install
299N/Aclean := TARGET= clean
262N/Aclobber := TARGET= clobber
277N/Alint := TARGET= lint
280N/Alintlib := TARGET= lintlib
309N/Amachmodlintlib := TARGET= modlintlib
70N/Amodlist := TARGET= modlist
70N/Amodlist modlist.intel := NO_STATE= -K $$MODSTATE$$$$
319N/Aclean.lint := TARGET= clean.lint
280N/Acheck := TARGET= check
319N/A
70N/A.KEEP_STATE:
70N/A
98N/A.PARALLEL: $(PARALLEL_KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
98N/A modlist modlist.intel
231N/A
98N/AINITIAL_TARGETS = \
156N/A genassym \
156N/A unix \
98N/A cpu/scripts
70N/A
70N/Adef all clean clobber clean.lint: setup genassym unix .WAIT \
70N/A $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) $(IMPLEMENTATIONS)
70N/A
70N/Ainstall: install_platforms setup genassym unix .WAIT \
70N/A $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) $(IMPLEMENTATIONS)
70N/A
70N/A# list the modules under i86pc.
70N/Amodlist: unix $(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS) \
70N/A $(IMPLEMENTATIONS)
70N/A
70N/A# list the modules for Install -k i86pc.
70N/Amodlist.karch: modlist modlist.intel
70N/A
70N/Amodlist.intel:
70N/A @cd $(SRC)/uts/intel; pwd; $(MAKE) $(NO_STATE) modlist
70N/A
70N/Alintlib: unix
253N/A
70N/Amodlintlib: $(KMODS) $(CLOSED_KMODS)
70N/A
genassym unix $(KMODS): FRC
@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)
setup: FRC
@cd cpu/scripts; pwd; $(MAKE) $(TARGET)
$(IMPLEMENTATIONS): FRC
@cd $@; pwd; THISIMPL=$@ $(MAKE) $(NO_STATE) $(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: $(IMPLEMENTATIONS) 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) \
$(IMPLEMENTATIONS)
$(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 $@