Makefile revision 62a24de03df1f2399ceda704cb3874dabc98bbbd
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# CDDL HEADER START
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# The contents of this file are subject to the terms of the
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# Common Development and Distribution License (the "License").
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# You may not use this file except in compliance with the License.
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# or http://www.opensolaris.org/os/licensing.
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# See the License for the specific language governing permissions
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# and limitations under the License.
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# When distributing Covered Code, include this CDDL HEADER in each
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# If applicable, add the following below this CDDL HEADER, with the
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# fields enclosed by brackets "[]" replaced with your own identifying
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# information: Portions Copyright [yyyy] [name of copyright owner]
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# CDDL HEADER END
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# uts/intel/nulldriver/Makefile
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# Use is subject to license terms.
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# This makefile drives the production of nulldriver kernel module.
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# i86pc architecture dependent
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# Path to the base of the uts directory tree (usually /usr/src/uts).
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris HorneUTSBASE = ../..
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# Define the module and object file sets.
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris HorneMODULE = nulldriver
62a24de03df1f2399ceda704cb3874dabc98bbbdChris HorneOBJECTS = $(NULLDRIVER_OBJS:%=$(OBJS_DIR)/%)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris HorneLINTS = $(NULLDRIVER_OBJS:%.o=$(LINTS_DIR)/%.ln)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris HorneROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# Include common rules.
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horneinclude $(UTSBASE)/Makefile.uts
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horneinclude $(UTSBASE)/intel/Makefile.intel
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# Define targets
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris HorneALL_TARGET = $(BINARY)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris HorneLINT_TARGET = $(MODULE).lint
62a24de03df1f2399ceda704cb3874dabc98bbbdChris HorneINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# header file directories
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris HorneINC_PATH += -I$(ROOT)/usr/include
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# Overrides
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris HorneLDFLAGS += -dy
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# Default build targets.
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne.KEEP_STATE:
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Hornedef: $(DEF_DEPS)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horneall: $(ALL_DEPS)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horneclean: $(CLEAN_DEPS)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horneclobber: $(CLOBBER_DEPS)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Hornelint: $(LINT_DEPS)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Hornewarlock:
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne @echo warlock is not supported
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Hornemodlintlib: $(MODLINTLIB_DEPS)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horneclean.lint: $(CLEAN_LINT_DEPS)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horneinstall: $(INSTALL_DEPS)
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne# Include common targets.
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horne#
62a24de03df1f2399ceda704cb3874dabc98bbbdChris Horneinclude $(UTSBASE)/intel/Makefile.targ