xref: /onnv-gate/usr/src/uts/intel/dev/Makefile (revision 10639:368f1335a058)
12621Sllai1#
22621Sllai1# CDDL HEADER START
32621Sllai1#
42621Sllai1# The contents of this file are subject to the terms of the
52621Sllai1# Common Development and Distribution License (the "License").
62621Sllai1# You may not use this file except in compliance with the License.
72621Sllai1#
82621Sllai1# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92621Sllai1# or http://www.opensolaris.org/os/licensing.
102621Sllai1# See the License for the specific language governing permissions
112621Sllai1# and limitations under the License.
122621Sllai1#
132621Sllai1# When distributing Covered Code, include this CDDL HEADER in each
142621Sllai1# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152621Sllai1# If applicable, add the following below this CDDL HEADER, with the
162621Sllai1# fields enclosed by brackets "[]" replaced with your own identifying
172621Sllai1# information: Portions Copyright [yyyy] [name of copyright owner]
182621Sllai1#
192621Sllai1# CDDL HEADER END
202621Sllai1#
212621Sllai1# uts/intel/dev/Makefile
222621Sllai1#
2310588SEric.Taylor@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
242621Sllai1# Use is subject to license terms.
252621Sllai1#
262621Sllai1#	This makefile drives the production of the dev file system
272621Sllai1#	kernel module.
282621Sllai1#
292621Sllai1#	intel architecture dependent
302621Sllai1#
312621Sllai1
322621Sllai1#
332621Sllai1#	Path to the base of the uts directory tree (usually /usr/src/uts).
342621Sllai1#
352621Sllai1UTSBASE	= ../..
362621Sllai1
372621Sllai1#
382621Sllai1#	Define the module and object file sets.
392621Sllai1#
402621Sllai1MODULE		= dev
412621Sllai1OBJECTS		= $(DEV_OBJS:%=$(OBJS_DIR)/%)
422621Sllai1LINTS		= $(DEV_OBJS:%.o=$(LINTS_DIR)/%.ln)
432621Sllai1ROOTMODULE	= $(ROOT_FS_DIR)/$(MODULE)
442621Sllai1
452621Sllai1#
462621Sllai1#	Include common rules.
472621Sllai1#
482621Sllai1include $(UTSBASE)/intel/Makefile.intel
492621Sllai1
502621Sllai1#
512621Sllai1#	Define targets
522621Sllai1#
532621Sllai1ALL_TARGET	= $(BINARY)
542621Sllai1LINT_TARGET	= $(MODULE).lint
552621Sllai1INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
562621Sllai1
572621Sllai1#
582621Sllai1#	Override defaults to build a unique, local modstubs.o.
592621Sllai1#
602621Sllai1MODSTUBS_DIR	 = $(OBJS_DIR)
613066SjgCFLAGS		+= $(CCVERBOSE)
625895Syz147064LDFLAGS		+= -dy -Nfs/devfs -Nmisc/dls
6310588SEric.Taylor@Sun.COMINC_PATH	+= -I$(UTSBASE)/common/fs/zfs
64*10639SDarren.Reed@Sun.COMINC_PATH	+= -I$(UTSBASE)/common/io/bpf
652621Sllai1
662621Sllai1#
672621Sllai1#	Default build targets.
682621Sllai1#
692621Sllai1.KEEP_STATE:
702621Sllai1
712621Sllai1def:		$(DEF_DEPS)
722621Sllai1
732621Sllai1all:		$(ALL_DEPS)
742621Sllai1
752621Sllai1clean:		$(CLEAN_DEPS)
762621Sllai1
772621Sllai1clobber:	$(CLOBBER_DEPS)
782621Sllai1
792621Sllai1lint:		$(LINT_DEPS)
802621Sllai1
812621Sllai1modlintlib:	$(MODLINTLIB_DEPS)
822621Sllai1
832621Sllai1clean.lint:	$(CLEAN_LINT_DEPS)
842621Sllai1
852621Sllai1install:	$(INSTALL_DEPS)
862621Sllai1
872621Sllai1#
882621Sllai1#	Include common targets.
892621Sllai1#
902621Sllai1include $(UTSBASE)/intel/Makefile.targ
91