Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
72N/A#
72N/A# CDDL HEADER START
72N/A#
72N/A# The contents of this file are subject to the terms of the
72N/A# Common Development and Distribution License (the "License").
72N/A# You may not use this file except in compliance with the License.
72N/A#
72N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
72N/A# or http://www.opensolaris.org/os/licensing.
72N/A# See the License for the specific language governing permissions
72N/A# and limitations under the License.
72N/A#
72N/A# When distributing Covered Code, include this CDDL HEADER in each
72N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
72N/A# If applicable, add the following below this CDDL HEADER, with the
72N/A# fields enclosed by brackets "[]" replaced with your own identifying
72N/A# information: Portions Copyright [yyyy] [name of copyright owner]
72N/A#
72N/A# CDDL HEADER END
72N/A#
3996N/A
72N/A#
72N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
72N/A# Use is subject to license terms.
72N/A#
2540N/A
618N/A#
72N/A# This makefile drives the production of the Starcat specific
72N/A# UltraSPARC-III+ driver module.
844N/A#
2540N/A
72N/A#
1273N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
72N/A#
3661N/AUTSBASE = ../../..
3661N/A
3996N/A#
3996N/A# Define the module and object file sets.
3996N/A#
72N/AMODULE = SUNW,UltraSPARC-III+
72N/AOBJECTS = $(CHEETAHPLUS_OBJS:%=$(OBJS_DIR)/%)
72N/ALINTS = $(CHEETAHPLUS_OBJS:%.o=$(LINTS_DIR)/%.ln)
72N/AROOTMODULE = $(ROOT_STARCAT_CPU_DIR)/$(MODULE)
2540N/ASOFTLINKS = SUNW,UltraSPARC-IV SUNW,UltraSPARC-IV+
2540N/AROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_STARCAT_CPU_DIR)/%)
2540N/A
574N/ACPU_DIR = .
574N/AHERE = ../cheetahplus
574N/A
72N/A#
72N/A# Include common rules.
72N/A#
72N/Ainclude $(UTSBASE)/sun4u/starcat/Makefile.starcat
75N/A
72N/A#
2540N/A# Override defaults
2540N/A#
2540N/ACLEANFILES += $(CPULIB) $(SYM_MOD)
72N/A
2540N/A#
72N/A# Define targets
2540N/A#
83N/AALL_TARGET = $(SYM_MOD)
72N/ALINT_TARGET = $(MODULE).lint
3996N/AINSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS)
3996N/A
3996N/A#
4176N/A# Overrides
3996N/A#
3996N/AALL_BUILDS = $(ALL_BUILDSONLY64)
DEF_BUILDS = $(DEF_BUILDSONLY64)
CLEANLINTFILES += $(LINT32_FILES)
#
# lint pass one enforcement
#
CFLAGS += $(CCVERBOSE) -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
-DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
ASFLAGS += -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
-DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
#
# cpu-module-specific flags
#
CPPFLAGS += -DCPU_MODULE -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
-DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
AS_CPPFLAGS += -DCPU_MODULE -DCHEETAH -DCHEETAH_PLUS -DCPU_IMP_L1_CACHE_PARITY \
-DCPU_IMP_ECACHE_ASSOC -DCPU_IMP_DUAL_PAGESIZE -DCPU_IMP_AFSR_EXT
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS) lint32
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) $@
# Include common targets.
#
include $(UTSBASE)/sun4u/starcat/Makefile.targ