1*989f2807SJerry Jelinek# CDDL HEADER START 2*989f2807SJerry Jelinek# 3*989f2807SJerry Jelinek# The contents of this file are subject to the terms of the 4*989f2807SJerry Jelinek# Common Development and Distribution License (the "License"). 5*989f2807SJerry Jelinek# You may not use this file except in compliance with the License. 6*989f2807SJerry Jelinek# 7*989f2807SJerry Jelinek# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 8*989f2807SJerry Jelinek# or http://www.opensolaris.org/os/licensing. 9*989f2807SJerry Jelinek# See the License for the specific language governing permissions 10*989f2807SJerry Jelinek# and limitations under the License. 11*989f2807SJerry Jelinek# 12*989f2807SJerry Jelinek# When distributing Covered Code, include this CDDL HEADER in each 13*989f2807SJerry Jelinek# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 14*989f2807SJerry Jelinek# If applicable, add the following below this CDDL HEADER, with the 15*989f2807SJerry Jelinek# fields enclosed by brackets "[]" replaced with your own identifying 16*989f2807SJerry Jelinek# information: Portions Copyright [yyyy] [name of copyright owner] 17*989f2807SJerry Jelinek# 18*989f2807SJerry Jelinek# CDDL HEADER END 19*989f2807SJerry Jelinek# 20*989f2807SJerry Jelinek# Copyright (c) 2012, Joyent, Inc. All rights reserved. 21*989f2807SJerry Jelinek# Use is subject to license terms. 22*989f2807SJerry Jelinek# 23*989f2807SJerry Jelinek 24*989f2807SJerry Jelinek# 25*989f2807SJerry Jelinek# IPMI interface 26*989f2807SJerry Jelinek# 27*989f2807SJerry Jelinek 28*989f2807SJerry Jelinek# 29*989f2807SJerry Jelinek# Path to the base of the uts directory tree (usually /usr/src/uts). 30*989f2807SJerry Jelinek# 31*989f2807SJerry JelinekUTSBASE = ../.. 32*989f2807SJerry Jelinek 33*989f2807SJerry Jelinek# 34*989f2807SJerry Jelinek# Define the module and object file sets. 35*989f2807SJerry Jelinek# 36*989f2807SJerry JelinekMODULE = ipmi 37*989f2807SJerry JelinekOBJECTS = $(IPMI_OBJS:%=$(OBJS_DIR)/%) 38*989f2807SJerry JelinekLINTS = $(IPMI_OBJS:%.o=$(LINTS_DIR)/%.ln) 39*989f2807SJerry JelinekROOTMODULE = $(USR_DRV_DIR)/$(MODULE) 40*989f2807SJerry JelinekCONF_SRCDIR = $(UTSBASE)/intel/io/ipmi 41*989f2807SJerry Jelinek 42*989f2807SJerry Jelinek# 43*989f2807SJerry Jelinek# Include common rules. 44*989f2807SJerry Jelinek# 45*989f2807SJerry Jelinekinclude $(UTSBASE)/intel/Makefile.intel 46*989f2807SJerry Jelinek 47*989f2807SJerry Jelinek# 48*989f2807SJerry Jelinek# Define targets 49*989f2807SJerry Jelinek# 50*989f2807SJerry JelinekALL_TARGET = $(BINARY) $(SRC_CONFFILE) 51*989f2807SJerry JelinekLINT_TARGET = $(LINT_MODULE).lint 52*989f2807SJerry JelinekINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 53*989f2807SJerry Jelinek 54*989f2807SJerry Jelinek# 55*989f2807SJerry Jelinek# Kernel Module Dependencies 56*989f2807SJerry Jelinek# 57*989f2807SJerry JelinekLDFLAGS += -dy 58*989f2807SJerry Jelinek 59*989f2807SJerry Jelinek# 60*989f2807SJerry Jelinek# Default build targets. 61*989f2807SJerry Jelinek# 62*989f2807SJerry Jelinek.KEEP_STATE: 63*989f2807SJerry Jelinek 64*989f2807SJerry Jelinekdef: $(DEF_DEPS) 65*989f2807SJerry Jelinek 66*989f2807SJerry Jelinekall: $(ALL_DEPS) 67*989f2807SJerry Jelinek 68*989f2807SJerry Jelinekclean: $(CLEAN_DEPS) 69*989f2807SJerry Jelinek 70*989f2807SJerry Jelinekclobber: $(CLOBBER_DEPS) 71*989f2807SJerry Jelinek 72*989f2807SJerry Jelineklint: $(LINT_DEPS) 73*989f2807SJerry Jelinek 74*989f2807SJerry Jelinekmodlintlib: $(MODLINTLIB_DEPS) 75*989f2807SJerry Jelinek 76*989f2807SJerry Jelinekclean.lint: $(CLEAN_LINT_DEPS) 77*989f2807SJerry Jelinek 78*989f2807SJerry Jelinekinstall: $(INSTALL_DEPS) 79*989f2807SJerry Jelinek 80*989f2807SJerry Jelinek# 81*989f2807SJerry Jelinek# Include common targets. 82*989f2807SJerry Jelinek# 83*989f2807SJerry Jelinekinclude $(UTSBASE)/intel/Makefile.targ 84