Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# CDDL HEADER START
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# The contents of this file are subject to the terms of the
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# Common Development and Distribution License (the "License").
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# You may not use this file except in compliance with the License.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# or http://www.opensolaris.org/os/licensing.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# See the License for the specific language governing permissions
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# and limitations under the License.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews# CDDL HEADER END
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# uts/sparc/ptsl/Makefile
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Use is subject to license terms.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# This makefile drives the production of the ptsl driver
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# sparc architecture dependent
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Path to the base of the uts directory tree (usually /usr/src/uts).
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonUTSBASE = ../..
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Define the module and object file sets.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonMODULE = ptsl
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonOBJECTS = $(PTSL_OBJS:%=$(OBJS_DIR)/%)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLINTS = $(PTSL_OBJS:%.o=$(LINTS_DIR)/%.ln)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCONF_SRCDIR = $(UTSBASE)/common/io
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews# Include common rules.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninclude $(UTSBASE)/sparc/Makefile.sparc
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Define targets
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonALL_TARGET = $(BINARY) $(SRC_CONFILE)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLINT_TARGET = $(MODULE).lint
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# lint pass one enforcement
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCFLAGS += $(CCVERBOSE)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Define dependency on ptc
93d6dfaf66258337985427c86181f01fc51f0bb4Mark Andrews#
93d6dfaf66258337985427c86181f01fc51f0bb4Mark AndrewsLDFLAGS += -dy -N drv/ptc
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonCERRWARN += -_gcc=-Wno-parentheses
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# For now, disable these lint checks; maintainers should endeavor
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# to investigate and remove these for maximum lint coverage.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Please do not carry these forward to new Makefiles.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
0b062f4990db5cc6db2fe3398926f71b92a67407Brian WellingtonLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Default build targets.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington#
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington.KEEP_STATE:
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtondef: $(DEF_DEPS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonall: $(ALL_DEPS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonclean: $(CLEAN_DEPS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonclobber: $(CLOBBER_DEPS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonlint: $(LINT_DEPS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonmodlintlib: $(MODLINTLIB_DEPS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtonclean.lint: $(CLEAN_LINT_DEPS)
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellingtoninstall: $(INSTALL_DEPS)
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews#
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews# Include common targets.
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews#
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrewsinclude $(UTSBASE)/sparc/Makefile.targ
b0c15bd9792112fb47f6d956e580e4369e92f4e7Mark Andrews