Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer#
c110d61b173a68420d19858abb80285be0dc1120Tinderbox User# CDDL HEADER START
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# The contents of this file are subject to the terms of the
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# Common Development and Distribution License (the "License").
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# You may not use this file except in compliance with the License.
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# fields enclosed by brackets "[]" replaced with your own identifying
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# information: Portions Copyright [yyyy] [name of copyright owner]
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer# CDDL HEADER END
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer#
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington#
8af0b86ade4c15a7db207bd7643f8a9f6cb5a648David Lawrence# uts/intel/ldterm/Makefile
8af0b86ade4c15a7db207bd7643f8a9f6cb5a648David Lawrence#
8af0b86ade4c15a7db207bd7643f8a9f6cb5a648David Lawrence# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
8af0b86ade4c15a7db207bd7643f8a9f6cb5a648David Lawrence# Use is subject to license terms.
8af0b86ade4c15a7db207bd7643f8a9f6cb5a648David Lawrence#
8af0b86ade4c15a7db207bd7643f8a9f6cb5a648David Lawrence
9e72582b8ebdbc27af7bce9ebdd9be7b97b259b8Brian Wellington#
7b19817cb8128b75df04d7eacaa93002bbf877b1Michael Sawyer# This makefile drives the production of the ldterm streams kernel
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael Sawyer# module.
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington#
7b19817cb8128b75df04d7eacaa93002bbf877b1Michael Sawyer# intel architecture dependent
9e72582b8ebdbc27af7bce9ebdd9be7b97b259b8Brian Wellington#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
1e107b3d7b54de5022c3328423164e533afcc15eMark Andrews#
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael Sawyer# Path to the base of the uts directory tree (usually /usr/src/uts).
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews#
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael SawyerUTSBASE = ../..
242bba8991b030b7764f0bdca3922d75c34ea51eAndreas Gustafsson
8c091f473385a0834c7f8c9ed6c5d8b00ad26edfEvan Hunt#
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews# Define the module and object file sets.
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer#
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael SawyerMODULE = ldterm
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael SawyerOBJECTS = $(LDTERM_OBJS:%=$(OBJS_DIR)/%)
517950ae99fa271b034a5cfec1c9fbb62696f975Mark AndrewsLINTS = $(LDTERM_OBJS:%.o=$(LINTS_DIR)/%.ln)
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael SawyerROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE)
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael Sawyer
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyer#
7b19817cb8128b75df04d7eacaa93002bbf877b1Michael Sawyer# Include common rules.
c9defbf4b968e8a61f391246431ac63d0d6a39abMichael Sawyer#
51e09bf791b4d3a6fd76f752df3f47d05ef6becdMichael Sawyerinclude $(UTSBASE)/intel/Makefile.intel
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington# Define targets
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington#
97527fc03cdb061759e2c9529c670ac1c190ef84Brian WellingtonALL_TARGET = $(BINARY)
ea32d34e58cc4f6104004d06fa35367e580b8103Brian WellingtonLINT_TARGET = $(MODULE).lint
e4bd5f690729e93a624ab82b69bfe4d9ccac3a64Brian WellingtonINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews
668f8d91db59f4dd89a0b54206f87879354339f5Brian Wellington#
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington# For now, disable these lint checks; maintainers should endeavor
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington# to investigate and remove these for maximum lint coverage.
c4b8c7555d4abcfa4706c0551b00d71554250936Mark Andrews# Please do not carry these forward to new Makefiles.
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington#
ea32d34e58cc4f6104004d06fa35367e580b8103Brian WellingtonLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
ea32d34e58cc4f6104004d06fa35367e580b8103Brian WellingtonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
ea32d34e58cc4f6104004d06fa35367e580b8103Brian WellingtonLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington
ea32d34e58cc4f6104004d06fa35367e580b8103Brian WellingtonCERRWARN += -_gcc=-Wno-parentheses
ea32d34e58cc4f6104004d06fa35367e580b8103Brian WellingtonCERRWARN += -_gcc=-Wno-uninitialized
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews#
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington# Default build targets.
9a68d61341cbe7a953d437cb6e607dea587f6bc3Brian Wellington#
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington.KEEP_STATE:
ea32d34e58cc4f6104004d06fa35367e580b8103Brian Wellington
81dcbe87a7d6ae6fe3228bc183a8b726853dc87cBrian Wellingtondef: $(DEF_DEPS)
cbc6e835978507c5243ceb0a2afca03943c7df64Brian Wellington
81dcbe87a7d6ae6fe3228bc183a8b726853dc87cBrian Wellingtonall: $(ALL_DEPS)
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrewsclean: $(CLEAN_DEPS)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsclobber: $(CLOBBER_DEPS)
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrews
c2f37a77cc319e42a5cfebe69959209d2232fc89Mark Andrewslint: $(LINT_DEPS)
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews
c3c8823fed039b3a2b8e5ca8bc2f3301d1dd840eMark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
b493dfe8bce94b05efc0f161238d32f1234c5670Brian Wellington
b493dfe8bce94b05efc0f161238d32f1234c5670Brian Wellingtonclean.lint: $(CLEAN_LINT_DEPS)
1d32b1df372d6be6bac6450739b9e5ea23819995Evan Hunt
1d32b1df372d6be6bac6450739b9e5ea23819995Evan Huntinstall: $(INSTALL_DEPS)
1d32b1df372d6be6bac6450739b9e5ea23819995Evan Hunt
1d32b1df372d6be6bac6450739b9e5ea23819995Evan Hunt#
289ae548d52bc8f982d9823af64cafda7bd92232Mark Andrews# Include common targets.
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington#
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellingtoninclude $(UTSBASE)/intel/Makefile.targ
703e1c0bb66f3cd3d300358ca0c1fdf3cb5fb1c5Brian Wellington