Makefile revision 80e2ca8596e3435bc3b76f3c597833ea0a87f85e
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
79cf9524b15ca65f55fd6913e6cf01b5581c588aAutomatic Updater# CDDL HEADER START
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# The contents of this file are subject to the terms of the
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Common Development and Distribution License (the "License").
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# You may not use this file except in compliance with the License.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# or http://www.opensolaris.org/os/licensing.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# See the License for the specific language governing permissions
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# and limitations under the License.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# When distributing Covered Code, include this CDDL HEADER in each
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# If applicable, add the following below this CDDL HEADER, with the
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# information: Portions Copyright [yyyy] [name of copyright owner]
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# CDDL HEADER END
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# This makefile drives the production of the kernel component of
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# the N-1 Solaris brand
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Path to the base of the uts directory tree (usually /usr/src/uts).
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic UpdaterUTSBASE = ../..
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontSN1_BASE = $(UTSBASE)/common/brand/sn1
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Define the module and object file sets.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontMODULE = sn1_brand
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontOBJECTS = $(SN1_BRAND_OBJS:%=$(OBJS_DIR)/%)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontLINTS = $(SN1_BRAND_OBJS:%.o=$(LINTS_DIR)/%.ln)
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic UpdaterROOTMODULE = $(ROOT_PSM_BRAND_DIR)/$(MODULE)
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater#
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater# Include common rules.
c7d32c0b0ff4c01f0d4479af3410d3c06044d48aAutomatic Updater#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontinclude $(UTSBASE)/sun4v/Makefile.sun4v
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont# Define targets
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontALL_TARGET = $(BINARY)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontLINT_TARGET = $(MODULE).lint
90f35c2f2a1c660f3b96eec413036d238df395f6Francis DupontINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater
0e9e255d1643375056aa9ed7fe2a279713ffae78Automatic Updater#
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater# Update compiler variables.
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont#
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic UpdaterINC_PATH += -I$(SN1_BASE) -I$(OBJS_DIR)
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic UpdaterLDFLAGS += -dy -Nexec/elfexec
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updater
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater#
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater# Default build targets.
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater#
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updater.KEEP_STATE:
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontdef: $(DEF_DEPS)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontall: $(ALL_DEPS)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontclean: $(CLEAN_DEPS)
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontclobber: $(CLOBBER_DEPS)
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updater
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updaterlint: $(LINT_DEPS)
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updater
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updatermodlintlib: $(MODLINTLIB_DEPS)
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updater
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updaterclean.lint: $(CLEAN_LINT_DEPS)
2a6d4c9948b3f4f31311bd799d114585a30419a9Automatic Updater
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updaterinstall: $(INSTALL_DEPS)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater#
64affc54f96a2c71cbd10ed71e246ce0746259aaAutomatic Updater# Include common targets.
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater#
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupontinclude $(UTSBASE)/sun4v/Makefile.targ
90f35c2f2a1c660f3b96eec413036d238df395f6Francis Dupont