1381a2a9aSdr146992# 2381a2a9aSdr146992# CDDL HEADER START 3381a2a9aSdr146992# 4381a2a9aSdr146992# The contents of this file are subject to the terms of the 5381a2a9aSdr146992# Common Development and Distribution License (the "License"). 6381a2a9aSdr146992# You may not use this file except in compliance with the License. 7381a2a9aSdr146992# 8381a2a9aSdr146992# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9381a2a9aSdr146992# or http://www.opensolaris.org/os/licensing. 10381a2a9aSdr146992# See the License for the specific language governing permissions 11381a2a9aSdr146992# and limitations under the License. 12381a2a9aSdr146992# 13381a2a9aSdr146992# When distributing Covered Code, include this CDDL HEADER in each 14381a2a9aSdr146992# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15381a2a9aSdr146992# If applicable, add the following below this CDDL HEADER, with the 16381a2a9aSdr146992# fields enclosed by brackets "[]" replaced with your own identifying 17381a2a9aSdr146992# information: Portions Copyright [yyyy] [name of copyright owner] 18381a2a9aSdr146992# 19381a2a9aSdr146992# CDDL HEADER END 20381a2a9aSdr146992# 21381a2a9aSdr146992# 22381a2a9aSdr146992# uts/intel/hook/Makefile 23381a2a9aSdr146992# 24*f4b3ec61Sdh155122# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 25381a2a9aSdr146992# Use is subject to license terms. 26381a2a9aSdr146992# 27381a2a9aSdr146992#ident "%Z%%M% %I% %E% SMI" 28381a2a9aSdr146992# 29381a2a9aSdr146992# This makefile drives the production of the hook driver kernel module. 30381a2a9aSdr146992# 31381a2a9aSdr146992# INTEL implementation architecture dependent 32381a2a9aSdr146992# 33381a2a9aSdr146992 34381a2a9aSdr146992# 35381a2a9aSdr146992# Path to the base of the uts directory tree (usually /usr/src/uts). 36381a2a9aSdr146992# 37381a2a9aSdr146992UTSBASE = ../.. 38381a2a9aSdr146992 39381a2a9aSdr146992# 40381a2a9aSdr146992# Define the module and object file sets. 41381a2a9aSdr146992# 42381a2a9aSdr146992MODULE = hook 43381a2a9aSdr146992OBJECTS = $(HOOK_OBJS:%=$(OBJS_DIR)/%) 44381a2a9aSdr146992LINTS = $(HOOK_OBJS:%.o=$(LINTS_DIR)/%.ln) 45381a2a9aSdr146992ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE) 46381a2a9aSdr146992 47381a2a9aSdr146992 48381a2a9aSdr146992# 49381a2a9aSdr146992# Include common rules. 50381a2a9aSdr146992# 51381a2a9aSdr146992include $(UTSBASE)/intel/Makefile.intel 52381a2a9aSdr146992 53381a2a9aSdr146992# 54381a2a9aSdr146992# Define targets 55381a2a9aSdr146992# 56381a2a9aSdr146992ALL_TARGET = $(BINARY) 57381a2a9aSdr146992LINT_TARGET = $(MODULE).lint 58381a2a9aSdr146992INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOTLINK) 59381a2a9aSdr146992 60381a2a9aSdr146992 61381a2a9aSdr146992# 62381a2a9aSdr146992# Default build targets. 63381a2a9aSdr146992# 64381a2a9aSdr146992.KEEP_STATE: 65381a2a9aSdr146992 66381a2a9aSdr146992def: $(DEF_DEPS) 67381a2a9aSdr146992 68381a2a9aSdr146992all: $(ALL_DEPS) 69381a2a9aSdr146992 70381a2a9aSdr146992clean: $(CLEAN_DEPS) 71381a2a9aSdr146992 72381a2a9aSdr146992clobber: $(CLOBBER_DEPS) 73381a2a9aSdr146992 74381a2a9aSdr146992lint: $(LINT_DEPS) 75381a2a9aSdr146992 76381a2a9aSdr146992modlintlib: $(MODLINTLIB_DEPS) 77381a2a9aSdr146992 78381a2a9aSdr146992clean.lint: $(CLEAN_LINT_DEPS) 79381a2a9aSdr146992 80381a2a9aSdr146992install: $(INSTALL_DEPS) 81381a2a9aSdr146992 82*f4b3ec61Sdh155122sis_check: sis_check.obj 83*f4b3ec61Sdh155122sis_check.obj: $(ALL_DEPS) 84*f4b3ec61Sdh155122 @$(GREP) -v '#' $(MODULE).objt-symbols.obj64 |$(GREP) . |$(SORT) -u \ 85*f4b3ec61Sdh155122 > $(MODULE).symbols.tmp 86*f4b3ec61Sdh155122 @$(NM) obj64/$(MODULE) |$(GREP) OBJT |$(GREP) -v UNDEF | \ 87*f4b3ec61Sdh155122 $(CUT) -d'|' -f8 |$(GREP) -v '^___const_' |$(SORT) -u \ 88*f4b3ec61Sdh155122 > $(MODULE).symbols.tmp.new 89*f4b3ec61Sdh155122 -@$(DIFF) $(MODULE).symbols.tmp $(MODULE).symbols.tmp.new 90381a2a9aSdr146992 91381a2a9aSdr146992# 92381a2a9aSdr146992# Include common targets. 93381a2a9aSdr146992# 94381a2a9aSdr146992include $(UTSBASE)/intel/Makefile.targ 95