1*20906b23SVikram Hegde# 2*20906b23SVikram Hegde# CDDL HEADER START 3*20906b23SVikram Hegde# 4*20906b23SVikram Hegde# The contents of this file are subject to the terms of the 5*20906b23SVikram Hegde# Common Development and Distribution License (the "License"). 6*20906b23SVikram Hegde# You may not use this file except in compliance with the License. 7*20906b23SVikram Hegde# 8*20906b23SVikram Hegde# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*20906b23SVikram Hegde# or http://www.opensolaris.org/os/licensing. 10*20906b23SVikram Hegde# See the License for the specific language governing permissions 11*20906b23SVikram Hegde# and limitations under the License. 12*20906b23SVikram Hegde# 13*20906b23SVikram Hegde# When distributing Covered Code, include this CDDL HEADER in each 14*20906b23SVikram Hegde# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*20906b23SVikram Hegde# If applicable, add the following below this CDDL HEADER, with the 16*20906b23SVikram Hegde# fields enclosed by brackets "[]" replaced with your own identifying 17*20906b23SVikram Hegde# information: Portions Copyright [yyyy] [name of copyright owner] 18*20906b23SVikram Hegde# 19*20906b23SVikram Hegde# CDDL HEADER END 20*20906b23SVikram Hegde# 21*20906b23SVikram Hegde# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 22*20906b23SVikram Hegde# Use is subject to license terms. 23*20906b23SVikram Hegde# 24*20906b23SVikram Hegde#ident "@(#)Makefile 1.8 07/01/10 SMI" 25*20906b23SVikram Hegde# 26*20906b23SVikram Hegde# This makefile drives the production of the IOMMULIB misc 27*20906b23SVikram Hegde# kernel module. 28*20906b23SVikram Hegde# 29*20906b23SVikram Hegde# intel architecture dependent 30*20906b23SVikram Hegde# 31*20906b23SVikram Hegde 32*20906b23SVikram Hegde# 33*20906b23SVikram Hegde# Path to the base of the uts directory tree (usually /usr/src/uts). 34*20906b23SVikram Hegde# 35*20906b23SVikram HegdeUTSBASE = ../.. 36*20906b23SVikram Hegde 37*20906b23SVikram Hegde# 38*20906b23SVikram Hegde# Define the module and object file sets. 39*20906b23SVikram Hegde# 40*20906b23SVikram HegdeMODULE = iommulib 41*20906b23SVikram HegdeOBJECTS = $(IOMMULIB_OBJS:%=$(OBJS_DIR)/%) 42*20906b23SVikram HegdeLINTS = $(IOMMULIB_OBJS:%.o=$(LINTS_DIR)/%.ln) 43*20906b23SVikram HegdeROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 44*20906b23SVikram HegdeINC_PATH += -I$(UTSBASE)/intel 45*20906b23SVikram HegdeINC_PATH += -I$(UTSBASE)/i86pc 46*20906b23SVikram Hegde 47*20906b23SVikram Hegde# 48*20906b23SVikram Hegde# Include common rules. 49*20906b23SVikram Hegde# 50*20906b23SVikram Hegdeinclude $(UTSBASE)/intel/Makefile.intel 51*20906b23SVikram Hegde 52*20906b23SVikram Hegde# 53*20906b23SVikram Hegde# Define targets 54*20906b23SVikram Hegde# 55*20906b23SVikram HegdeALL_TARGET = $(BINARY) $(CONFMOD) 56*20906b23SVikram HegdeLINT_TARGET = $(MODULE).lint 57*20906b23SVikram HegdeINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 58*20906b23SVikram Hegde 59*20906b23SVikram Hegde# 60*20906b23SVikram Hegde# Overrides. 61*20906b23SVikram Hegde# 62*20906b23SVikram HegdeDEBUG_DEFS += $(DEBUG_FLGS) 63*20906b23SVikram Hegde 64*20906b23SVikram Hegde# 65*20906b23SVikram Hegde# lint pass one non-enforcement 66*20906b23SVikram Hegde# 67*20906b23SVikram HegdeCFLAGS += $(CCVERBOSE) 68*20906b23SVikram Hegde 69*20906b23SVikram Hegde# 70*20906b23SVikram Hegde# 3rd party code is not lint clean 71*20906b23SVikram Hegde# 72*20906b23SVikram HegdeLINTFLAGS += -errwarn=%all 73*20906b23SVikram Hegde 74*20906b23SVikram Hegde# 75*20906b23SVikram Hegde# Default build targets. 76*20906b23SVikram Hegde# 77*20906b23SVikram Hegde.KEEP_STATE: 78*20906b23SVikram Hegde 79*20906b23SVikram Hegdedef: $(DEF_DEPS) 80*20906b23SVikram Hegde 81*20906b23SVikram Hegdeall: $(ALL_DEPS) 82*20906b23SVikram Hegde 83*20906b23SVikram Hegdeclean: $(CLEAN_DEPS) 84*20906b23SVikram Hegde 85*20906b23SVikram Hegdeclobber: $(CLOBBER_DEPS) 86*20906b23SVikram Hegde 87*20906b23SVikram Hegdelint: $(LINT_DEPS) 88*20906b23SVikram Hegde 89*20906b23SVikram Hegdemodlintlib: $(MODLINTLIB_DEPS) 90*20906b23SVikram Hegde 91*20906b23SVikram Hegdeclean.lint: $(CLEAN_LINT_DEPS) 92*20906b23SVikram Hegde 93*20906b23SVikram Hegdeinstall: $(INSTALL_DEPS) 94*20906b23SVikram Hegde 95*20906b23SVikram Hegde# 96*20906b23SVikram Hegde# Include common targets. 97*20906b23SVikram Hegde# 98*20906b23SVikram Hegdeinclude $(UTSBASE)/intel/Makefile.targ 99