Makefile revision 24fe0b3bf671e123467ce1df0b67cadd3614c8e4
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
1265N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/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 2009 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
98N/A#
98N/A
98N/A#
98N/A# This makefile drives the production of the sun4u UltraSPARC-IIe
98N/A# driver module.
98N/A#
1265N/A# sun4u implementation architecture dependent
493N/A#
98N/A
911N/A#
1265N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
1265N/A#
1265N/AUTSBASE = ../..
911N/A
98N/A#
235N/A# Define the module and object file sets.
493N/A#
98N/AMODULE = SUNW,UltraSPARC-IIe
916N/AOBJECTS = $(HUMMINGBIRD_OBJS:%=$(OBJS_DIR)/%)
916N/ALINTS = $(HUMMINGBIRD_OBJS:%.o=$(LINTS_DIR)/%.ln)
916N/AROOTMODULE = $(ROOT_PSM_CPU_DIR)/$(MODULE)
916N/AROOTSOFTLINKS = $(SOFTLINKS:%=$(ROOT_PSM_CPU_DIR)/%)
970N/A
970N/ACPU_DIR = .
970N/AHERE = ../hummingbird
970N/A
970N/A#
970N/A# Include common rules.
970N/A#
970N/Ainclude $(UTSBASE)/sun4u/Makefile.sun4u
970N/A
970N/A#
970N/A# Override defaults
970N/A#
970N/ACLEANFILES += $(CPULIB) $(SYM_MOD)
970N/A
970N/A#
970N/A# Define targets
970N/A#
970N/AALL_TARGET = $(SYM_MOD)
970N/ALINT_TARGET = $(MODULE).lint
970N/AINSTALL_TARGET = def $(BINARY) $(ROOTMODULE) $(ROOTSOFTLINKS)
970N/A
970N/A#
970N/A# lint pass one enforcement
970N/A#
970N/ACFLAGS += $(CCVERBOSE)
1029N/A
1029N/A#
1124N/A# cpu-module-specific flags
1124N/A#
1124N/ACPPFLAGS += -DCPU_MODULE -DHUMMINGBIRD
1124N/AAS_CPPFLAGS += -DCPU_MODULE -DHUMMINGBIRD
1124N/A
1124N/A#
970N/A# Default build targets.
98N/A#
98N/A.KEEP_STATE:
1265N/A
1124N/Adef: $(DEF_DEPS)
1124N/A
1124N/Aall: $(ALL_DEPS)
1265N/A
1265N/Aclean: $(CLEAN_DEPS)
1265N/A
1124N/Aclobber: $(CLOBBER_DEPS)
98N/A
493N/Alint: $(LINT_DEPS)
98N/A
970N/Amodlintlib: $(MODLINTLIB_DEPS)
970N/A
970N/Aclean.lint: $(CLEAN_LINT_DEPS)
1026N/A
970N/Ainstall: $(INSTALL_DEPS)
970N/A
1026N/A$(CPULIB): $(BINARY)
1124N/A $(BUILD.SO) $(BINARY)
1003N/A
98N/A$(SYM_MOD): $(UNIX_O) $(CPULIB)
98N/A @echo "resolving symbols against unix.o"
98N/A @(cd $(UNIX_DIR); pwd; \
908N/A CPU_DIR=$(HERE) SYM_MOD=$(HERE)/$(SYM_MOD) $(MAKE) symcheck)
591N/A
493N/A$(ROOTSOFTLINKS): $(ROOTMODULE)
493N/A $(RM) $@; $(SYMLINK) $(MODULE) $@
1201N/A
1201N/A# Include common targets.
1201N/A#
1201N/Ainclude $(UTSBASE)/sun4u/Makefile.targ
1265N/A
1265N/A#
1201N/A# For now, disable these lint checks; maintainers should endeavor
1201N/A# to investigate and remove these for maximum lint coverage.
1201N/A# Please do not carry these forward to new Makefiles.
1201N/A#
493N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
493N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
493N/ALINTTAGS += -erroff=E_BAD_FORMAT_STR2
493N/A