Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson#
49503f1d9f53aca7a3bfff5aafd05715670bcbd4Tinderbox User# CDDL HEADER START
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# The contents of this file are subject to the terms of the
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# Common Development and Distribution License (the "License").
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson# You may not use this file except in compliance with the License.
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson#
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
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
0e27506ce3135f9bd49e12564ad0e15256135118Automatic Updater#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# CDDL HEADER END
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence#
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson# uts/intel/strplumb/Makefile
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson#
7d09a0190b9b5b6073984b91099b36bebd6c83fbMark Andrews# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington# Use is subject to license terms.
8f7cae3d7b0c122c3b17e8409bbb80005433acd2Brian Wellington#
5bc6f56bc119285a65ca471bae2e61ad0b6793e7David Lawrence
8a47ea1dadd3b985f5266f198423e01e225e218dDavid Lawrence#
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington# This makefile drives the production of the strplumb
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington# kernel module.
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington#
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington# intel implementation architecture dependent
8a47ea1dadd3b985f5266f198423e01e225e218dDavid Lawrence#
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson#
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson#
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas GustafssonUTSBASE = ../..
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson#
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson# Define the module and object file sets.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas GustafssonMODULE = strplumb
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas GustafssonOBJECTS = $(STRPLUMB_OBJS:%=$(OBJS_DIR)/%)
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas GustafssonLINTS = $(STRPLUMB_OBJS:%.o=$(LINTS_DIR)/%.ln)
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas GustafssonROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson#
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington# Include common rules.
5542df09597c479be604da0ece8271cbc6fd9c4aDavid Lawrence#
5542df09597c479be604da0ece8271cbc6fd9c4aDavid Lawrenceinclude $(UTSBASE)/intel/Makefile.intel
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews#
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson# Define targets
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington#
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian WellingtonALL_TARGET = $(BINARY)
a38e5f0695a8ddf0b3cbb70b5a172a5c6dce994bDavid LawrenceLINT_TARGET = $(MODULE).lint
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian WellingtonINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington#
a38e5f0695a8ddf0b3cbb70b5a172a5c6dce994bDavid Lawrence# For now, disable these lint checks; maintainers should endeavor
a38e5f0695a8ddf0b3cbb70b5a172a5c6dce994bDavid Lawrence# to investigate and remove these for maximum lint coverage.
a38e5f0695a8ddf0b3cbb70b5a172a5c6dce994bDavid Lawrence# Please do not carry these forward to new Makefiles.
a38e5f0695a8ddf0b3cbb70b5a172a5c6dce994bDavid Lawrence#
a38e5f0695a8ddf0b3cbb70b5a172a5c6dce994bDavid LawrenceLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
a38e5f0695a8ddf0b3cbb70b5a172a5c6dce994bDavid LawrenceLINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
5542df09597c479be604da0ece8271cbc6fd9c4aDavid LawrenceLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
5542df09597c479be604da0ece8271cbc6fd9c4aDavid Lawrence
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian WellingtonCERRWARN += -_gcc=-Wno-parentheses
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington#
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington# Default build targets.
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington#
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrews.KEEP_STATE:
4e1d3e67cdc76609bad5f0310ac48de10b442b9fMark Andrews
5542df09597c479be604da0ece8271cbc6fd9c4aDavid Lawrencedef: $(DEF_DEPS)
bdc155d8ce127e565cb3ce99002bccfe96c5ee7dAndreas Gustafsson
bdc155d8ce127e565cb3ce99002bccfe96c5ee7dAndreas Gustafssonall: $(ALL_DEPS)
0e7a5426835bc4a7fb65de9d6ae3a14057ff2a4aAndreas Gustafsson
024face21cdfbfc7a862a3be061e6780533ef755Andreas Gustafssonclean: $(CLEAN_DEPS)
0e7a5426835bc4a7fb65de9d6ae3a14057ff2a4aAndreas Gustafsson
02fd64a1fc21340fce788a6bcc01d15eb37e9160Andreas Gustafssonclobber: $(CLOBBER_DEPS)
0e7a5426835bc4a7fb65de9d6ae3a14057ff2a4aAndreas Gustafsson
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafssonlint: $(LINT_DEPS)
0e7a5426835bc4a7fb65de9d6ae3a14057ff2a4aAndreas Gustafsson
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafssonmodlintlib: $(MODLINTLIB_DEPS)
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafssonclean.lint: $(CLEAN_LINT_DEPS)
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austeininstall: $(INSTALL_DEPS)
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson#
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson# Include common targets.
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson#
45e1bd63587102c3bb361eaca42ee7b714fb3542Mark Andrewsinclude $(UTSBASE)/intel/Makefile.targ
353dcaf1cc77d122d9b4b750bbbfc4c96b4b292bAndreas Gustafsson