Makefile revision c2b6e926ea57d0ba055f91471cfc9772c7fbacd0
425N/A#
425N/A# CDDL HEADER START
1276N/A#
425N/A# The contents of this file are subject to the terms of the
1339N/A# Common Development and Distribution License (the "License").
425N/A# You may not use this file except in compliance with the License.
425N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
425N/A#
425N/A# ident "%Z%%M% %I% %E% SMI"
425N/A#
425N/A
493N/A#
425N/A# This makefile drives the production of the Generic sun4v cpu module.
970N/A#
970N/A# sun4v implementation architecture dependent
970N/A#
970N/A
1339N/A#
1339N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1339N/A#
425N/AUTSBASE = ../..
1276N/A
425N/A#
911N/A# Define the module and object file sets.
1276N/A#
1276N/AMODULE = generic
1276N/AOBJECTS = $(GENERIC_OBJS:%=$(OBJS_DIR)/%)
911N/ALINTS = $(GENERIC_OBJS:%.o=$(LINTS_DIR)/%.ln)
425N/AROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE)
425N/ASOFTLINKS = sun4v
425N/AROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_PSM_CPU_DIR)/%)
425N/A
1276N/ACPU_DIR = .
493N/AHERE = ../generic
425N/A
970N/A#
970N/A# Include common rules.
970N/A#
425N/Ainclude $(UTSBASE)/sun4v/Makefile.sun4v
#
# Override defaults
#
CLEANFILES += $(CPULIB) $(SYM_MOD)
#
# Define targets
#
ALL_TARGET = $(SYM_MOD)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# cpu-module-specific flags
#
CPPFLAGS += -DCPU_MODULE
AS_CPPFLAGS += -DCPU_MODULE
#
# 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)
$(CPULIB): $(BINARY)
$(BUILD.SO) $(BINARY)
$(SYM_MOD): $(UNIX_O) $(CPULIB)
@echo "resolving symbols against unix.o"
@(cd $(UNIX_DIR); pwd; \
CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
$(ROOTSOFTLINKS): $(ROOTMODULE)
$(RM) $@; $(SYMLINK) $(MODULE) $@ $(CHOWNLINK) $(CHGRPLINK)
# Include common targets.
#
include $(UTSBASE)/$(PLATFORM)/Makefile.targ