Makefile revision 89b43686db1fe9681d80a7cf5662730cb9378cae
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# CDDL HEADER START
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# The contents of this file are subject to the terms of the
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Common Development and Distribution License (the "License").
3304cbd819df02e7548e9338dc0afa8d3ba29358manoj# You may not use this file except in compliance with the License.
0bff2f28ef945280c17099c142126178a78e1e54manoj#
3304cbd819df02e7548e9338dc0afa8d3ba29358manoj# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# or http://www.opensolaris.org/os/licensing.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# See the License for the specific language governing permissions
4065b438067f3f08d0bd98b31ac4085b581b931dstoddard# and limitations under the License.
4065b438067f3f08d0bd98b31ac4085b581b931dstoddard#
2739add8add66e21526ce27f83c2ae133d089070rbb# When distributing Covered Code, include this CDDL HEADER in each
2739add8add66e21526ce27f83c2ae133d089070rbb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4065b438067f3f08d0bd98b31ac4085b581b931dstoddard# If applicable, add the following below this CDDL HEADER, with the
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj# fields enclosed by brackets "[]" replaced with your own identifying
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj# information: Portions Copyright [yyyy] [name of copyright owner]
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard#
7ba24263a36323ecaf0685758f44001c0800d012stoddard# CDDL HEADER END
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj# uts/sparc/ptsl/Makefile
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Use is subject to license terms.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Copyright (c) 2011 Bayard G. Bell. All rights reserved.
7ba24263a36323ecaf0685758f44001c0800d012stoddard#
7ba24263a36323ecaf0685758f44001c0800d012stoddard# This makefile drives the production of the ptsl driver
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# sparc architecture dependent
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# Path to the base of the uts directory tree (usually /usr/src/uts).
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojUTSBASE = ../..
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Define the module and object file sets.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojMODULE = ptsl
2a6c49cfaef5979a5a06098f3ce987cd76769409manojOBJECTS = $(PTSL_OBJS:%=$(OBJS_DIR)/%)
2a6c49cfaef5979a5a06098f3ce987cd76769409manojLINTS = $(PTSL_OBJS:%.o=$(LINTS_DIR)/%.ln)
56ca30c968906053ae61acb218420667bb58d996rbbROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
56ca30c968906053ae61acb218420667bb58d996rbbCONF_SRCDIR = $(UTSBASE)/common/io
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj#
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj# Include common rules.
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj#
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manojinclude $(UTSBASE)/sparc/Makefile.sparc
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# Define targets
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardALL_TARGET = $(BINARY) $(SRC_CONFILE)
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardLINT_TARGET = $(MODULE).lint
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# lint pass one enforcement
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
56ca30c968906053ae61acb218420667bb58d996rbbCFLAGS += $(CCVERBOSE)
56ca30c968906053ae61acb218420667bb58d996rbb
56ca30c968906053ae61acb218420667bb58d996rbb#
56ca30c968906053ae61acb218420667bb58d996rbb# Define dependency on ptc
56ca30c968906053ae61acb218420667bb58d996rbb#
56ca30c968906053ae61acb218420667bb58d996rbbLDFLAGS += -dy -N drv/ptc
56ca30c968906053ae61acb218420667bb58d996rbb
56ca30c968906053ae61acb218420667bb58d996rbb#
0bff2f28ef945280c17099c142126178a78e1e54manoj# For now, disable these lint checks; maintainers should endeavor
0bff2f28ef945280c17099c142126178a78e1e54manoj# to investigate and remove these for maximum lint coverage.
0bff2f28ef945280c17099c142126178a78e1e54manoj# Please do not carry these forward to new Makefiles.
0bff2f28ef945280c17099c142126178a78e1e54manoj#
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
0bff2f28ef945280c17099c142126178a78e1e54manoj#
0bff2f28ef945280c17099c142126178a78e1e54manoj# Default build targets.
0bff2f28ef945280c17099c142126178a78e1e54manoj#
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard.KEEP_STATE:
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddarddef: $(DEF_DEPS)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardall: $(ALL_DEPS)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
0bff2f28ef945280c17099c142126178a78e1e54manojclean: $(CLEAN_DEPS)
0bff2f28ef945280c17099c142126178a78e1e54manoj
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardclobber: $(CLOBBER_DEPS)
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj
f03d292915be9977eaf74e9be7b0404aec226f84manojlint: $(LINT_DEPS)
f03d292915be9977eaf74e9be7b0404aec226f84manoj
f03d292915be9977eaf74e9be7b0404aec226f84manojmodlintlib: $(MODLINTLIB_DEPS)
3304cbd819df02e7548e9338dc0afa8d3ba29358manoj
f03d292915be9977eaf74e9be7b0404aec226f84manojclean.lint: $(CLEAN_LINT_DEPS)
f03d292915be9977eaf74e9be7b0404aec226f84manoj
f03d292915be9977eaf74e9be7b0404aec226f84manojinstall: $(INSTALL_DEPS)
f03d292915be9977eaf74e9be7b0404aec226f84manoj
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj#
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj# Include common targets.
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojinclude $(UTSBASE)/sparc/Makefile.targ
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj