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