Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
4d237bbe075b1d2c19428cd954d721d65b31f67cwrowe#
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# CDDL HEADER START
1a5f954324f2584984fc9cee7a7a8ebe8ef39aeajim#
ed0d39878e79220baaa50c15b79b1fdf877cb919niq# The contents of this file are subject to the terms of the
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# Common Development and Distribution License (the "License").
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton# You may not use this file except in compliance with the License.
39c7699ec0799d394d3f67145d4a12ed82f587b8jorton#
0abda771544fc85894befadc7800b726164c58afniq# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c52e490481bd0156dcfd894b7f818572eefc7943niq# or http://www.opensolaris.org/os/licensing.
0abda771544fc85894befadc7800b726164c58afniq# See the License for the specific language governing permissions
3511969853863eeb6e80018afe63831e5bf81447rpluem# and limitations under the License.
3511969853863eeb6e80018afe63831e5bf81447rpluem#
3511969853863eeb6e80018afe63831e5bf81447rpluem# When distributing Covered Code, include this CDDL HEADER in each
ab39e6d69a08324dbdea68e38de843a4a9ce7247niq# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ab39e6d69a08324dbdea68e38de843a4a9ce7247niq# If applicable, add the following below this CDDL HEADER, with the
ab39e6d69a08324dbdea68e38de843a4a9ce7247niq# fields enclosed by brackets "[]" replaced with your own identifying
c6d33447e28403a90ad817dba4df75fae785be28pquerna# information: Portions Copyright [yyyy] [name of copyright owner]
c6d33447e28403a90ad817dba4df75fae785be28pquerna#
439ccf2a084e1da566548931c585cbcc3a9e7f4cminfrin# CDDL HEADER END
439ccf2a084e1da566548931c585cbcc3a9e7f4cminfrin#
439ccf2a084e1da566548931c585cbcc3a9e7f4cminfrin#
439ccf2a084e1da566548931c585cbcc3a9e7f4cminfrin# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
439ccf2a084e1da566548931c585cbcc3a9e7f4cminfrin# Use is subject to license terms.
439ccf2a084e1da566548931c585cbcc3a9e7f4cminfrin#
4ede070ca63bd4c48045e35a7192582769770290jorton#ident "%Z%%M% %I% %E% SMI"
4ede070ca63bd4c48045e35a7192582769770290jorton#
795c9499a77c25695bcb9710ed67bbe51492e181rpluem# This makefile drives the production of the ttymux driver
795c9499a77c25695bcb9710ed67bbe51492e181rpluem# kernel module.
795c9499a77c25695bcb9710ed67bbe51492e181rpluem#
936a4025e45887d9f366bf54360c51937b6bcacejim# sparc implementation architecture dependent
936a4025e45887d9f366bf54360c51937b6bcacejim#
936a4025e45887d9f366bf54360c51937b6bcacejim
936a4025e45887d9f366bf54360c51937b6bcacejim#
936a4025e45887d9f366bf54360c51937b6bcacejim# Path to the base of the uts directory tree (usually /usr/src/uts).
936a4025e45887d9f366bf54360c51937b6bcacejim#
a72ba68ecbbc61e4b513e50d6000245c33f753dcwroweUTSBASE = ../..
a72ba68ecbbc61e4b513e50d6000245c33f753dcwrowe
7a079e0cd696baca90ac43e325f64582e2945c68wrowe#
a72ba68ecbbc61e4b513e50d6000245c33f753dcwrowe# Define the module and object file sets.
62c53a0dab4c85bfc6a5ab9abfb1b269d9f7458dniq#
62c53a0dab4c85bfc6a5ab9abfb1b269d9f7458dniqMODULE = ttymux
62c53a0dab4c85bfc6a5ab9abfb1b269d9f7458dniqOBJECTS = $(TTYMUX_OBJS:%=$(OBJS_DIR)/%)
c6f2d0c33368d0ff719e176c3bef9c2ea5177d43niqLINTS = $(TTYMUX_OBJS:%.o=$(LINTS_DIR)/%.ln)
c6f2d0c33368d0ff719e176c3bef9c2ea5177d43niqROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
c6f2d0c33368d0ff719e176c3bef9c2ea5177d43niq
c6f2d0c33368d0ff719e176c3bef9c2ea5177d43niq#
c6f2d0c33368d0ff719e176c3bef9c2ea5177d43niq# Include common rules.
f09bf2676d29e43c211b663f5c9423815d83395fniq#
f09bf2676d29e43c211b663f5c9423815d83395fniqinclude $(UTSBASE)/sparc/Makefile.sparc
f09bf2676d29e43c211b663f5c9423815d83395fniq
f09bf2676d29e43c211b663f5c9423815d83395fniq#
11a0edf478ca9c59d80bf73491d89cf019259feeniq#Overrides
11a0edf478ca9c59d80bf73491d89cf019259feeniq#
11a0edf478ca9c59d80bf73491d89cf019259feeniqALL_BUILDS = $(ALL_BUILDSONLY64)
06446302a0a3e40cd8807bb25467c8f776cf2fbatrawickDEF_BUILDS = $(DEF_BUILDSONLY64)
06446302a0a3e40cd8807bb25467c8f776cf2fbatrawickCLEANLINTFILES += $(LINT32_FILES)
06446302a0a3e40cd8807bb25467c8f776cf2fbatrawick
06446302a0a3e40cd8807bb25467c8f776cf2fbatrawick#
b65a184929c97d0b0e4d3bad42648e0e9ce1b8ferpluem# Define targets
b65a184929c97d0b0e4d3bad42648e0e9ce1b8ferpluem#
b65a184929c97d0b0e4d3bad42648e0e9ce1b8ferpluemALL_TARGET = $(BINARY)
9c97e6302f7624855e1909b35d448a5a2d5a4378minfrinLINT_TARGET = $(MODULE).lint
9c97e6302f7624855e1909b35d448a5a2d5a4378minfrinINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
9c97e6302f7624855e1909b35d448a5a2d5a4378minfrin
9c97e6302f7624855e1909b35d448a5a2d5a4378minfrin#
9c97e6302f7624855e1909b35d448a5a2d5a4378minfrin# Override defaults to build a unique, local modstubs.o.
ecc1538af1c08282fc2773d2eb3f1a54251862f9minfrin#
ecc1538af1c08282fc2773d2eb3f1a54251862f9minfrinMODSTUBS_DIR = $(OBJS_DIR)
ecc1538af1c08282fc2773d2eb3f1a54251862f9minfrin$(MODSTUBS_O) := AS_CPPFLAGS += -DTTYMUX_MODULE
ecc1538af1c08282fc2773d2eb3f1a54251862f9minfrinCLEANFILES += $(MODSTUBS_O)
3f5585f7f4a7d74f2f94ec729ea8c1879d419e35rederpj
3f5585f7f4a7d74f2f94ec729ea8c1879d419e35rederpj
3f5585f7f4a7d74f2f94ec729ea8c1879d419e35rederpj#
3f5585f7f4a7d74f2f94ec729ea8c1879d419e35rederpj# lint pass one enforcement
3f5585f7f4a7d74f2f94ec729ea8c1879d419e35rederpj#
e4b96ba15dc8b2b27d251d53e29b86da32cd5066pquernaCFLAGS += $(CCVERBOSE)
e4b96ba15dc8b2b27d251d53e29b86da32cd5066pquerna
49f39a4568dab427b2c4ae070d0f831d1ac9ebf8jim#
49f39a4568dab427b2c4ae070d0f831d1ac9ebf8jim# For now, disable these lint checks; maintainers should endeavor
49f39a4568dab427b2c4ae070d0f831d1ac9ebf8jim# to investigate and remove these for maximum lint coverage.
49f39a4568dab427b2c4ae070d0f831d1ac9ebf8jim# Please do not carry these forward to new Makefiles.
470d223738c1dfc4e07c7fae5d186e9dfadd9643jorton#
470d223738c1dfc4e07c7fae5d186e9dfadd9643jortonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
470d223738c1dfc4e07c7fae5d186e9dfadd9643jortonLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
81bd9331da3bd0f53255d52b1475480ff3a4b395trawickLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
81bd9331da3bd0f53255d52b1475480ff3a4b395trawickLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
81bd9331da3bd0f53255d52b1475480ff3a4b395trawick
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawick#
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawick# Default build targets.
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawick#
cd3bbd6d2df78d6c75e5d159a81ef8bdd5f70df9trawick.KEEP_STATE:
c7c8dd19c90c5ee7205ccdf443585d14da3daecechrisd
c7c8dd19c90c5ee7205ccdf443585d14da3daecechrisddef: $(DEF_DEPS)
c7c8dd19c90c5ee7205ccdf443585d14da3daecechrisd
c7c8dd19c90c5ee7205ccdf443585d14da3daecechrisdall: $(ALL_DEPS)
13ce20bba632871d7ceb413f39dc73c718ddec7dchrisd
c7c8dd19c90c5ee7205ccdf443585d14da3daecechrisdclean: $(CLEAN_DEPS)
421e0a5d1c49de76406f61e9abef271af2336c31rpluem
421e0a5d1c49de76406f61e9abef271af2336c31rpluemclobber: $(CLOBBER_DEPS)
421e0a5d1c49de76406f61e9abef271af2336c31rpluem
108ebbb87b2a46f4416ec507824471a483c39fe1sctemmelint: $(LINT_DEPS)
108ebbb87b2a46f4416ec507824471a483c39fe1sctemme
108ebbb87b2a46f4416ec507824471a483c39fe1sctemmemodlintlib: $(MODLINTLIB_DEPS) lint32
108ebbb87b2a46f4416ec507824471a483c39fe1sctemme
7abe34dd5a20fc8fde09dca9116b88e6ddfd55ddjortonclean.lint: $(CLEAN_LINT_DEPS)
7abe34dd5a20fc8fde09dca9116b88e6ddfd55ddjorton
7abe34dd5a20fc8fde09dca9116b88e6ddfd55ddjortoninstall: $(INSTALL_DEPS)
10d486b9267800c5e376c22f6c0d45dc2ae86f67chrisd
10d486b9267800c5e376c22f6c0d45dc2ae86f67chrisd#
10d486b9267800c5e376c22f6c0d45dc2ae86f67chrisd# Include common targets.
10d486b9267800c5e376c22f6c0d45dc2ae86f67chrisd#
3e155218733389e7b1ea3a9ffd0aea533fd929cechrisdinclude $(UTSBASE)/sparc/Makefile.targ
3e155218733389e7b1ea3a9ffd0aea533fd929cechrisd