xref: /onnv-gate/usr/src/uts/intel/hook/Makefile (revision 3678:c532e9896e3d)
12958Sdr146992#
22958Sdr146992# CDDL HEADER START
32958Sdr146992#
42958Sdr146992# The contents of this file are subject to the terms of the
52958Sdr146992# Common Development and Distribution License (the "License").
62958Sdr146992# You may not use this file except in compliance with the License.
72958Sdr146992#
82958Sdr146992# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92958Sdr146992# or http://www.opensolaris.org/os/licensing.
102958Sdr146992# See the License for the specific language governing permissions
112958Sdr146992# and limitations under the License.
122958Sdr146992#
132958Sdr146992# When distributing Covered Code, include this CDDL HEADER in each
142958Sdr146992# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152958Sdr146992# If applicable, add the following below this CDDL HEADER, with the
162958Sdr146992# fields enclosed by brackets "[]" replaced with your own identifying
172958Sdr146992# information: Portions Copyright [yyyy] [name of copyright owner]
182958Sdr146992#
192958Sdr146992# CDDL HEADER END
202958Sdr146992#
212958Sdr146992#
222958Sdr146992# uts/intel/hook/Makefile
232958Sdr146992#
243448Sdh155122# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
252958Sdr146992# Use is subject to license terms.
262958Sdr146992#
272958Sdr146992#ident	"%Z%%M%	%I%	%E% SMI"
282958Sdr146992#
292958Sdr146992#	This makefile drives the production of the hook driver kernel module.
302958Sdr146992#
312958Sdr146992#	INTEL implementation architecture dependent
322958Sdr146992#
332958Sdr146992
342958Sdr146992#
352958Sdr146992#	Path to the base of the uts directory tree (usually /usr/src/uts).
362958Sdr146992#
372958Sdr146992UTSBASE	= ../..
382958Sdr146992
392958Sdr146992#
402958Sdr146992#	Define the module and object file sets.
412958Sdr146992#
422958Sdr146992MODULE		= hook
432958Sdr146992OBJECTS		= $(HOOK_OBJS:%=$(OBJS_DIR)/%)
442958Sdr146992LINTS		= $(HOOK_OBJS:%.o=$(LINTS_DIR)/%.ln)
452958Sdr146992ROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
462958Sdr146992
472958Sdr146992
482958Sdr146992#
492958Sdr146992#	Include common rules.
502958Sdr146992#
512958Sdr146992include $(UTSBASE)/intel/Makefile.intel
522958Sdr146992
532958Sdr146992#
542958Sdr146992#	Define targets
552958Sdr146992#
562958Sdr146992ALL_TARGET	= $(BINARY)
572958Sdr146992LINT_TARGET	= $(MODULE).lint
582958Sdr146992INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOTLINK)
592958Sdr146992
602958Sdr146992
612958Sdr146992#
622958Sdr146992#	Default build targets.
632958Sdr146992#
642958Sdr146992.KEEP_STATE:
652958Sdr146992
662958Sdr146992def:		$(DEF_DEPS)
672958Sdr146992
68*3678Syz155240all:		$(ALL_DEPS) $(SISCHECK_DEPS)
692958Sdr146992
70*3678Syz155240clean:		$(CLEAN_DEPS) $(SISCLEAN_DEPS)
712958Sdr146992
72*3678Syz155240clobber:	$(CLOBBER_DEPS) $(SISCLEAN_DEPS)
732958Sdr146992
742958Sdr146992lint:		$(LINT_DEPS)
752958Sdr146992
762958Sdr146992modlintlib:	$(MODLINTLIB_DEPS)
772958Sdr146992
782958Sdr146992clean.lint:	$(CLEAN_LINT_DEPS)
792958Sdr146992
80*3678Syz155240install:	$(INSTALL_DEPS) $(SISCHECK_DEPS)
812958Sdr146992
822958Sdr146992#
832958Sdr146992#	Include common targets.
842958Sdr146992#
852958Sdr146992include $(UTSBASE)/intel/Makefile.targ
86