Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley#
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# CDDL HEADER START
5c144477062a5df657acee41a82051d38537fd38Tinderbox User#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# The contents of this file are subject to the terms of the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# Common Development and Distribution License (the "License").
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You may not use this file except in compliance with the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# or http://www.opensolaris.org/os/licensing.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# See the License for the specific language governing permissions
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# and limitations under the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
15a44745412679c30a6d022733925af70a38b715David Lawrence# information: Portions Copyright [yyyy] [name of copyright owner]
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# CDDL HEADER END
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein# Use is subject to license terms.
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein#
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein# ident "%Z%%M% %I% %E% SMI"
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# This makefile drives the production of the semsys driver kernel module.
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# intel architecture dependent
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence#
cb3e854e181373807f7f011e5050c1a8013b4841Brian Wellington
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence#
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Path to the base of the uts directory tree (usually /usr/src/uts).
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonUTSBASE = ../..
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# Define the module and object file sets.
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonMODULE = semsys
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonOBJECTS = $(IPCSEM_OBJS:%=$(OBJS_DIR)/%)
6ca4964362ec37d6afbf614dbb9aaa2f525002f1Mark AndrewsLINTS = $(IPCSEM_OBJS:%.o=$(LINTS_DIR)/%.ln)
c968a9ca37964ae0bdc5d452ad784ec93bd04c57David LawrenceROOTMODULE = $(ROOT_SYS_DIR)/$(MODULE)
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence#
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Include common rules.
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence#
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrenceinclude $(UTSBASE)/intel/Makefile.intel
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley#
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# Define targets
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsALL_TARGET = $(BINARY)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLINT_TARGET = $(MODULE).lint
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
9640c35421ba0bb4af6b6bfbff695d2a0ac560b3Mark Andrews#
7877ad5db24dbad945afc670b2010c70d0d7e2f5Mark Andrews# Overrides.
7877ad5db24dbad945afc670b2010c70d0d7e2f5Mark Andrews#
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyMODSTUBS_DIR = $(OBJS_DIR)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews$(MODSTUBS_O) := AS_CPPFLAGS += -DSEMSYS_MODULE
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCLEANFILES += $(MODSTUBS_O)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLDFLAGS += -dy -Nmisc/ipc
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# For now, disable these lint checks; maintainers should endeavor
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# to investigate and remove these for maximum lint coverage.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Please do not carry these forward to new Makefiles.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Default build targets.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews.KEEP_STATE:
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsdef: $(DEF_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsall: $(ALL_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsclean: $(CLEAN_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrewsclobber: $(CLOBBER_DEPS)
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrewslint: $(LINT_DEPS)
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrewsinstall: $(INSTALL_DEPS)
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews#
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews# Include common targets.
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews#
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrewsinclude $(UTSBASE)/intel/Makefile.targ
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews