Makefile revision 02e56f3f1bfc8d9977bafb8cb5202f576dcded27
369N/A#
369N/A# CDDL HEADER START
369N/A#
369N/A# The contents of this file are subject to the terms of the
369N/A# Common Development and Distribution License (the "License").
369N/A# You may not use this file except in compliance with the License.
369N/A#
369N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
369N/A# or http://www.opensolaris.org/os/licensing.
369N/A# See the License for the specific language governing permissions
369N/A# and limitations under the License.
369N/A#
369N/A# When distributing Covered Code, include this CDDL HEADER in each
369N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
369N/A# If applicable, add the following below this CDDL HEADER, with the
369N/A# fields enclosed by brackets "[]" replaced with your own identifying
369N/A# information: Portions Copyright [yyyy] [name of copyright owner]
369N/A#
369N/A# CDDL HEADER END
369N/A#
369N/A
369N/A#
369N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
369N/A# Use is subject to license terms.
369N/A#
369N/A# ident "%Z%%M% %I% %E% SMI"
369N/A#
369N/A
369N/A#
369N/A# This makefile drives the production of the sun4v ontario default
369N/A# platform module.
369N/A#
369N/A# sun4v implementation architecture dependent
369N/A#
369N/A
369N/A#
369N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
369N/A#
369N/AUTSBASE = ../../..
369N/A
369N/A#
369N/A# Define the module and object file sets.
369N/A#
369N/AMODULE = platmod
369N/AOBJECTS = $(ONTARIO_PLATMOD_OBJS:%=$(OBJS_DIR)/%)
369N/ALINTS = $(ONTARIO_PLATMOD_OBJS:%.o=$(LINTS_DIR)/%.ln)
369N/AROOTMODULE = $(ROOT_ONTARIO_MISC_DIR)/$(MODULE)
369N/A
369N/APLAT_DIR = .
369N/AHERE = ../platmod
369N/A
#
# Include common rules.
#
include $(UTSBASE)/sun4v/ontario/Makefile.ontario
#
# Override defaults
#
CLEANFILES += $(PLATLIB) $(SYM_MOD)
#
# Define targets
#
ALL_TARGET = $(SYM_MOD)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Overrides
#
ALL_BUILDS = $(ALL_BUILDSONLY64)
DEF_BUILDS = $(DEF_BUILDSONLY64)
CLEANLINTFILES += $(LINT32_FILES)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# 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)
check:
LINT_LIB_DIR =$(ONTARIO_LINT_LIB_DIR)
$(PLATLIB): $(BINARY)
$(BUILD.SO) $(BINARY)
$(SYM_MOD): $(UNIX_O) $(PLATLIB)
@echo "resolving symbols against unix.o"
@(cd $(UNIX_DIR); pwd; \
PLAT_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
#
# Include common targets.
#
include $(UTSBASE)/sun4v/ontario/Makefile.targ