Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# CDDL HEADER START
0c476bd3bc299d4daa45a6b849ab10e762132743William King#
0c476bd3bc299d4daa45a6b849ab10e762132743William King# The contents of this file are subject to the terms of the
0c476bd3bc299d4daa45a6b849ab10e762132743William King# Common Development and Distribution License (the "License").
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# You may not use this file except in compliance with the License.
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15a44745412679c30a6d022733925af70a38b715David Lawrence# or http://www.opensolaris.org/os/licensing.
15a44745412679c30a6d022733925af70a38b715David Lawrence# See the License for the specific language governing permissions
15a44745412679c30a6d022733925af70a38b715David Lawrence# and limitations under the License.
15a44745412679c30a6d022733925af70a38b715David Lawrence#
15a44745412679c30a6d022733925af70a38b715David Lawrence# When distributing Covered Code, include this CDDL HEADER in each
15a44745412679c30a6d022733925af70a38b715David Lawrence# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15a44745412679c30a6d022733925af70a38b715David Lawrence# If applicable, add the following below this CDDL HEADER, with the
74cb99072c4b0ebd2ccafcfa284288fa760f7a1aMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# information: Portions Copyright [yyyy] [name of copyright owner]
0c476bd3bc299d4daa45a6b849ab10e762132743William King#
0c476bd3bc299d4daa45a6b849ab10e762132743William King# CDDL HEADER END
0c476bd3bc299d4daa45a6b849ab10e762132743William King#
0c476bd3bc299d4daa45a6b849ab10e762132743William King
c2bc56dc65b4b103a5600565680eb5f33fa4c90bMark Andrews#
51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2Bob Halley# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
da49cb62e02793a1b31ec877dcbfddc8911dbcb8David Lawrence# Use is subject to license terms.
0c476bd3bc299d4daa45a6b849ab10e762132743William King#
0c476bd3bc299d4daa45a6b849ab10e762132743William King
0c476bd3bc299d4daa45a6b849ab10e762132743William King#
0c476bd3bc299d4daa45a6b849ab10e762132743William King# This makefile drives the production of the sun4u UltraSPARC driver
08a768e82ad64ede97f640c88e02984b59122753Michael Graff# module.
69f5e6b73b0f53cd6027894f0a92b149cbf36e88William King#
08a768e82ad64ede97f640c88e02984b59122753Michael Graff# sun4u implementation architecture dependent
08a768e82ad64ede97f640c88e02984b59122753Michael Graff#
da49cb62e02793a1b31ec877dcbfddc8911dbcb8David Lawrence
08a768e82ad64ede97f640c88e02984b59122753Michael Graff#
da49cb62e02793a1b31ec877dcbfddc8911dbcb8David Lawrence# Path to the base of the uts directory tree (usually /usr/src/uts).
0c476bd3bc299d4daa45a6b849ab10e762132743William King#
69f5e6b73b0f53cd6027894f0a92b149cbf36e88William KingUTSBASE = ../..
69f5e6b73b0f53cd6027894f0a92b149cbf36e88William King
f4cbe536b11da614fe05aeaeff41e324854cda7bMark Andrews#
0c476bd3bc299d4daa45a6b849ab10e762132743William King# Define the module and object file sets.
8a0ba20b16177d40bd557b491f56003c7d38a4a2David Lawrence#
8a0ba20b16177d40bd557b491f56003c7d38a4a2David LawrenceMODULE = SUNW,UltraSPARC-II
0c476bd3bc299d4daa45a6b849ab10e762132743William KingOBJECTS = $(SPITFIRE_OBJS:%=$(OBJS_DIR)/%)
0c476bd3bc299d4daa45a6b849ab10e762132743William KingLINTS = $(SPITFIRE_OBJS:%.o=$(LINTS_DIR)/%.ln)
f4cbe536b11da614fe05aeaeff41e324854cda7bMark AndrewsROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE)
74cb99072c4b0ebd2ccafcfa284288fa760f7a1aMark AndrewsSOFTLINKS = SUNW,UltraSPARC-IIi
0c476bd3bc299d4daa45a6b849ab10e762132743William KingROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_PSM_CPU_DIR)/%)
f4cbe536b11da614fe05aeaeff41e324854cda7bMark Andrews
f4cbe536b11da614fe05aeaeff41e324854cda7bMark AndrewsCPU_DIR = .
0c476bd3bc299d4daa45a6b849ab10e762132743William KingHERE = ../spitfire
0c476bd3bc299d4daa45a6b849ab10e762132743William King
f4cbe536b11da614fe05aeaeff41e324854cda7bMark Andrews#
0c476bd3bc299d4daa45a6b849ab10e762132743William King# Include common rules.
0c476bd3bc299d4daa45a6b849ab10e762132743William King#
0c476bd3bc299d4daa45a6b849ab10e762132743William Kinginclude $(UTSBASE)/sun4u/Makefile.sun4u
#
# 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 -DSPITFIRE
AS_CPPFLAGS += -DCPU_MODULE -DSPITFIRE
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
LINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
LINTTAGS += -erroff=E_BAD_FORMAT_STR2
CERRWARN += -_gcc=-Wno-uninitialized
#
# 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) $@
# Include common targets.
#
include $(UTSBASE)/sun4u/Makefile.targ