Makefile revision e71ca95ca6de23d33b54cb55cefdef30bc7c969b
4e5b757fbcf21077677360be274461dcd9064106kupfer#
4e5b757fbcf21077677360be274461dcd9064106kupfer# CDDL HEADER START
4e5b757fbcf21077677360be274461dcd9064106kupfer#
4e5b757fbcf21077677360be274461dcd9064106kupfer# The contents of this file are subject to the terms of the
4e5b757fbcf21077677360be274461dcd9064106kupfer# Common Development and Distribution License (the "License").
4e5b757fbcf21077677360be274461dcd9064106kupfer# You may not use this file except in compliance with the License.
4e5b757fbcf21077677360be274461dcd9064106kupfer#
4e5b757fbcf21077677360be274461dcd9064106kupfer# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4e5b757fbcf21077677360be274461dcd9064106kupfer# or http://www.opensolaris.org/os/licensing.
4e5b757fbcf21077677360be274461dcd9064106kupfer# See the License for the specific language governing permissions
4e5b757fbcf21077677360be274461dcd9064106kupfer# and limitations under the License.
4e5b757fbcf21077677360be274461dcd9064106kupfer#
4e5b757fbcf21077677360be274461dcd9064106kupfer# When distributing Covered Code, include this CDDL HEADER in each
4e5b757fbcf21077677360be274461dcd9064106kupfer# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4e5b757fbcf21077677360be274461dcd9064106kupfer# If applicable, add the following below this CDDL HEADER, with the
4e5b757fbcf21077677360be274461dcd9064106kupfer# fields enclosed by brackets "[]" replaced with your own identifying
4e5b757fbcf21077677360be274461dcd9064106kupfer# information: Portions Copyright [yyyy] [name of copyright owner]
4e5b757fbcf21077677360be274461dcd9064106kupfer#
4e5b757fbcf21077677360be274461dcd9064106kupfer# CDDL HEADER END
4e5b757fbcf21077677360be274461dcd9064106kupfer#
4e5b757fbcf21077677360be274461dcd9064106kupfer#
4e5b757fbcf21077677360be274461dcd9064106kupfer# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4e5b757fbcf21077677360be274461dcd9064106kupfer# Use is subject to license terms.
4e5b757fbcf21077677360be274461dcd9064106kupfer#
4e5b757fbcf21077677360be274461dcd9064106kupfer# This makefile drives the production of the kernel component of
4e5b757fbcf21077677360be274461dcd9064106kupfer# the Solaris 10 brand
4e5b757fbcf21077677360be274461dcd9064106kupfer#
4e5b757fbcf21077677360be274461dcd9064106kupfer
4e5b757fbcf21077677360be274461dcd9064106kupfer#
4e5b757fbcf21077677360be274461dcd9064106kupfer# Path to the base of the uts directory tree (usually /usr/src/uts).
4e5b757fbcf21077677360be274461dcd9064106kupfer#
4e5b757fbcf21077677360be274461dcd9064106kupferUTSBASE = ../..
S10_BASE = $(UTSBASE)/common/brand/solaris10
#
# Define the module and object file sets.
#
MODULE = s10_brand
OFFSETS_H = $(OBJS_DIR)/s10_offsets.h
OFFSETS_SRC = $(S10_BASE)/s10_offsets.in
OBJECTS = $(S10_BRAND_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(S10_BRAND_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_PSM_BRAND_DIR)/$(MODULE)
#
# Include common rules.
#
include $(UTSBASE)/sun4u/Makefile.sun4u
#
# Define targets
#
ALL_TARGET = $(OFFSETS_H) $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(OFFSETS_H) $(BINARY) $(ROOTMODULE)
#
# Update compiler variables.
#
INC_PATH += -I$(S10_BASE) -I$(OBJS_DIR)
LDFLAGS += -dy -Nexec/elfexec
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Create genassym.h
#
$(OFFSETS_H): $(OFFSETS_SRC)
$(OFFSETS_CREATE) <$(OFFSETS_SRC) >$@
#
# Include common targets.
#
include $(UTSBASE)/sun4u/Makefile.targ