Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
75960f20f88dad6bc67892c711c429946063d133stoddard# 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
75960f20f88dad6bc67892c711c429946063d133stoddard# and limitations under the License.
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddard# When distributing Covered Code, include this CDDL HEADER in each
75960f20f88dad6bc67892c711c429946063d133stoddard# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4065b438067f3f08d0bd98b31ac4085b581b931dstoddard# If applicable, add the following below this CDDL HEADER, with the
4065b438067f3f08d0bd98b31ac4085b581b931dstoddard# fields enclosed by brackets "[]" replaced with your own identifying
2739add8add66e21526ce27f83c2ae133d089070rbb# information: Portions Copyright [yyyy] [name of copyright owner]
2739add8add66e21526ce27f83c2ae133d089070rbb#
4065b438067f3f08d0bd98b31ac4085b581b931dstoddard# CDDL HEADER END
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj#
211bf1d44f4653bf753a15740cd5ebbf330b6e93manoj
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard#
7ba24263a36323ecaf0685758f44001c0800d012stoddard# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard# Use is subject to license terms.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj
369edcdd0a9c5516c61e736ec2a6fc8fb0d92fe2manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# This makefile drives the production of the rmclomv driver kernel
75960f20f88dad6bc67892c711c429946063d133stoddard# module in the sun4u systems
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddard
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddard# Path to the base of the uts directory tree (usually /usr/src/uts).
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddardUTSBASE = ../..
75960f20f88dad6bc67892c711c429946063d133stoddard
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddard# Define the module and object file sets.
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddardMODULE = rmclomv
2a6c49cfaef5979a5a06098f3ce987cd76769409manojOBJECTS = $(RMCLOMV_OBJS:%=$(OBJS_DIR)/%)
2a6c49cfaef5979a5a06098f3ce987cd76769409manojLINTS = $(RMCLOMV_OBJS:%.o=$(LINTS_DIR)/%.ln)
2a6c49cfaef5979a5a06098f3ce987cd76769409manojROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
2a6c49cfaef5979a5a06098f3ce987cd76769409manojCONF_SRCDIR = $(UTSBASE)/sun4u/io
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Include common rules.
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
2a6c49cfaef5979a5a06098f3ce987cd76769409manojinclude $(UTSBASE)/sun4u/Makefile.sun4u
56ca30c968906053ae61acb218420667bb58d996rbb
56ca30c968906053ae61acb218420667bb58d996rbb#
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj# Define targets
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manoj#
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manojALL_TARGET = $(BINARY) $(SRC_CONFILE)
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manojLINT_TARGET = $(MODULE).lint
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manojINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj#
75960f20f88dad6bc67892c711c429946063d133stoddard# lint pass one enforcement
75960f20f88dad6bc67892c711c429946063d133stoddard#
75960f20f88dad6bc67892c711c429946063d133stoddardCFLAGS += $(CCVERBOSE)
75960f20f88dad6bc67892c711c429946063d133stoddardLDFLAGS += -dy -Ndrv/rmc_comm -Ndrv/pmugpio
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# Turn on doubleword alignment for 64 bit registers
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardCFLAGS += -dalign
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard#
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# For now, disable these lint checks; maintainers should endeavor
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# to investigate and remove these for maximum lint coverage.
56ca30c968906053ae61acb218420667bb58d996rbb# Please do not carry these forward to new Makefiles.
56ca30c968906053ae61acb218420667bb58d996rbb#
56ca30c968906053ae61acb218420667bb58d996rbbLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
56ca30c968906053ae61acb218420667bb58d996rbbLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
56ca30c968906053ae61acb218420667bb58d996rbb
56ca30c968906053ae61acb218420667bb58d996rbbCERRWARN += -_gcc=-Wno-parentheses
56ca30c968906053ae61acb218420667bb58d996rbb
56ca30c968906053ae61acb218420667bb58d996rbb#
0bff2f28ef945280c17099c142126178a78e1e54manoj# Default build targets.
0bff2f28ef945280c17099c142126178a78e1e54manoj#
0bff2f28ef945280c17099c142126178a78e1e54manoj.KEEP_STATE:
0bff2f28ef945280c17099c142126178a78e1e54manoj
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddarddef: $(DEF_DEPS)
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddard
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardall: $(ALL_DEPS)
0bff2f28ef945280c17099c142126178a78e1e54manoj
0bff2f28ef945280c17099c142126178a78e1e54manojclean: $(CLEAN_DEPS)
0bff2f28ef945280c17099c142126178a78e1e54manoj
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardclobber: $(CLOBBER_DEPS)
75960f20f88dad6bc67892c711c429946063d133stoddard
0bff2f28ef945280c17099c142126178a78e1e54manojlint: $(LINT_DEPS)
0bff2f28ef945280c17099c142126178a78e1e54manoj
9c09943bad734ebd5c7cc10bd6d63b75c4c6e056stoddardmodlintlib: $(MODLINTLIB_DEPS)
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj
f03d292915be9977eaf74e9be7b0404aec226f84manojclean.lint: $(CLEAN_LINT_DEPS)
f03d292915be9977eaf74e9be7b0404aec226f84manoj
f03d292915be9977eaf74e9be7b0404aec226f84manojinstall: $(INSTALL_DEPS)
3304cbd819df02e7548e9338dc0afa8d3ba29358manoj
f03d292915be9977eaf74e9be7b0404aec226f84manoj#
f03d292915be9977eaf74e9be7b0404aec226f84manoj# Include common targets.
f03d292915be9977eaf74e9be7b0404aec226f84manoj#
f03d292915be9977eaf74e9be7b0404aec226f84manojinclude $(UTSBASE)/sun4u/Makefile.targ
aa1faea36e4ae357bc603a2337b6adc54f5daec1manoj