1*381a2a9aSdr146992# 2*381a2a9aSdr146992# CDDL HEADER START 3*381a2a9aSdr146992# 4*381a2a9aSdr146992# The contents of this file are subject to the terms of the 5*381a2a9aSdr146992# Common Development and Distribution License (the "License"). 6*381a2a9aSdr146992# You may not use this file except in compliance with the License. 7*381a2a9aSdr146992# 8*381a2a9aSdr146992# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*381a2a9aSdr146992# or http://www.opensolaris.org/os/licensing. 10*381a2a9aSdr146992# See the License for the specific language governing permissions 11*381a2a9aSdr146992# and limitations under the License. 12*381a2a9aSdr146992# 13*381a2a9aSdr146992# When distributing Covered Code, include this CDDL HEADER in each 14*381a2a9aSdr146992# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*381a2a9aSdr146992# If applicable, add the following below this CDDL HEADER, with the 16*381a2a9aSdr146992# fields enclosed by brackets "[]" replaced with your own identifying 17*381a2a9aSdr146992# information: Portions Copyright [yyyy] [name of copyright owner] 18*381a2a9aSdr146992# 19*381a2a9aSdr146992# CDDL HEADER END 20*381a2a9aSdr146992# 21*381a2a9aSdr146992# 22*381a2a9aSdr146992# uts/intel/hook/Makefile 23*381a2a9aSdr146992# 24*381a2a9aSdr146992# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 25*381a2a9aSdr146992# Use is subject to license terms. 26*381a2a9aSdr146992# 27*381a2a9aSdr146992#ident "%Z%%M% %I% %E% SMI" 28*381a2a9aSdr146992# 29*381a2a9aSdr146992# This makefile drives the production of the hook driver kernel module. 30*381a2a9aSdr146992# 31*381a2a9aSdr146992# INTEL implementation architecture dependent 32*381a2a9aSdr146992# 33*381a2a9aSdr146992 34*381a2a9aSdr146992# 35*381a2a9aSdr146992# Path to the base of the uts directory tree (usually /usr/src/uts). 36*381a2a9aSdr146992# 37*381a2a9aSdr146992UTSBASE = ../.. 38*381a2a9aSdr146992 39*381a2a9aSdr146992# 40*381a2a9aSdr146992# Define the module and object file sets. 41*381a2a9aSdr146992# 42*381a2a9aSdr146992MODULE = hook 43*381a2a9aSdr146992OBJECTS = $(HOOK_OBJS:%=$(OBJS_DIR)/%) 44*381a2a9aSdr146992LINTS = $(HOOK_OBJS:%.o=$(LINTS_DIR)/%.ln) 45*381a2a9aSdr146992ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 46*381a2a9aSdr146992 47*381a2a9aSdr146992 48*381a2a9aSdr146992# 49*381a2a9aSdr146992# Include common rules. 50*381a2a9aSdr146992# 51*381a2a9aSdr146992include $(UTSBASE)/intel/Makefile.intel 52*381a2a9aSdr146992 53*381a2a9aSdr146992# 54*381a2a9aSdr146992# Define targets 55*381a2a9aSdr146992# 56*381a2a9aSdr146992ALL_TARGET = $(BINARY) 57*381a2a9aSdr146992LINT_TARGET = $(MODULE).lint 58*381a2a9aSdr146992INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) 59*381a2a9aSdr146992 60*381a2a9aSdr146992 61*381a2a9aSdr146992# 62*381a2a9aSdr146992# Default build targets. 63*381a2a9aSdr146992# 64*381a2a9aSdr146992.KEEP_STATE: 65*381a2a9aSdr146992 66*381a2a9aSdr146992def: $(DEF_DEPS) 67*381a2a9aSdr146992 68*381a2a9aSdr146992all: $(ALL_DEPS) 69*381a2a9aSdr146992 70*381a2a9aSdr146992clean: $(CLEAN_DEPS) 71*381a2a9aSdr146992 72*381a2a9aSdr146992clobber: $(CLOBBER_DEPS) 73*381a2a9aSdr146992 74*381a2a9aSdr146992lint: $(LINT_DEPS) 75*381a2a9aSdr146992 76*381a2a9aSdr146992modlintlib: $(MODLINTLIB_DEPS) 77*381a2a9aSdr146992 78*381a2a9aSdr146992clean.lint: $(CLEAN_LINT_DEPS) 79*381a2a9aSdr146992 80*381a2a9aSdr146992install: $(INSTALL_DEPS) 81*381a2a9aSdr146992 82*381a2a9aSdr146992 83*381a2a9aSdr146992# 84*381a2a9aSdr146992# Include common targets. 85*381a2a9aSdr146992# 86*381a2a9aSdr146992include $(UTSBASE)/intel/Makefile.targ 87