Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# CDDL HEADER START
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna#
bf52162f2d05c1fb1a107c7ef108de73f739b3edpquerna# The contents of this file are subject to the terms of the
1018201f5223624476334c6e23aead02db7c4040minfrin# Common Development and Distribution License (the "License").
1018201f5223624476334c6e23aead02db7c4040minfrin# You may not use this file except in compliance with the License.
e5db2522dbe503cbf5399094b6239c88c246a8c5poirier#
e5db2522dbe503cbf5399094b6239c88c246a8c5poirier# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e5db2522dbe503cbf5399094b6239c88c246a8c5poirier# or http://www.opensolaris.org/os/licensing.
e5db2522dbe503cbf5399094b6239c88c246a8c5poirier# See the License for the specific language governing permissions
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin# and limitations under the License.
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin#
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin# When distributing Covered Code, include this CDDL HEADER in each
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin# If applicable, add the following below this CDDL HEADER, with the
ad7e5e9fb8f63a5155bb392114162997505ff772minfrin# fields enclosed by brackets "[]" replaced with your own identifying
59cb8d601b8c44476e59310f68b9c373d8fc62a6minfrin# information: Portions Copyright [yyyy] [name of copyright owner]
59cb8d601b8c44476e59310f68b9c373d8fc62a6minfrin#
59cb8d601b8c44476e59310f68b9c373d8fc62a6minfrin# CDDL HEADER END
59cb8d601b8c44476e59310f68b9c373d8fc62a6minfrin#
ec8b1faa56744b338f6d6421144b56c2bb3faae6poirier
ec8b1faa56744b338f6d6421144b56c2bb3faae6poirier#
10abdcbd7b30d957d15c61ea8100ba97a627ac95minfrin# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
10abdcbd7b30d957d15c61ea8100ba97a627ac95minfrin# Use is subject to license terms.
87e0bf269cc3386ee8e6ab561ff00770151f4f53niq#
87e0bf269cc3386ee8e6ab561ff00770151f4f53niq
87e0bf269cc3386ee8e6ab561ff00770151f4f53niq#
3c67b7956d44501360506a9f13a5011be73b30ecminfrin# This makefile drives the production of the rmclomv driver kernel
3c67b7956d44501360506a9f13a5011be73b30ecminfrin# module in the sun4u systems
3c67b7956d44501360506a9f13a5011be73b30ecminfrin#
3c67b7956d44501360506a9f13a5011be73b30ecminfrin
97d20d37d21b8d427a920e211858172f0a82427epoirier#
97d20d37d21b8d427a920e211858172f0a82427epoirier# Path to the base of the uts directory tree (usually /usr/src/uts).
97d20d37d21b8d427a920e211858172f0a82427epoirier#
8e04e8ec7d682bff5e6dccdd70c082971a88cb8bniqUTSBASE = ../..
8e04e8ec7d682bff5e6dccdd70c082971a88cb8bniq
8e04e8ec7d682bff5e6dccdd70c082971a88cb8bniq#
53c999a82fcca729dabc8a512b3fb996d61fd814niq# Define the module and object file sets.
53c999a82fcca729dabc8a512b3fb996d61fd814niq#
53c999a82fcca729dabc8a512b3fb996d61fd814niqMODULE = rmclomv
53c999a82fcca729dabc8a512b3fb996d61fd814niqOBJECTS = $(RMCLOMV_OBJS:%=$(OBJS_DIR)/%)
25d0f8adcab13255494a3572edff1a25f6fbeea3rpluemLINTS = $(RMCLOMV_OBJS:%.o=$(LINTS_DIR)/%.ln)
25d0f8adcab13255494a3572edff1a25f6fbeea3rpluemROOTMODULE = $(ROOT_PSM_DRV_DIR)/$(MODULE)
25d0f8adcab13255494a3572edff1a25f6fbeea3rpluemCONF_SRCDIR = $(UTSBASE)/sun4u/io
25d0f8adcab13255494a3572edff1a25f6fbeea3rpluem
dd9ae259e1578c4388739c880ede97c55cec543frpluem#
dd9ae259e1578c4388739c880ede97c55cec543frpluem# Include common rules.
dd9ae259e1578c4388739c880ede97c55cec543frpluem#
0938450cadc9a083d112a86bc7dd7ae34f791364trawickinclude $(UTSBASE)/sun4u/Makefile.sun4u
0938450cadc9a083d112a86bc7dd7ae34f791364trawick
0938450cadc9a083d112a86bc7dd7ae34f791364trawick#
8bed7ee6d97933b958e97e222f37154d83e384e5jorton# Define targets
8bed7ee6d97933b958e97e222f37154d83e384e5jorton#
8bed7ee6d97933b958e97e222f37154d83e384e5jortonALL_TARGET = $(BINARY) $(SRC_CONFILE)
8bed7ee6d97933b958e97e222f37154d83e384e5jortonLINT_TARGET = $(MODULE).lint
8bed7ee6d97933b958e97e222f37154d83e384e5jortonINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
d33ddda47790d3295f4218f87e3a296cf51a9becmjc
c7d46b58052fe666c74a47bd26b6cb1e351492adrpluem#
4e08c8c1a91e2887b41d8cacd3aa532355d0237drpluem# lint pass one enforcement
7a25b029b69f169bd22718165dff3b271114f92eniq#
43d051c8401a1f3b4f7853cd897d3565ab814ea7poirierCFLAGS += $(CCVERBOSE)
43d051c8401a1f3b4f7853cd897d3565ab814ea7poirierLDFLAGS += -dy -Ndrv/rmc_comm -Ndrv/pmugpio
43d051c8401a1f3b4f7853cd897d3565ab814ea7poirier
2f34374f6e04b9094a1d13a5ed823f331ba841a3rpluem#
2f34374f6e04b9094a1d13a5ed823f331ba841a3rpluem# Turn on doubleword alignment for 64 bit registers
2f34374f6e04b9094a1d13a5ed823f331ba841a3rpluem#
7a25b029b69f169bd22718165dff3b271114f92eniqCFLAGS += -dalign
7a25b029b69f169bd22718165dff3b271114f92eniq
7a25b029b69f169bd22718165dff3b271114f92eniq#
2f34374f6e04b9094a1d13a5ed823f331ba841a3rpluem# For now, disable these lint checks; maintainers should endeavor
3e6a46d2fecf446daf0e280a49fa5565f5f635eajorton# to investigate and remove these for maximum lint coverage.
3e6a46d2fecf446daf0e280a49fa5565f5f635eajorton# Please do not carry these forward to new Makefiles.
3e6a46d2fecf446daf0e280a49fa5565f5f635eajorton#
137e484e5f984ceff1102e1212dda8ac0413231aniqLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
0df8f79d2324b131c36955d7e474a735a762f9eeniqLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
0df8f79d2324b131c36955d7e474a735a762f9eeniq
0df8f79d2324b131c36955d7e474a735a762f9eeniqCERRWARN += -_gcc=-Wno-parentheses
30e3e760b737f13ce800fa02c5930ade7659ba66niq
30e3e760b737f13ce800fa02c5930ade7659ba66niq#
30e3e760b737f13ce800fa02c5930ade7659ba66niq# Default build targets.
e991c6fc032c59eb6cb751d9d382e933a53a2866niq#
e991c6fc032c59eb6cb751d9d382e933a53a2866niq.KEEP_STATE:
e991c6fc032c59eb6cb751d9d382e933a53a2866niq
e991c6fc032c59eb6cb751d9d382e933a53a2866niqdef: $(DEF_DEPS)
9a00e2d46c44c111d6952e553a2f1a61b7594eb3rpluem
9a00e2d46c44c111d6952e553a2f1a61b7594eb3rpluemall: $(ALL_DEPS)
9a00e2d46c44c111d6952e553a2f1a61b7594eb3rpluem
33d9be77cc6f5fc8734e9c1f526b82d359955152rpluemclean: $(CLEAN_DEPS)
9a00e2d46c44c111d6952e553a2f1a61b7594eb3rpluem
33d9be77cc6f5fc8734e9c1f526b82d359955152rpluemclobber: $(CLOBBER_DEPS)
da128c59ec571c4dff70f41ecba9c8a9974c6cd6niq
172e83c0f024fe6396dd1f3ca3492fd83c304db5jimlint: $(LINT_DEPS)
da128c59ec571c4dff70f41ecba9c8a9974c6cd6niq
45932a847f237b4d8f0667b138bd3f8a15fb53ffniqmodlintlib: $(MODLINTLIB_DEPS)
45932a847f237b4d8f0667b138bd3f8a15fb53ffniq
45932a847f237b4d8f0667b138bd3f8a15fb53ffniqclean.lint: $(CLEAN_LINT_DEPS)
186e9d990f453d16826ab87a87df7b87e6e05921rpluem
186e9d990f453d16826ab87a87df7b87e6e05921rplueminstall: $(INSTALL_DEPS)
186e9d990f453d16826ab87a87df7b87e6e05921rpluem
186e9d990f453d16826ab87a87df7b87e6e05921rpluem#
6861702c2d883e5c0744d5f7528d2060671ad24dtakashi# Include common targets.
6861702c2d883e5c0744d5f7528d2060671ad24dtakashi#
6861702c2d883e5c0744d5f7528d2060671ad24dtakashiinclude $(UTSBASE)/sun4u/Makefile.targ
6861702c2d883e5c0744d5f7528d2060671ad24dtakashi