Makefile revision d583b39bfb4e2571d3e41097c5c357ffe353ad45
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# CDDL HEADER START
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox User# The contents of this file are subject to the terms of the
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# Common Development and Distribution License (the "License").
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# You may not use this file except in compliance with the License.
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# or http://www.opensolaris.org/os/licensing.
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# See the License for the specific language governing permissions
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# and limitations under the License.
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# When distributing Covered Code, include this CDDL HEADER in each
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# If applicable, add the following below this CDDL HEADER, with the
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# fields enclosed by brackets "[]" replaced with your own identifying
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# information: Portions Copyright [yyyy] [name of copyright owner]
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# CDDL HEADER END
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# Use is subject to license terms.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# This makefile drives the production of the ds kernel module.
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# sun4v implementation architecture dependent
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# Path to the base of the uts directory tree (usually /usr/src/uts).
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis DupontUTSBASE = ../..
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# Define the module and object file sets.
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis DupontMODULE = ds
7768b049c0b39662baca604ec32b32c6480f8dc6Francis DupontOBJECTS = $(DS_OBJS:%=$(OBJS_DIR)/%)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis DupontLINTS = $(DS_OBJS:%.o=$(LINTS_DIR)/%.ln)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis DupontROOTMODULE = $(ROOT_PSM_MISC_DIR)/$(MODULE)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# Include common rules.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinclude $(UTSBASE)/sun4v/Makefile.sun4v
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Define targets
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntALL_TARGET = $(BINARY)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntLINT_TARGET = $(MODULE).lint
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# lint pass one enforcement
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis DupontCFLAGS += $(CCVERBOSE)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# Turn on doubleword alignment for 64 bit registers
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis DupontCFLAGS += -dalign
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# Module Dependencies
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis DupontLDFLAGS += -dy -Nmisc/ldc
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# For now, disable these lint checks; maintainers should endeavor
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# to investigate and remove these for maximum lint coverage.
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# Please do not carry these forward to new Makefiles.
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis DupontLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark AndrewsCERRWARN += -_gcc=-Wno-uninitialized
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# Default build targets.
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont.KEEP_STATE:
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupontdef: $(DEF_DEPS)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupontall: $(ALL_DEPS)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupontclean: $(CLEAN_DEPS)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupontclobber: $(CLOBBER_DEPS)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupontlint: $(LINT_DEPS)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupontmodlintlib: $(MODLINTLIB_DEPS)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntclean.lint: $(CLEAN_LINT_DEPS)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupontinstall: $(INSTALL_DEPS)
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont# Include common targets.
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont#
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupontinclude $(UTSBASE)/$(PLATFORM)/Makefile.targ
7768b049c0b39662baca604ec32b32c6480f8dc6Francis Dupont